Datenschnittstelle erweitert

This commit is contained in:
HuskyTeufel
2022-05-30 15:51:01 +02:00
parent b2a9d46c4d
commit 455f57fd35
38 changed files with 647 additions and 116 deletions

View File

@@ -0,0 +1,34 @@
<UserControl x:Class="GuiWPF.Views.AuftraggeberEditPage"
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:GuiWPF.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Name" />
<Label Grid.Row="1" Grid.Column="0" Content="Straße" />
<Label Grid.Row="2" Grid.Column="0" Content="Ort" />
<Label Grid.Row="3" Grid.Column="0" Content="Telefon" />
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Path=Name}" />
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Path=Strasse}" />
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Path=Ort}" />
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Path=Telefon}" />
<Button Grid.Row="4" Grid.ColumnSpan="2" Content="Speichern" Command="{Binding Path=SaveCommand}" />
</Grid>
</UserControl>

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GuiWPF.Views
{
/// <summary>
/// Interaction logic for AuftraggeberEditPage.xaml
/// </summary>
public partial class AuftraggeberEditPage : UserControl
{
public AuftraggeberEditPage()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,15 @@
<UserControl x:Class="GuiWPF.Views.AuftraggeberListPageView"
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:GuiWPF"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
>
<Grid>
<Label>Auftraggebers</Label>
<ListBox ItemsSource="{Binding Auftraggeberlist}"></ListBox>
</Grid>
</UserControl>

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GuiWPF.Views
{
/// <summary>
/// Interaction logic for AuftraggeberListPageView.xaml
/// </summary>
public partial class AuftraggeberListPageView : UserControl
{
public AuftraggeberListPageView()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,12 @@
<UserControl x:Class="GuiWPF.Views.BauvorhabenEditPageView"
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:GuiWPF.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
</Grid>
</UserControl>

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GuiWPF.Views
{
/// <summary>
/// Interaction logic for BauvorhabenEditPageView.xaml
/// </summary>
public partial class BauvorhabenEditPageView : UserControl
{
public BauvorhabenEditPageView()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,13 @@
<UserControl x:Class="GuiWPF.Views.HomePageView"
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:GuiWPF"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<TextBlock FontSize="20" Text="{Binding Path=PageTitle}" />
</Grid>
</UserControl>

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GuiWPF.Views
{
/// <summary>
/// Interaktionslogik für HomePageView.xaml
/// </summary>
public partial class HomePageView : UserControl
{
public HomePageView()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,12 @@
<UserControl x:Class="GuiWPF.Views.SettingsPageView"
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:GuiWPF"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<TextBlock FontSize="20" Text="{Binding Path=PageTitle}" />
</Grid>
</UserControl>

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GuiWPF.Views
{
/// <summary>
/// Interaktionslogik für SettingsPageView.xaml
/// </summary>
public partial class SettingsPageView : UserControl
{
public SettingsPageView()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,36 @@
<UserControl x:Class="GuiWPF.Views.SewerObjectDetailsPageView"
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:GuiWPF.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" MinWidth="400" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="Objektname" />
<Label Grid.Column="0" Grid.Row="1" Content="Obere Schacht" />
<Label Grid.Column="0" Grid.Row="2" Content="Untere Schacht" />
<Label Grid.Column="0" Grid.Row="3" Content="Objektlänge" />
<Label Grid.Column="0" Grid.Row="4" Content="Durchmesser" />
<Label Grid.Column="0" Grid.Row="5" Content="Bemerkung" />
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding ObjektName}" />
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding ObenName}" />
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding UntenName}" />
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding ObjektLength}" />
<TextBox Grid.Column="1" Grid.Row="4" Text="{Binding Durchmesser}" />
<TextBox Grid.Column="1" Grid.Row="5" Text="{Binding Bemerkung}" />
</Grid>
</UserControl>

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GuiWPF.Views
{
/// <summary>
/// Interaction logic for SewerObjectDetails.xaml
/// </summary>
public partial class SewerObjectDetailsPageView : UserControl
{
public SewerObjectDetailsPageView()
{
InitializeComponent();
}
}
}