From 211ff8399db682c09dcc3c0428a4dbccc880dc29 Mon Sep 17 00:00:00 2001 From: Benjamin Popp Date: Sat, 27 Oct 2018 20:42:09 -0500 Subject: [PATCH] moving ChangeHistory from the model to the viewmodel, since it now provides change notification. --- Gen3Hex/Gen3Hex.csproj | 2 +- Gen3Hex/{Model => ViewModel}/ChangeHistory.cs | 5 ++--- HexTests/ChangeHistoryTests.cs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) rename Gen3Hex/{Model => ViewModel}/ChangeHistory.cs (98%) diff --git a/Gen3Hex/Gen3Hex.csproj b/Gen3Hex/Gen3Hex.csproj index 8eb605bf..377bcc49 100644 --- a/Gen3Hex/Gen3Hex.csproj +++ b/Gen3Hex/Gen3Hex.csproj @@ -52,7 +52,7 @@ MSBuild:Compile Designer - + diff --git a/Gen3Hex/Model/ChangeHistory.cs b/Gen3Hex/ViewModel/ChangeHistory.cs similarity index 98% rename from Gen3Hex/Model/ChangeHistory.cs rename to Gen3Hex/ViewModel/ChangeHistory.cs index d1a5c963..1fb830ca 100644 --- a/Gen3Hex/Model/ChangeHistory.cs +++ b/Gen3Hex/ViewModel/ChangeHistory.cs @@ -1,10 +1,9 @@ -using HavenSoft.Gen3Hex.ViewModel; -using System; +using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Windows.Input; -namespace HavenSoft.Gen3Hex.Model { +namespace HavenSoft.Gen3Hex.ViewModel { /// /// Represents a history of changes that can undo / redo. /// The change can be reperesented by any class with an empty constructor. diff --git a/HexTests/ChangeHistoryTests.cs b/HexTests/ChangeHistoryTests.cs index 7fa2c9db..deaa6940 100644 --- a/HexTests/ChangeHistoryTests.cs +++ b/HexTests/ChangeHistoryTests.cs @@ -1,4 +1,4 @@ -using HavenSoft.Gen3Hex.Model; +using HavenSoft.Gen3Hex.ViewModel; using System; using System.Collections.Generic; using System.Linq;