87 lines
4.4 KiB
XML
87 lines
4.4 KiB
XML
<Window x:Class="ValasztasGUI.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:ValasztasGUI"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="450" Width="800">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="25"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="5*"></RowDefinition>
|
|
<RowDefinition Height="30*"></RowDefinition>
|
|
<RowDefinition Height="10*"></RowDefinition>
|
|
<RowDefinition Height="18*"></RowDefinition>
|
|
<RowDefinition Height="2*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Menu Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
|
|
<MenuItem Header="Fájl">
|
|
<MenuItem Header="Megnyitás" Name="open" Click="open_Click">
|
|
</MenuItem>
|
|
<Separator></Separator>
|
|
<MenuItem Header="Kilépés" Click="MenuItem_Click">
|
|
</MenuItem>
|
|
</MenuItem>
|
|
<MenuItem Header="Műveletek">
|
|
<MenuItem Header="Statisztika" Name="Statisztika" Click="Statisztika_Click"></MenuItem>
|
|
<MenuItem Header="Nyertesek" Name="Nyertesek" Click="Nyertesek_Click"></MenuItem>
|
|
</MenuItem>
|
|
<MenuItem Header="Súgó">
|
|
<MenuItem Header="Névjegy" Name="informatoin" Click="informatoin_Click"></MenuItem>
|
|
</MenuItem>
|
|
</Menu>
|
|
|
|
<Label Content="Választási eredmények" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" Foreground="Blue" FontWeight="Bold"></Label>
|
|
|
|
<Label Content="Jelöltek listája:" Grid.Row="2" Grid.Column="0" Margin="10 0 0 0"></Label>
|
|
<ListBox Grid.Row="3" Grid.Column="0" Grid.RowSpan="3" x:Name="jeloltekListBox" SelectionChanged="jeloltekListBox_SelectionChanged" Margin="10" >
|
|
|
|
</ListBox>
|
|
|
|
<GroupBox Grid.Row="3" Grid.Column="1">
|
|
<GroupBox.Header>Kiválasztott jelölt adatai</GroupBox.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Row="0" Grid.Column="0" VerticalAlignment="Center">Név:</Label>
|
|
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" x:Name="nevTextBox" Margin="5"></TextBox>
|
|
|
|
<Label Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Grid.ColumnSpan="3">Választókerület száma:</Label>
|
|
<TextBox Grid.Row="1" Grid.Column="3" x:Name="valasztokeruletSzamaTextBox" Margin="5"></TextBox>
|
|
|
|
<Label Grid.Row="2" Grid.Column="0" VerticalAlignment="Center">Párt:</Label>
|
|
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" x:Name="partTextBox" Margin="5"></TextBox>
|
|
|
|
<Label Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Grid.ColumnSpan="3">Szavazatok száma:</Label>
|
|
<TextBox Grid.Row="3" Grid.Column="3" x:Name="szavazatokSzamaTextBox" Margin="5"></TextBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<Button Grid.Row="4" Grid.Column="1" Margin="12" Content="Ebben a kerületben voltak még:" Name="keruletButton" Click="keruletButton_Click">
|
|
|
|
</Button>
|
|
|
|
<ListBox Grid.Row="5" Grid.Column="1" Margin="5" Name="keruletListBox">
|
|
|
|
</ListBox>
|
|
|
|
</Grid>
|
|
</Window>
|