<Window x:Class="koltsegvetes.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:koltsegvetes"
        mc:Ignorable="d"
        Title="Költségvetés" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="10*"></RowDefinition>
            <RowDefinition Height="10*"></RowDefinition>
            <RowDefinition Height="60*"></RowDefinition>
            <RowDefinition Height="10*"></RowDefinition>
            <RowDefinition Height="10*"></RowDefinition>
            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="16" Text="Egyenleg:    ">
        </TextBlock>
        
        <TextBlock Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="16" Name="balance">
            <TextBlock.Text>
                0 Ft
            </TextBlock.Text>
        </TextBlock>
        
        <TextBlock Text="Tranzakciók" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="16"> 
        </TextBlock>
        
        <!-- listbox for listing the transactions -->
        <ListBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Name="transactions" SelectionChanged="transactions_SelectionChanged"></ListBox>


        <!-- input field for the desired amount -->
        <TextBlock Text="Add meg az összeget:   " Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="16"></TextBlock>
        <Grid Grid.Row="3" Grid.Column="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <TextBox Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Height="25" Name="amountTextBox"></TextBox>

            <Button Grid.Column="1" Grid.Row="0" Content="Bevétel" Name="incomeButton" Click="incomeButton_Click"></Button>
            <Button Grid.Column="1" Grid.Row="1" Content="Kiadás" Name="expenseButton" Click="expenseButton_Click"></Button>
        </Grid>
        
        <!-- elem törlése gomb-->
        <Button Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Content="Kiválasztott elem törlése" Name="selectedItemDeletingButton" Click="selectedItemDeletingButton_Click"></Button>
    </Grid>
</Window>
