Refactoring durchgeführt
This commit is contained in:
15
DaSaSo.ViewModel/Interface/INavigator.cs
Normal file
15
DaSaSo.ViewModel/Interface/INavigator.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace DaSaSo.ViewModel.Interface
|
||||
{
|
||||
public interface INavigator
|
||||
{
|
||||
BaseViewModel CurrentViewModel { get; set; }
|
||||
ICommand UpdateViewModelCommand { get; }
|
||||
}
|
||||
}
|
||||
14
DaSaSo.ViewModel/Interface/IViewModelAbstractFactory.cs
Normal file
14
DaSaSo.ViewModel/Interface/IViewModelAbstractFactory.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using DaSaSo.ViewModel.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.ViewModel.Interface
|
||||
{
|
||||
public interface IViewModelAbstractFactory
|
||||
{
|
||||
BaseViewModel CreateViewModel(EViewType viewType);
|
||||
}
|
||||
}
|
||||
13
DaSaSo.ViewModel/Interface/IViewModelFactory.cs
Normal file
13
DaSaSo.ViewModel/Interface/IViewModelFactory.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.ViewModel.Interface
|
||||
{
|
||||
public interface IViewModelFactory<T> where T: BaseViewModel
|
||||
{
|
||||
T CreateViewModel();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user