init
This commit is contained in:
72
Common/DTS.Common/Base/Interface/IBaseViewModel.cs
Normal file
72
Common/DTS.Common/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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user