using HandBrake.ApplicationServices.Services;\r
using HandBrake.ApplicationServices.Services.Interfaces;\r
\r
+ using Microsoft.Practices.ServiceLocation;\r
+\r
/// <summary>\r
/// HandBrakes Main Window\r
/// </summary>\r
\r
#endregion\r
\r
- /// <summary>\r
- /// Initializes a new instance of the <see cref="MainViewModel"/> class.\r
- /// </summary>\r
- public MainViewModel()\r
+ #region Properties\r
+\r
+ public MainViewModel(IServiceLocator locator)\r
+ : base(locator)\r
{\r
// Setup Services (TODO - Bring Castle back into the project to wire these up for us)\r
this.scanService = File.Exists("hb.dll") ? (IScan)new LibScan() : new ScanService();\r
this.queueProcessor.EncodeService.EncodeStatusChanged += this.EncodeStatusChanged;\r
}\r
\r
- #region Properties\r
/// <summary>\r
/// Gets or sets TestProperty.\r
/// </summary>\r
base.Shutdown();\r
}\r
\r
+\r
+ #region Menu and Taskbar\r
+ \r
+ public void AboutApplication()\r
+ {\r
+ this.ShowDialog<AboutViewModel>();\r
+ }\r
+ \r
/// <summary>\r
/// Shutdown the Application\r
/// </summary>\r
Application.Current.Shutdown();\r
}\r
\r
+ #endregion\r
+\r
+\r
#region Event Handlers\r
/// <summary>\r
/// Handle the Scan Status Changed Event.\r