From c0c88720f5f59104770be38f0e84d7c2897ef465 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 20 Nov 2011 18:30:43 +0000 Subject: 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 --- win/CS/HandBrakeWPF/Factories/ViewModelFactory.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'win/CS/HandBrakeWPF/Factories') 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; + /// /// The View Model Factory /// @@ -42,5 +45,16 @@ namespace HandBrakeWPF.Factories this.windowManager = windowManager; this.userSettingsService = userSettingsService; } + + /// + /// Create an ErrorViewModel + /// + /// + /// An Error ViewModel + /// + public IErrorViewModel CreateErrorViewModel() + { + return new ErrorViewModel(); + } } } -- cgit v1.2.3