Create ViewModel/Visitors subfolder

we have 5 of these now and will probably make more. They deserve their own folder.
This commit is contained in:
Benjamin Popp 2019-05-11 21:42:19 -05:00
parent b17e8c77df
commit 9766834507
10 changed files with 14 additions and 10 deletions

View File

@ -54,12 +54,12 @@
<Compile Include="Models\Runs\AsciiRun.cs" />
<Compile Include="Models\Runs\HeaderRow.cs" />
<Compile Include="ViewModels\AutoCompleteSelectionItem.cs" />
<Compile Include="ViewModels\CompleteEditOperation.cs" />
<Compile Include="ViewModels\ContextItemFactory.cs" />
<Compile Include="ViewModels\ContinueCellEdit.cs" />
<Compile Include="ViewModels\Visitors\CompleteEditOperation.cs" />
<Compile Include="ViewModels\Visitors\ContextItemFactory.cs" />
<Compile Include="ViewModels\Visitors\ContinueCellEdit.cs" />
<Compile Include="ViewModels\ConvertCellToText.cs" />
<Compile Include="ViewModels\DataClear.cs" />
<Compile Include="ViewModels\StartCellEdit.cs" />
<Compile Include="ViewModels\Visitors\DataClear.cs" />
<Compile Include="ViewModels\Visitors\StartCellEdit.cs" />
<Compile Include="ViewModels\Theme.cs" />
<Compile Include="ViewModels\Tools\IArrayElementViewModel.cs" />
<Compile Include="Models\Runs\IFormattedRun.cs" />

View File

@ -1,6 +1,7 @@
using HavenSoft.HexManiac.Core.Models;
using HavenSoft.HexManiac.Core.Models.Runs;
using HavenSoft.HexManiac.Core.ViewModels.Tools;
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;

View File

@ -2,6 +2,7 @@
using HavenSoft.HexManiac.Core.Models.Runs;
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
using HavenSoft.HexManiac.Core.ViewModels.Tools;
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
using System;
using System.Collections;
using System.Collections.Generic;

View File

@ -2,6 +2,7 @@
using HavenSoft.HexManiac.Core.Models.Runs;
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
using HavenSoft.HexManiac.Core.ViewModels.Tools;
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

View File

@ -8,7 +8,7 @@ using System.Linq;
using static HavenSoft.HexManiac.Core.Models.Runs.PCSRun;
using static HavenSoft.HexManiac.Core.Models.Runs.PointerRun;
namespace HavenSoft.HexManiac.Core.ViewModels {
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
internal class CompleteEditOperation : IDataFormatVisitor {
private readonly IDataModel Model;
private readonly int memoryLocation;

View File

@ -6,7 +6,7 @@ using System.Linq;
using System.Windows.Input;
using static HavenSoft.HexManiac.Core.ICommandExtensions;
namespace HavenSoft.HexManiac.Core.ViewModels {
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
public interface IContextItem {
string Text { get; }
ICommand Command { get; }

View File

@ -6,7 +6,7 @@ using static HavenSoft.HexManiac.Core.Models.Runs.ArrayRun;
using static HavenSoft.HexManiac.Core.Models.Runs.PCSRun;
using static HavenSoft.HexManiac.Core.Models.Runs.PointerRun;
namespace HavenSoft.HexManiac.Core.ViewModels {
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
/// <summary>
/// An an existing UnderEdit element is trying to be edited.
/// This object just needs to set Result to true if the Input is valid for the given cell.

View File

@ -2,7 +2,7 @@
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
using System;
namespace HavenSoft.HexManiac.Core.ViewModels {
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
/// <summary>
/// How we clear data depends on what type of data we're clearing.
/// For example, cleared pointers get replaced with NULL (0x00000000).

View File

@ -9,7 +9,7 @@ using static HavenSoft.HexManiac.Core.Models.Runs.BaseRun;
using static HavenSoft.HexManiac.Core.Models.Runs.PCSRun;
using static HavenSoft.HexManiac.Core.Models.Runs.PointerRun;
namespace HavenSoft.HexManiac.Core.ViewModels {
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
/// <summary>
/// StartCellEdit is responsible for 2 things.
/// (1) if Input is a valid change for MemoryLocation, Result should be true after calling the appropriate Visit() method.

View File

@ -2,6 +2,7 @@
using HavenSoft.HexManiac.Core.Models;
using HavenSoft.HexManiac.Core.ViewModels;
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
using HavenSoft.HexManiac.WPF.Implementations;
using System;
using System.Collections.Generic;