From 73281bd14e465a33d53067ada2fd4d3606a0caa9 Mon Sep 17 00:00:00 2001 From: Tracy Pearson Date: Mon, 1 Apr 2024 17:48:00 -0400 Subject: [PATCH] Building example MVP ideas --- .../ModelProperties/ModelPropertiesModel.cs | 15 +++++++++++++++ .../ViewProperties/ViewPropertiesModel.cs | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 MVPLearning/TestingArea/ModelProperties/ModelPropertiesModel.cs create mode 100644 MVPLearning/TestingArea/ViewProperties/ViewPropertiesModel.cs diff --git a/MVPLearning/TestingArea/ModelProperties/ModelPropertiesModel.cs b/MVPLearning/TestingArea/ModelProperties/ModelPropertiesModel.cs new file mode 100644 index 0000000..8f8f94d --- /dev/null +++ b/MVPLearning/TestingArea/ModelProperties/ModelPropertiesModel.cs @@ -0,0 +1,15 @@ +using MVPLearning.Structure; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MVPLearning.TestingArea.ModelProperties +{ + internal class ModelPropertiesModel : ObservableObject + { + public string FirstName { get => _firstName; set => SetProperty(ref _firstName, value); } + private string _firstName = string.Empty; + } +} diff --git a/MVPLearning/TestingArea/ViewProperties/ViewPropertiesModel.cs b/MVPLearning/TestingArea/ViewProperties/ViewPropertiesModel.cs new file mode 100644 index 0000000..98143f6 --- /dev/null +++ b/MVPLearning/TestingArea/ViewProperties/ViewPropertiesModel.cs @@ -0,0 +1,7 @@ +namespace MVPLearning.TestingArea.ViewProperties +{ + internal class ViewPropertiesModel + { + public string FirstName { get; set; } = string.Empty; + } +}