diff options
author | sr55 <[email protected]> | 2015-04-22 19:48:04 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-04-22 19:48:04 +0000 |
commit | 81aecad6b76087e4118ec1809398e9f1a9685d4c (patch) | |
tree | 32c27d5b42ec567b96c3395bbbe662862bf0bb4a /win/CS/HandBrakeWPF/ViewModels | |
parent | 87ea09d9f07c0353bda7aa8d566077bde3528e76 (diff) |
WinGui: Some minor UI Improvements. Including Waiting Queue Count on the "Show Queue" toolbar icon.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7117 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index c521ee235..7d9e9d2c2 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1135,6 +1135,28 @@ namespace HandBrakeWPF.ViewModels }
}
+ /// <summary>
+ /// Gets the add to queue label.
+ /// </summary>
+ public string QueueLabel
+ {
+ get
+ {
+ return string.Format(Resources.Main_QueueLabel, this.queueProcessor.Count > 0 ? string.Format(" ({0})", this.queueProcessor.Count) : string.Empty);
+ }
+ }
+
+ /// <summary>
+ /// Gets the start label.
+ /// </summary>
+ public string StartLabel
+ {
+ get
+ {
+ return this.queueProcessor.Count > 0 ? Resources.Main_StartQueue : Resources.Main_Start;
+ }
+ }
+
#endregion
#region Load and Shutdown Handling
@@ -1295,7 +1317,7 @@ namespace HandBrakeWPF.ViewModels {
if (this.ScannedSource == null || string.IsNullOrEmpty(this.ScannedSource.ScanPath) || this.ScannedSource.Titles.Count == 0)
{
- this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
+ this.errorService.ShowMessageBox(Resources.Main_ScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return false;
}
@@ -1353,7 +1375,7 @@ namespace HandBrakeWPF.ViewModels {
if (this.ScannedSource == null || this.ScannedSource.Titles == null || this.ScannedSource.Titles.Count == 0)
{
- this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
+ this.errorService.ShowMessageBox(Resources.Main_ScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}
@@ -1382,7 +1404,7 @@ namespace HandBrakeWPF.ViewModels {
if (this.ScannedSource == null || this.ScannedSource.Titles == null || this.ScannedSource.Titles.Count == 0)
{
- this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
+ this.errorService.ShowMessageBox(Resources.Main_ScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}
@@ -2303,6 +2325,8 @@ namespace HandBrakeWPF.ViewModels () =>
{
this.ProgramStatusLabel = string.Format(Resources.Main_XEncodesPending, this.queueProcessor.Count);
+ this.NotifyOfPropertyChange(() => this.QueueLabel);
+ this.NotifyOfPropertyChange(() => this.StartLabel);
});
}
|