summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Factories
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-11-20 18:30:43 +0000
committersr55 <[email protected]>2011-11-20 18:30:43 +0000
commitc0c88720f5f59104770be38f0e84d7c2897ef465 (patch)
treeb1a17f7d388203cf99f5eec0665c1806dd1b8221 /win/CS/HandBrakeWPF/Factories
parent24cfd6cf3e18288052533ea385a6d0b648fac139 (diff)
WinGui: (WPF) Add global exception handler and new wpf exception view.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4361 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Factories')
-rw-r--r--win/CS/HandBrakeWPF/Factories/ViewModelFactory.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Factories/ViewModelFactory.cs b/win/CS/HandBrakeWPF/Factories/ViewModelFactory.cs
index 6b110fcd1..2c840f441 100644
--- a/win/CS/HandBrakeWPF/Factories/ViewModelFactory.cs
+++ b/win/CS/HandBrakeWPF/Factories/ViewModelFactory.cs
@@ -13,6 +13,9 @@ namespace HandBrakeWPF.Factories
using HandBrake.ApplicationServices.Services.Interfaces;
+ using HandBrakeWPF.ViewModels;
+ using HandBrakeWPF.ViewModels.Interfaces;
+
/// <summary>
/// The View Model Factory
/// </summary>
@@ -42,5 +45,16 @@ namespace HandBrakeWPF.Factories
this.windowManager = windowManager;
this.userSettingsService = userSettingsService;
}
+
+ /// <summary>
+ /// Create an ErrorViewModel
+ /// </summary>
+ /// <returns>
+ /// An Error ViewModel
+ /// </returns>
+ public IErrorViewModel CreateErrorViewModel()
+ {
+ return new ErrorViewModel();
+ }
}
}