using System.Windows.Media;
using DTS.Common.Base;
using DTS.Common.Enums.Database;
namespace DTS.Common.Interface.Database
{
///
/// this viewmodel handles the logic for database status in a UI
/// it handles the current connection and status
///
public interface IDatabaseStatusBarViewModel : IBaseViewModel
{
///
/// the associated view for the model
///
IDatabaseStatusBarView View { get; set; }
//frees up any memory associated with viewmodel
void Unset();
///
/// gets the database type
/// use initializevalues to populate
///
DbType DatabaseType { get; }
///
/// gets whether the remote database is connected
/// use initializevalues to populate
///
bool RemoteConnected { get; }
///
/// the server (not db) name
/// use initialize values to populate
///
string ServerName { get; }
///
/// sets the initial values for db type, server name, and remote connection status
///
///
///
///
void InitializeValues(DbType dbType, string serverName, bool remoteConnected);
///
/// returns the current active db name (either server name or local depending on db type and remote connection status)
///
string ActiveDbName { get; }
///
/// returns the background brush for the active db name
///
Brush BackgroundBrush { get; }
}
}