This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
// ReSharper disable CheckNamespace
namespace DTS.Common.Base
{
public interface IBaseClass : IBasePropertyChanged { }
}

View 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; }
}
}

View 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);
}
}

View 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; }
}
}

View 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);
}
}

View 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; }
}
}

View 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);
}
}

View 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; }
}
}

View 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; }
}
}