From cc3e4b5052f4d320523277d35982da4a1eb53011 Mon Sep 17 00:00:00 2001 From: Pat Date: Wed, 23 Jan 2019 00:59:10 +0100 Subject: [PATCH] tasks 39, 42, 52, 53 --- Magazyn_Client/.gitattributes | 63 +++++++++ Magazyn_Client/Magazyn/App.xaml | 10 +- Magazyn_Client/Magazyn/Magazyn.csproj | 14 ++ Magazyn_Client/Magazyn/MainWindow.xaml | 92 +++++-------- Magazyn_Client/Magazyn/MainWindow.xaml.cs | 125 +++++++++++++----- Magazyn_Client/Magazyn/Views/FruitView.xaml | 26 ++-- .../Magazyn/Views/FruitView.xaml.cs | 15 +-- .../Magazyn/Windows/AmountWindow.xaml | 33 ++--- .../Magazyn/Windows/AmountWindow.xaml.cs | 75 +++++------ .../Magazyn/Windows/ErrorWindow.xaml | 23 ++++ .../Magazyn/Windows/ErrorWindow.xaml.cs | 33 +++++ .../Magazyn/Windows/ValueWindow.xaml | 25 ++++ .../Magazyn/Windows/ValueWindow.xaml.cs | 33 +++++ 13 files changed, 383 insertions(+), 184 deletions(-) create mode 100644 Magazyn_Client/.gitattributes create mode 100644 Magazyn_Client/Magazyn/Windows/ErrorWindow.xaml create mode 100644 Magazyn_Client/Magazyn/Windows/ErrorWindow.xaml.cs create mode 100644 Magazyn_Client/Magazyn/Windows/ValueWindow.xaml create mode 100644 Magazyn_Client/Magazyn/Windows/ValueWindow.xaml.cs diff --git a/Magazyn_Client/.gitattributes b/Magazyn_Client/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/Magazyn_Client/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/Magazyn_Client/Magazyn/App.xaml b/Magazyn_Client/Magazyn/App.xaml index 7e77365..309f94e 100644 --- a/Magazyn_Client/Magazyn/App.xaml +++ b/Magazyn_Client/Magazyn/App.xaml @@ -6,11 +6,11 @@ - - - - - + + + + + diff --git a/Magazyn_Client/Magazyn/Magazyn.csproj b/Magazyn_Client/Magazyn/Magazyn.csproj index f088802..5c4a801 100644 --- a/Magazyn_Client/Magazyn/Magazyn.csproj +++ b/Magazyn_Client/Magazyn/Magazyn.csproj @@ -73,6 +73,12 @@ AmountWindow.xaml + + ErrorWindow.xaml + + + ValueWindow.xaml + MSBuild:Compile Designer @@ -93,6 +99,14 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + diff --git a/Magazyn_Client/Magazyn/MainWindow.xaml b/Magazyn_Client/Magazyn/MainWindow.xaml index 83c4f01..03b31a6 100644 --- a/Magazyn_Client/Magazyn/MainWindow.xaml +++ b/Magazyn_Client/Magazyn/MainWindow.xaml @@ -1,71 +1,43 @@ - - + WindowStartupLocation="CenterScreen" + Title="Magazyn Owoców" Height="550" MaxWidth="590" MinWidth="590" Width="590" SizeChanged="Window_SizeChanged"> - - -