viewmodel ins wpf gepackt, build failed
This commit is contained in:
33
DaSaSo.Wpf/ViewModel/Interface/IActualProject.cs
Normal file
33
DaSaSo.Wpf/ViewModel/Interface/IActualProject.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using DaSaSo.Domain.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface IActualProject
|
||||
{
|
||||
event EventHandler? ClientChanged;
|
||||
event EventHandler? ProjectChanged;
|
||||
event EventHandler? BuildingSiteChanged;
|
||||
event EventHandler? SewerObjectChanged;
|
||||
event EventHandler? SewerDamageChanged;
|
||||
Client AktuellClient { get; }
|
||||
Project AktuellProjekt { get; }
|
||||
Buildingsite AktuellBaustelle { get; }
|
||||
SewerObject AktuellSewerObject { get; }
|
||||
SewerDamage AktuellSewerDamage { get; }
|
||||
Impregnation AktuellImpregnation { get; }
|
||||
|
||||
void SetClient(Client client, bool notification = true);
|
||||
void SetProject(Project project, bool notification = true);
|
||||
void SetBuildingSite(Buildingsite buildingsite);
|
||||
void SetSewerObject(SewerObject sewerObject, bool notification = true);
|
||||
void SetSewerDamage(SewerDamage sewerDamage, bool notification = true);
|
||||
void SetImpregnation(Impregnation impregnation, bool notification = true);
|
||||
void ResetProject();
|
||||
void ResetBuildingSite();
|
||||
}
|
||||
}
|
||||
12
DaSaSo.Wpf/ViewModel/Interface/IMainWindowNavigator.cs
Normal file
12
DaSaSo.Wpf/ViewModel/Interface/IMainWindowNavigator.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface IMainWindowNavigator : INavigator
|
||||
{
|
||||
}
|
||||
}
|
||||
15
DaSaSo.Wpf/ViewModel/Interface/INavigator.cs
Normal file
15
DaSaSo.Wpf/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.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface INavigator
|
||||
{
|
||||
BaseViewModel CurrentViewModel { get; set; }
|
||||
event Action StateChanged;
|
||||
}
|
||||
}
|
||||
13
DaSaSo.Wpf/ViewModel/Interface/IRenavigator.cs
Normal file
13
DaSaSo.Wpf/ViewModel/Interface/IRenavigator.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.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface IRenavigator
|
||||
{
|
||||
void Renavigate();
|
||||
}
|
||||
}
|
||||
12
DaSaSo.Wpf/ViewModel/Interface/ISewerMainNavigator.cs
Normal file
12
DaSaSo.Wpf/ViewModel/Interface/ISewerMainNavigator.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface ISewerMainNavigator : INavigator
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using DaSaSo.Domain.Enums;
|
||||
|
||||
namespace DaSaSo.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface IViewModelAbstractFactory
|
||||
{
|
||||
BaseViewModel CreateViewModel(EMainWindowViewType viewType);
|
||||
}
|
||||
}
|
||||
13
DaSaSo.Wpf/ViewModel/Interface/IViewModelFactory.cs
Normal file
13
DaSaSo.Wpf/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.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface IViewModelFactory<T> where T: BaseViewModel
|
||||
{
|
||||
T CreateViewModel();
|
||||
}
|
||||
}
|
||||
14
DaSaSo.Wpf/ViewModel/Interface/IViewModelSewerMainFactory.cs
Normal file
14
DaSaSo.Wpf/ViewModel/Interface/IViewModelSewerMainFactory.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using DaSaSo.Domain.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface IViewModelSewerMainFactory
|
||||
{
|
||||
BaseViewModel CreateViewModel(ESewerWindowViewType viewType);
|
||||
}
|
||||
}
|
||||
13
DaSaSo.Wpf/ViewModel/Interface/IWindowService.cs
Normal file
13
DaSaSo.Wpf/ViewModel/Interface/IWindowService.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.Wpf.ViewModel.Interface
|
||||
{
|
||||
public interface IWindowService
|
||||
{
|
||||
void ShowWindow<T>(object DataContext);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user