init
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Enums.Database;
|
||||
|
||||
namespace DTS.Common.Interface.Database
|
||||
{
|
||||
/// <summary>
|
||||
/// this viewmodel provides a way for transferring a remote database to a local database
|
||||
/// it clears the local database and populates it with the remote databse
|
||||
/// it requires a local database that has the right tables and stored procedures already
|
||||
/// </summary>
|
||||
public interface IDatabaseCopyViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// the view associated with the model
|
||||
/// </summary>
|
||||
IDatabaseCopyView View { get; set; }
|
||||
/// <summary>
|
||||
/// frees up any memory associated with viewmodel
|
||||
/// </summary>
|
||||
void Unset();
|
||||
/// <summary>
|
||||
/// copies from remote database to local database
|
||||
/// uses DTS.Common.Storage to determine local and remote
|
||||
/// </summary>
|
||||
void CopyDatabase();
|
||||
/// <summary>
|
||||
/// initializes viewmodel state
|
||||
/// </summary>
|
||||
void InitializeState(DbType dbType, string dbName);
|
||||
string DbName { get; }
|
||||
/// <summary>
|
||||
/// the overall status/progress
|
||||
/// </summary>
|
||||
IStatusAndProgressBarView OverallProgressBarView { get; }
|
||||
/// <summary>
|
||||
/// current task status/progress
|
||||
/// </summary>
|
||||
IStatusAndProgressBarView CurrentTaskProgressBarView { get; }
|
||||
DbType DatabaseType { get; }
|
||||
|
||||
bool CopyEnabled { get; }
|
||||
bool IsCopyVisible { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user