Release v0.1.1
This commit is contained in:
+21
-1
@@ -299,13 +299,33 @@ namespace SbLauncher
|
||||
public ICommand DeleteSelectedCommand { get; private set; }
|
||||
|
||||
// ── статус ───────────────────────────────────────────────────────
|
||||
public string VersionText
|
||||
{
|
||||
get
|
||||
{
|
||||
Assembly assembly = Assembly.GetExecutingAssembly();
|
||||
AssemblyInformationalVersionAttribute version =
|
||||
(AssemblyInformationalVersionAttribute)Attribute.GetCustomAttribute(
|
||||
assembly, typeof(AssemblyInformationalVersionAttribute));
|
||||
return "v" + (version != null ? version.InformationalVersion :
|
||||
assembly.GetName().Version.ToString(3));
|
||||
}
|
||||
}
|
||||
public string StatusTitle { get { return _statusTitle; } set { _statusTitle = value; Raise(); } }
|
||||
public string StatusSub { get { return _statusSub; } set { _statusSub = value; Raise(); } }
|
||||
public string StatusKey { set { _statusKey = value; Raise("StatusBrush"); } }
|
||||
public Brush StatusBrush { get { return Theme.Res(_statusKey); } }
|
||||
public string ConnectText { get { return _connectText; } set { _connectText = value; Raise(); } }
|
||||
// Лёгкая анимация в XAML зависит только от фазы, без таймеров на UI-потоке.
|
||||
public string ConnectionPhase { get { return _connectionPhase; } set { _connectionPhase = value; Raise(); } }
|
||||
public string ConnectionPhase
|
||||
{
|
||||
get { return _connectionPhase; }
|
||||
set { _connectionPhase = value; Raise(); Raise("ConnectionInProgress"); }
|
||||
}
|
||||
public bool ConnectionInProgress
|
||||
{
|
||||
get { return _connectionPhase == "connecting" || _connectionPhase == "disconnecting"; }
|
||||
}
|
||||
public bool IsConnected { get { return _runner.IsRunning; } }
|
||||
public string LogText { get { return _log; } set { _log = value; Raise(); } }
|
||||
public Brush LogBrush { get { return Theme.Res("LogText"); } }
|
||||
|
||||
Reference in New Issue
Block a user