<UserControl x:Class="StammGenerator.Views.ProjektListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:StammGenerator.Views"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <StackPanel>
            <DataGrid Margin="10" SelectedItem="{Binding SelectedProjekt}" ItemsSource="{Binding Projekte}" IsReadOnly="True" SelectionMode="Single" AutoGenerateColumns="False">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="Projektname" Binding="{Binding Projektname}" />
                    <DataGridTextColumn Header="Erstelldatum" Binding="{Binding Erstelldatum}" />
                    <DataGridTextColumn Header="Strasse" Binding="{Binding Strasse}" />
                    <DataGridTextColumn Header="Ort" Binding="{Binding Ort}" />
                </DataGrid.Columns>
            </DataGrid>
            <Button Margin="2" Content="Projekt Auswählen" IsEnabled="{Binding CanSelectProjekt}" Command="{Binding SelectCommand}" />
            <Button Margin="2" Content="Projekt Editieren" IsEnabled="{Binding CanSelectProjekt}" Command="{Binding EditCommand}" />
            <Button Margin="2" Content="Projekt Anlegen" Command="{Binding AddCommand}" />
            <Button Margin="2" Content="Schächte aus CSV Importieren" IsEnabled="{Binding CanSelectProjekt}" Command="{Binding SchachtImportCommand}" />
            <Button Margin="2" Content="Projektdaten nach Schnittstelle exportieren" IsEnabled="{Binding CanSelectProjekt}" Command="{Binding DatenExportCommand}" />
        </StackPanel>
    </Grid>
</UserControl>
