diff options
author | sr55 <[email protected]> | 2011-02-26 16:24:38 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-02-26 16:24:38 +0000 |
commit | 357bd0bc173b6f3a78ea2297e0577d6c7f5219c3 (patch) | |
tree | 2abc76eca8a987ea5c51c21699a17d48db0ecf6c /win/C#/HandBrakeWPF/ViewModels/MainViewModel.cs | |
parent | cee0c38dcbef68f8d69b8b227510532fa66cb301 (diff) |
WinGui:
- Started designing the Picture Settings Panel
- Added a WindowManager.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3810 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrakeWPF/ViewModels/MainViewModel.cs')
-rw-r--r-- | win/C#/HandBrakeWPF/ViewModels/MainViewModel.cs | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/win/C#/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/C#/HandBrakeWPF/ViewModels/MainViewModel.cs index 0aaa4eb84..b39906df3 100644 --- a/win/C#/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/C#/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -16,6 +16,8 @@ namespace HandBrakeWPF.ViewModels using HandBrake.ApplicationServices.Services;
using HandBrake.ApplicationServices.Services.Interfaces;
+ using Microsoft.Practices.ServiceLocation;
+
/// <summary>
/// HandBrakes Main Window
/// </summary>
@@ -55,10 +57,10 @@ namespace HandBrakeWPF.ViewModels #endregion
- /// <summary>
- /// Initializes a new instance of the <see cref="MainViewModel"/> class.
- /// </summary>
- public MainViewModel()
+ #region Properties
+
+ public MainViewModel(IServiceLocator locator)
+ : base(locator)
{
// Setup Services (TODO - Bring Castle back into the project to wire these up for us)
this.scanService = File.Exists("hb.dll") ? (IScan)new LibScan() : new ScanService();
@@ -79,7 +81,6 @@ namespace HandBrakeWPF.ViewModels this.queueProcessor.EncodeService.EncodeStatusChanged += this.EncodeStatusChanged;
}
- #region Properties
/// <summary>
/// Gets or sets TestProperty.
/// </summary>
@@ -185,6 +186,14 @@ namespace HandBrakeWPF.ViewModels base.Shutdown();
}
+
+ #region Menu and Taskbar
+
+ public void AboutApplication()
+ {
+ this.ShowDialog<AboutViewModel>();
+ }
+
/// <summary>
/// Shutdown the Application
/// </summary>
@@ -193,6 +202,9 @@ namespace HandBrakeWPF.ViewModels Application.Current.Shutdown();
}
+ #endregion
+
+
#region Event Handlers
/// <summary>
/// Handle the Scan Status Changed Event.
|