summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-12-30 18:57:30 +0000
committersr55 <[email protected]>2011-12-30 18:57:30 +0000
commitcd3e951792f05944fb9ba4f1bc17e581318bfe8f (patch)
treecc36dcf807b7d371132429fd7a7a5550233ee737 /win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs
parent1a4342793d9c7054b1a70030787af46f77208288 (diff)
WinGui: (WPF) Move all the main UI tab UserControls into an MVVM format. Mostly code shuffling.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4393 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs17
1 files changed, 10 insertions, 7 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs b/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs
index e226fc549..f1766741e 100644
--- a/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs
@@ -11,6 +11,8 @@ namespace HandBrakeWPF.ViewModels
{
using Caliburn.Micro;
+ using HandBrake.ApplicationServices.Services.Interfaces;
+
using HandBrakeWPF.ViewModels.Interfaces;
/// <summary>
@@ -37,12 +39,8 @@ namespace HandBrakeWPF.ViewModels
/// <summary>
/// Initializes a new instance of the <see cref="ViewModelBase"/> class.
/// </summary>
- /// <param name="windowManager">
- /// The window manager.
- /// </param>
- public ViewModelBase(IWindowManager windowManager)
+ public ViewModelBase()
{
- this.WindowManager = windowManager;
}
#endregion
@@ -67,9 +65,14 @@ namespace HandBrakeWPF.ViewModels
}
/// <summary>
- /// Gets WindowManager.
+ /// Gets or sets WindowManager.
+ /// </summary>
+ public IWindowManager WindowManager { get; set; }
+
+ /// <summary>
+ /// Gets or sets UserSettingService.
/// </summary>
- public IWindowManager WindowManager { get; private set; }
+ public IUserSettingService UserSettingService { get; set; }
#endregion