Codecleanup
This commit is contained in:
@@ -8,7 +8,13 @@
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<StackPanel>
|
||||
<DataGrid ItemsSource="{Binding Buildingsites}" SelectedItem="{Binding SelectedBuildingsite}" IsReadOnly="True" />
|
||||
<DataGrid Margin="20" AutoGenerateColumns="False" ItemsSource="{Binding Buildingsites}" SelectedItem="{Binding SelectedBuildingsite}" IsReadOnly="True">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Baustellennummer" Binding="{Binding BuildingSiteNumber}" />
|
||||
<DataGridTextColumn Header="Ort" Binding="{Binding Country}" />
|
||||
<DataGridTextColumn Header="Ansprechpartner" Binding="{Binding ContactPerson}" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Button Content="Selektiere" Command="{Binding SelectCommand}" />
|
||||
<Button Content="Hinzufügen" Command="{Binding AddCommand}" />
|
||||
<Button Content="Bearbeiten" Command="{Binding EditCommand}" />
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<Grid>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Kundenliste" />
|
||||
<ListView ItemsSource="{Binding Clients}" DisplayMemberPath="Firstname" SelectedItem="{Binding SelectedClient, Mode=TwoWay}"/>
|
||||
<ListView Margin="20" ItemsSource="{Binding Clients}" DisplayMemberPath="Firstname" SelectedItem="{Binding SelectedClient, Mode=TwoWay}"/>
|
||||
<Button Content="Kunde auswählen" Command="{Binding SelectCommand}" />
|
||||
<Button Content="Kunde Editieren" Command="{Binding EditCommand}"/>
|
||||
<Button Content="Kunde Hinzufügen" Command="{Binding AddNewClientCommand}" />
|
||||
|
||||
@@ -8,8 +8,12 @@
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<StackPanel>
|
||||
<DataGrid IsReadOnly="True" ItemsSource="{Binding Projekte}" SelectedItem="{Binding SelectedProject}">
|
||||
|
||||
<DataGrid Margin="20" AutoGenerateColumns="False" SelectionMode="Single" IsReadOnly="True" ItemsSource="{Binding Projekte}" SelectedItem="{Binding SelectedProject}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Projektnummer" Binding="{Binding Projektnummer}" />
|
||||
<DataGridTextColumn Header="Name" Binding="{Binding Name}" />
|
||||
</DataGrid.Columns>
|
||||
|
||||
</DataGrid>
|
||||
<Button Content="Selektiere" Command="{Binding SelectCommand}" />
|
||||
<Button Content="Hinzufügen" Command="{Binding AddCommand}" />
|
||||
|
||||
@@ -26,9 +26,12 @@
|
||||
<Controls:SewerObjectNavigationBar Grid.Column="0" />
|
||||
<ContentControl Grid.Column="1" Content="{Binding CurrentSewerViewModel}" />
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2">
|
||||
<Button Content="Schließen" Command="{Binding SaveCommand}" />
|
||||
<StatusBar Grid.Row="1" Grid.ColumnSpan="2">
|
||||
<StatusBarItem Content="Dada" />
|
||||
<StatusBarItem FontSize="20" Content="{Binding Strasse}" d:Content="Strasse" />
|
||||
<Separator />
|
||||
<StatusBarItem FontSize="20" Content="{Binding AktualObject}" d:Content="Aktuelle Objekt" />
|
||||
<Separator />
|
||||
|
||||
</StatusBar>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
</d:UserControl.DataContext>
|
||||
<Grid>
|
||||
<StackPanel>
|
||||
<TreeView ItemsSource="{Binding SewerObjects}" SelectedValuePath="{Binding Testme}">
|
||||
<TextBlock Text="Objektliste" />
|
||||
<TreeView Margin="20" ItemsSource="{Binding SewerObjects}" SelectedValuePath="{Binding Testme}">
|
||||
<TreeView.Resources>
|
||||
<HierarchicalDataTemplate DataType="{x:Type dsmodel:SewerObjectsToStreet}" ItemsSource="{Binding SewerObjects}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
||||
Reference in New Issue
Block a user