summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
index 5c0913a37..b398a1b5c 100644
--- a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
@@ -23,6 +23,7 @@ namespace HandBrakeWPF.ViewModels
using HandBrake.ApplicationServices.Services.Interfaces;
using HandBrakeWPF.Factories;
+ using HandBrakeWPF.Properties;
using HandBrakeWPF.Services;
using HandBrakeWPF.Services.Interfaces;
using HandBrakeWPF.ViewModels.Interfaces;
@@ -85,7 +86,7 @@ namespace HandBrakeWPF.ViewModels
public PreviewViewModel(IErrorService errorService, IUserSettingService userSettingService)
{
// Preview needs a seperate instance rather than the shared singleton. This could maybe do with being refactored at some point
- this.encodeService = new EncodeServiceWrapper(userSettingService);
+ this.encodeService = new EncodeServiceWrapper(userSettingService);
this.errorService = errorService;
this.userSettingService = userSettingService;
@@ -262,13 +263,13 @@ namespace HandBrakeWPF.ViewModels
{
this.IsEncoding = false;
this.errorService.ShowMessageBox("Unable to delete previous preview file. You may need to restart the application.",
- "Error", MessageBoxButton.OK, MessageBoxImage.Error);
+ Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
}
if (this.Task == null || string.IsNullOrEmpty(Task.Source))
{
this.errorService.ShowMessageBox("You must first scan a source and setup your encode before creating a perview.",
- "Error", MessageBoxButton.OK, MessageBoxImage.Error);
+ Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}
@@ -348,7 +349,7 @@ namespace HandBrakeWPF.ViewModels
else
{
this.errorService.ShowMessageBox("Unable to detect VLC Player. \nPlease make sure VLC is installed and the directory specified in HandBrake's options is correct. (See: \"Tools Menu > Options > Picture Tab\")",
- "Error", MessageBoxButton.OK, MessageBoxImage.Warning);
+ Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);
}
}
@@ -362,7 +363,7 @@ namespace HandBrakeWPF.ViewModels
else
{
this.errorService.ShowMessageBox("Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details.",
- "Error", MessageBoxButton.OK, MessageBoxImage.Warning);
+ Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);
}
}
}
@@ -379,7 +380,7 @@ namespace HandBrakeWPF.ViewModels
if (encodeService.IsEncoding)
{
this.errorService.ShowMessageBox("Handbrake is already encoding a video! Only one file can be encoded at any one time.",
- "Error", MessageBoxButton.OK, MessageBoxImage.Error);
+ Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}