init
This commit is contained in:
5
Common/DTS.CommonCore/Base/Interface/IBaseClass.cs
Normal file
5
Common/DTS.CommonCore/Base/Interface/IBaseClass.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IBaseClass : IBasePropertyChanged { }
|
||||
}
|
||||
13
Common/DTS.CommonCore/Base/Interface/IBaseModel.cs
Normal file
13
Common/DTS.CommonCore/Base/Interface/IBaseModel.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IBaseModel : IBasePropertyChanged
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets the IsSaved status.
|
||||
/// </summary>
|
||||
bool IsSaved { get; }
|
||||
|
||||
}
|
||||
}
|
||||
11
Common/DTS.CommonCore/Base/Interface/IBasePropertyChanged.cs
Normal file
11
Common/DTS.CommonCore/Base/Interface/IBasePropertyChanged.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.ComponentModel;
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IBasePropertyChanged : INotifyPropertyChanged
|
||||
{
|
||||
//void OnPropertyChanged(string propertyName = null);
|
||||
//bool SetProperty<T>(ref T storage, T value, String propertyName = null);
|
||||
void OnPropertyChanged(string propertyName);
|
||||
}
|
||||
}
|
||||
11
Common/DTS.CommonCore/Base/Interface/IBaseView.cs
Normal file
11
Common/DTS.CommonCore/Base/Interface/IBaseView.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IBaseView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the data context.
|
||||
/// </summary>
|
||||
object DataContext { get; set; }
|
||||
}
|
||||
}
|
||||
72
Common/DTS.CommonCore/Base/Interface/IBaseViewModel.cs
Normal file
72
Common/DTS.CommonCore/Base/Interface/IBaseViewModel.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IBaseViewModel : IBasePropertyChanged
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets, sets the IsMenuIncluded status.
|
||||
/// </summary>
|
||||
bool IsMenuIncluded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets, sets the IsNavigationIncluded status.
|
||||
/// </summary>
|
||||
bool IsNavigationIncluded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the IsBusy status.
|
||||
/// </summary>
|
||||
bool IsBusy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Activated method.
|
||||
/// </summary>
|
||||
void Activated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the IsDirty status.
|
||||
/// </summary>
|
||||
bool IsDirty { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The Cleanup method.
|
||||
/// </summary>
|
||||
void Cleanup();
|
||||
|
||||
/// <summary>
|
||||
/// Starts the cleanup process asynchronously.
|
||||
/// </summary>
|
||||
Task CleanupAsync();
|
||||
|
||||
/// <summary>
|
||||
/// The Initialize method.
|
||||
/// </summary>
|
||||
void Initialize();
|
||||
|
||||
/// <summary>
|
||||
/// The Initialize method.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to initialize the viewmodel.</param>
|
||||
void Initialize(object parameter);
|
||||
|
||||
/// <summary>
|
||||
/// The Initialize method.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to initialize the viewmodel.</param>
|
||||
/// <param name="model">Another parameter to initialize the viewmodel.</param>
|
||||
void Initialize(object parameter, object model);
|
||||
|
||||
/// <summary>
|
||||
/// Starts the initialization process asynchronously.
|
||||
/// </summary>
|
||||
Task InitializeAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Starts the initialization process asynchronously.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to initialize the viewmodel.</param>
|
||||
Task InitializeAsync(object parameter);
|
||||
}
|
||||
}
|
||||
11
Common/DTS.CommonCore/Base/Interface/IBaseWindow.cs
Normal file
11
Common/DTS.CommonCore/Base/Interface/IBaseWindow.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IBaseWindow
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the data context.
|
||||
/// </summary>
|
||||
object DataContext { get; set; }
|
||||
}
|
||||
}
|
||||
66
Common/DTS.CommonCore/Base/Interface/IBaseWindowModel.cs
Normal file
66
Common/DTS.CommonCore/Base/Interface/IBaseWindowModel.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using System.ComponentModel;
|
||||
using System.Threading.Tasks;
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
|
||||
public interface IBaseWindowModel : INotifyPropertyChanged
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets, sets the IsMenuIncluded status.
|
||||
/// </summary>
|
||||
bool IsMenuIncluded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets, sets the IsNavigationIncluded status.
|
||||
/// </summary>
|
||||
bool IsNavigationIncluded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the IsBusy status.
|
||||
/// </summary>
|
||||
bool IsBusy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Activated method.
|
||||
/// </summary>
|
||||
void Activated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the IsDirty status.
|
||||
/// </summary>
|
||||
bool IsDirty { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The Cleanup method.
|
||||
/// </summary>
|
||||
void Cleanup();
|
||||
|
||||
/// <summary>
|
||||
/// Starts the cleanup process asynchronously.
|
||||
/// </summary>
|
||||
Task CleanupAsync();
|
||||
|
||||
/// <summary>
|
||||
/// The Initialize method.
|
||||
/// </summary>
|
||||
void Initialize();
|
||||
|
||||
/// <summary>
|
||||
/// The Initialize method.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to initialize the viewmodel.</param>
|
||||
void Initialize(object parameter);
|
||||
|
||||
/// <summary>
|
||||
/// Starts the initialization process asynchronously.
|
||||
/// </summary>
|
||||
Task InitializeAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Starts the initialization process asynchronously.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to initialize the viewmodel.</param>
|
||||
Task InitializeAsync(object parameter);
|
||||
}
|
||||
}
|
||||
15
Common/DTS.CommonCore/Base/Interface/IHeaderInfoProvider.cs
Normal file
15
Common/DTS.CommonCore/Base/Interface/IHeaderInfoProvider.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides an easy way to recognize a class that exposes a HeaderInfo that can be used to bind to a header from XAML.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The HeaderInfo type.</typeparam>
|
||||
public interface IHeaderInfoProvider<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the header info of type T.
|
||||
/// </summary>
|
||||
T HeaderInfo { get; }
|
||||
}
|
||||
}
|
||||
10
Common/DTS.CommonCore/Base/Interface/IViewModel.cs
Normal file
10
Common/DTS.CommonCore/Base/Interface/IViewModel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IViewModel
|
||||
{
|
||||
// Summary:
|
||||
// Gets or sets the Model property of the viewmodel object.
|
||||
object Model { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user