From 9a4589f8649cd4e464c59582d25f521e1c55c561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Erbsh=C3=A4u=C3=9Fer?= Date: Thu, 11 Jun 2020 10:30:45 +0200 Subject: [PATCH] Implemented flat editing logic. --- ucalc/Annotations.cs | 2 +- ucalc/BillingWindow.xaml.cs | 1 + ucalc/Controls/ErrorIcon.xaml.cs | 2 +- ucalc/Controls/SectionHeader.xaml | 2 +- ucalc/FlatWindow.xaml | 74 +++++++++++++++++++++++++++++++ ucalc/FlatWindow.xaml.cs | 21 +++++++++ ucalc/Models/Model.cs | 4 +- ucalc/NewWindow.xaml | 11 +++-- ucalc/Pages/HousePage.xaml | 11 ++--- ucalc/Pages/HousePage.xaml.cs | 8 ++++ ucalc/Pages/LandlordPage.xaml | 22 ++++----- ucalc/ucalc.csproj | 6 +++ 12 files changed, 140 insertions(+), 24 deletions(-) create mode 100644 ucalc/FlatWindow.xaml create mode 100644 ucalc/FlatWindow.xaml.cs diff --git a/ucalc/Annotations.cs b/ucalc/Annotations.cs index 84abdc0..e8ef5b5 100644 --- a/ucalc/Annotations.cs +++ b/ucalc/Annotations.cs @@ -32,7 +32,7 @@ using System; // ReSharper disable MemberCanBeProtected.Global // ReSharper disable InconsistentNaming -namespace ucalc.Annotations +namespace UCalc.Annotations { /// /// Indicates that the value of the marked element could be null sometimes, diff --git a/ucalc/BillingWindow.xaml.cs b/ucalc/BillingWindow.xaml.cs index f645e51..a95181a 100644 --- a/ucalc/BillingWindow.xaml.cs +++ b/ucalc/BillingWindow.xaml.cs @@ -48,6 +48,7 @@ namespace UCalc { var page = (HousePage) ((Frame) sender).Content; page.Model = Model.HouseModel; + page.ParentWindow = this; } } } \ No newline at end of file diff --git a/ucalc/Controls/ErrorIcon.xaml.cs b/ucalc/Controls/ErrorIcon.xaml.cs index 31bc7b5..de95dc7 100644 --- a/ucalc/Controls/ErrorIcon.xaml.cs +++ b/ucalc/Controls/ErrorIcon.xaml.cs @@ -4,7 +4,7 @@ using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; using System.Windows.Data; -using ucalc.Annotations; +using UCalc.Annotations; namespace UCalc.Controls { diff --git a/ucalc/Controls/SectionHeader.xaml b/ucalc/Controls/SectionHeader.xaml index 9922a59..fa718c5 100644 --- a/ucalc/Controls/SectionHeader.xaml +++ b/ucalc/Controls/SectionHeader.xaml @@ -7,7 +7,7 @@ xmlns:controls="clr-namespace:UCalc.Controls" mc:Ignorable="d"> - + diff --git a/ucalc/FlatWindow.xaml b/ucalc/FlatWindow.xaml new file mode 100644 index 0000000..a047440 --- /dev/null +++ b/ucalc/FlatWindow.xaml @@ -0,0 +1,74 @@ + + + + + + + +