Gui angefangen

This commit is contained in:
Husky
2021-02-27 13:19:42 +01:00
parent c581f5e198
commit 2c4bcde9c8
9 changed files with 130 additions and 44 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/*/bin/* /*/bin/*
/*/obj/* /*/obj/*
/.vs/*

View File

@@ -1,33 +1,35 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio Version 16
VisualStudioVersion = 15.0.26124.0 VisualStudioVersion = 16.0.31019.35
MinimumVisualStudioVersion = 15.0.26124.0 MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DPGetDataContract", "DPGetDataContract\DPGetDataContract.csproj", "{FEAFDFF0-4E0F-4C3F-AA04-3DB55FE40EEF}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DPGetDataContract", "DPGetDataContract\DPGetDataContract.csproj", "{FEAFDFF0-4E0F-4C3F-AA04-3DB55FE40EEF}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataGen", "DataGen\DataGen.csproj", "{6353BC4D-10F2-44D5-AB72-DB93B51E8B04}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataGen", "DataGen\DataGen.csproj", "{6353BC4D-10F2-44D5-AB72-DB93B51E8B04}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication", "ConsoleApplication\ConsoleApplication.csproj", "{1C7FAD38-27EA-44DD-BACF-D5C6D03D48BB}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleApplication", "ConsoleApplication\ConsoleApplication.csproj", "{1C7FAD38-27EA-44DD-BACF-D5C6D03D48BB}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProtokollWriterContract", "ProtokollWriterContract\ProtokollWriterContract.csproj", "{2CD864B2-7DC5-4667-98D3-5DC841E21CD9}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProtokollWriterContract", "ProtokollWriterContract\ProtokollWriterContract.csproj", "{2CD864B2-7DC5-4667-98D3-5DC841E21CD9}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "Models\Models.csproj", "{E5A85D83-CEC8-4925-B8AA-068BD6B50528}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Models", "Models\Models.csproj", "{E5A85D83-CEC8-4925-B8AA-068BD6B50528}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProtokollWriter", "ProtokollWriter\ProtokollWriter.csproj", "{9762AAF6-BB07-4416-9522-3D2A05C4216A}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProtokollWriter", "ProtokollWriter\ProtokollWriter.csproj", "{9762AAF6-BB07-4416-9522-3D2A05C4216A}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStoring.Contract", "DataStoring.Contract\DataStoring.Contract.csproj", "{BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataStoring.Contract", "DataStoring.Contract\DataStoring.Contract.csproj", "{BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStoring.CSV", "DataStoring.CSV\DataStoring.CSV.csproj", "{18E745A2-2D17-4C21-BD6F-521E681A9834}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataStoring.CSV", "DataStoring.CSV\DataStoring.CSV.csproj", "{18E745A2-2D17-4C21-BD6F-521E681A9834}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuiWPF", "GuiWPF\GuiWPF.csproj", "{4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GuiWPF", "GuiWPF\GuiWPF.csproj", "{4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStoring.EfCore", "DataStoring.EfCore\DataStoring.EfCore.csproj", "{E660EB07-8284-4047-B534-20FB65D76632}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataStoring.EfCore", "DataStoring.EfCore\DataStoring.EfCore.csproj", "{E660EB07-8284-4047-B534-20FB65D76632}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DichtheitManagement", "DichtheitManagement\DichtheitManagement.csproj", "{2F84635C-4414-4B99-967D-12B8CB8C8B10}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DichtheitManagement", "DichtheitManagement\DichtheitManagement.csproj", "{2F84635C-4414-4B99-967D-12B8CB8C8B10}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DichtheitManagement.Contract", "DichtheitManagement.Contract\DichtheitManagement.Contract.csproj", "{29298D7D-36C6-4092-8615-1B49E0D7A74C}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DichtheitManagement.Contract", "DichtheitManagement.Contract\DichtheitManagement.Contract.csproj", "{29298D7D-36C6-4092-8615-1B49E0D7A74C}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mappings", "Mappings\Mappings.csproj", "{CB3C8585-E6B2-42AC-BED6-9924E7CDC355}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mappings", "Mappings\Mappings.csproj", "{CB3C8585-E6B2-42AC-BED6-9924E7CDC355}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuiWPF_ViewModel", "GuiWPF_ViewModel\GuiWPF_ViewModel.csproj", "{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -38,9 +40,6 @@ Global
Release|x64 = Release|x64 Release|x64 = Release|x64
Release|x86 = Release|x86 Release|x86 = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FEAFDFF0-4E0F-4C3F-AA04-3DB55FE40EEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FEAFDFF0-4E0F-4C3F-AA04-3DB55FE40EEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FEAFDFF0-4E0F-4C3F-AA04-3DB55FE40EEF}.Debug|Any CPU.Build.0 = Debug|Any CPU {FEAFDFF0-4E0F-4C3F-AA04-3DB55FE40EEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -114,18 +113,6 @@ Global
{9762AAF6-BB07-4416-9522-3D2A05C4216A}.Release|x64.Build.0 = Release|Any CPU {9762AAF6-BB07-4416-9522-3D2A05C4216A}.Release|x64.Build.0 = Release|Any CPU
{9762AAF6-BB07-4416-9522-3D2A05C4216A}.Release|x86.ActiveCfg = Release|Any CPU {9762AAF6-BB07-4416-9522-3D2A05C4216A}.Release|x86.ActiveCfg = Release|Any CPU
{9762AAF6-BB07-4416-9522-3D2A05C4216A}.Release|x86.Build.0 = Release|Any CPU {9762AAF6-BB07-4416-9522-3D2A05C4216A}.Release|x86.Build.0 = Release|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Debug|x64.ActiveCfg = Debug|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Debug|x64.Build.0 = Debug|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Debug|x86.ActiveCfg = Debug|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Debug|x86.Build.0 = Debug|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Release|Any CPU.Build.0 = Release|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Release|x64.ActiveCfg = Release|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Release|x64.Build.0 = Release|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Release|x86.ActiveCfg = Release|Any CPU
{75CAC182-0861-4E01-88DF-52FF5CFAB3C2}.Release|x86.Build.0 = Release|Any CPU
{BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}.Debug|Any CPU.Build.0 = Debug|Any CPU {BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}.Debug|x64.ActiveCfg = Debug|Any CPU {BDC2AC0C-8CD5-4B4F-840F-24EE31E3B06C}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -162,18 +149,6 @@ Global
{4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}.Release|x64.Build.0 = Release|Any CPU {4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}.Release|x64.Build.0 = Release|Any CPU
{4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}.Release|x86.ActiveCfg = Release|Any CPU {4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}.Release|x86.ActiveCfg = Release|Any CPU
{4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}.Release|x86.Build.0 = Release|Any CPU {4CEEFEE5-9AD5-48E5-9168-5C56E232EFED}.Release|x86.Build.0 = Release|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Debug|x64.ActiveCfg = Debug|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Debug|x64.Build.0 = Debug|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Debug|x86.ActiveCfg = Debug|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Debug|x86.Build.0 = Debug|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Release|Any CPU.Build.0 = Release|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Release|x64.ActiveCfg = Release|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Release|x64.Build.0 = Release|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Release|x86.ActiveCfg = Release|Any CPU
{32F96484-B002-454B-97C9-8976270726C6}.Release|x86.Build.0 = Release|Any CPU
{E660EB07-8284-4047-B534-20FB65D76632}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E660EB07-8284-4047-B534-20FB65D76632}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E660EB07-8284-4047-B534-20FB65D76632}.Debug|Any CPU.Build.0 = Debug|Any CPU {E660EB07-8284-4047-B534-20FB65D76632}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E660EB07-8284-4047-B534-20FB65D76632}.Debug|x64.ActiveCfg = Debug|Any CPU {E660EB07-8284-4047-B534-20FB65D76632}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -222,5 +197,23 @@ Global
{CB3C8585-E6B2-42AC-BED6-9924E7CDC355}.Release|x64.Build.0 = Release|Any CPU {CB3C8585-E6B2-42AC-BED6-9924E7CDC355}.Release|x64.Build.0 = Release|Any CPU
{CB3C8585-E6B2-42AC-BED6-9924E7CDC355}.Release|x86.ActiveCfg = Release|Any CPU {CB3C8585-E6B2-42AC-BED6-9924E7CDC355}.Release|x86.ActiveCfg = Release|Any CPU
{CB3C8585-E6B2-42AC-BED6-9924E7CDC355}.Release|x86.Build.0 = Release|Any CPU {CB3C8585-E6B2-42AC-BED6-9924E7CDC355}.Release|x86.Build.0 = Release|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Debug|x64.ActiveCfg = Debug|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Debug|x64.Build.0 = Debug|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Debug|x86.ActiveCfg = Debug|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Debug|x86.Build.0 = Debug|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Release|Any CPU.Build.0 = Release|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Release|x64.ActiveCfg = Release|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Release|x64.Build.0 = Release|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Release|x86.ActiveCfg = Release|Any CPU
{AEE0E978-875E-4BF4-B5D5-CF8D85E227CE}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BFF628DF-FF6C-4DE8-85AB-A62767FD917D}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View File

@@ -6,4 +6,8 @@
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\GuiWPF_ViewModel\GuiWPF_ViewModel.csproj" />
</ItemGroup>
</Project> </Project>

View File

@@ -5,8 +5,14 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:GuiWPF" xmlns:local="clr-namespace:GuiWPF"
mc:Ignorable="d" mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"> Title="{Binding Titel, StringFormat={} DP - {0}}" Height="450" Width="800">
<Grid> <Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Content="WWWings-Flugbuchung" FontSize="30" Margin="5"/>
<ContentControl Content="{Binding}" Grid.Row="1"/>
</Grid> </Grid>
</Window> </Window>

View File

@@ -1,4 +1,5 @@
using System; using GuiWPF_ViewModel;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@@ -23,6 +24,7 @@ namespace GuiWPF
public MainWindow() public MainWindow()
{ {
InitializeComponent(); InitializeComponent();
this.DataContext = new MainViewModel();
} }
} }
} }

View File

@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace GuiWPF_ViewModel
{
public class MainViewModel : NotificationObject
{
public string Titel { get; set; }
public MainViewModel()
{
Titel = "Dichtheitsprüfung by Damian";
//Initialisieren();
}
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace GuiWPF_ViewModel
{
public class NotificationObject : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName]string propertyName="")
{
if(PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace GuiWPF_ViewModel
{
public class ViewModelBase : NotificationObject
{
private bool valIsBusy;
private string valBusyMessage;
public bool IsBusy
{
get => valIsBusy;
set
{
if(valIsBusy != value)
{
valIsBusy = value;
OnPropertyChanged();
}
}
}
public string BusyMessage
{
get => valBusyMessage;
set
{
if(valBusyMessage != value)
{
valBusyMessage = value;
OnPropertyChanged();
}
}
}
}
}