<Window x:Class="EF_WPF_Example.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:EF_WPF_Example"
        Title="MainWindow" Height="350" Width="525">
    <Window.DataContext>
        <my:MainViewModel />
    </Window.DataContext>
    <Grid>
        <Label Content="Name:" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top"/>
        <Label Content="Department:" HorizontalAlignment="Left" Margin="189,10,0,0" VerticalAlignment="Top"/>
        <TextBox HorizontalAlignment="Left" Height="23" Margin="49,13,0,0" TextWrapping="Wrap" Text="{Binding Name}" VerticalAlignment="Top" Width="120"/>
        <TextBox HorizontalAlignment="Left" Height="23" Margin="270,13,0,0" TextWrapping="Wrap" Text="{Binding Department}" VerticalAlignment="Top" Width="120"/>
        <Button Content="&lt;" HorizontalAlignment="Left" Margin="408,14,0,0" VerticalAlignment="Top" Width="22" Command="{Binding Prev}"/>
        <Button Content="&gt;" HorizontalAlignment="Left" Margin="439,14,0,0" VerticalAlignment="Top" Width="22" Command="{Binding Next}"/>
        <DataGrid Margin="10,41,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" 
                  AutoGenerateColumns="False"
                  ItemsSource="{Binding Classes}">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding year}" Header="Year" />
                <DataGridTextColumn Binding="{Binding semester}" Header="Semester" />
                <DataGridTextColumn Binding="{Binding course_id}" Header="Course ID" />
                <DataGridTextColumn Binding="{Binding sec_id}" Header="Section ID" />
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Save" HorizontalAlignment="Left" Margin="466,14,0,0" VerticalAlignment="Top" Width="41" Command="{Binding Save}"/>
    </Grid>
</Window>
