<ErrorReport>prompt</ErrorReport>\r
</PropertyGroup>\r
<ItemGroup>\r
- <Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>..\libraries\caliburn\Castle.Core.dll</HintPath>\r
- </Reference>\r
- <Reference Include="Castle.MicroKernel, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>..\libraries\caliburn\Castle.MicroKernel.dll</HintPath>\r
- </Reference>\r
- <Reference Include="Castle.Windsor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>..\libraries\caliburn\Castle.Windsor.dll</HintPath>\r
- </Reference>\r
<Reference Include="Growl.Connector, Version=2.0.0.0, Culture=neutral, PublicKeyToken=980c2339411be384, processorArchitecture=MSIL">\r
<SpecificVersion>False</SpecificVersion>\r
<HintPath>..\libraries\Growl.Connector.dll</HintPath>\r
<Compile Include="Services\Interfaces\IScan.cs" />\r
<Compile Include="Services\Queue.cs" />\r
<Compile Include="Services\Scan.cs" />\r
- <Compile Include="WindsorInstaller.cs" />\r
</ItemGroup>\r
<ItemGroup>\r
<None Include="app.config" />\r
/// </param>\r
private void HbProcess_Exited(object sender, EventArgs e)\r
{\r
+ if (HbProcess != null && HbProcess.ExitCode != 0)\r
+ {\r
+ errorService.ShowError("It appears that HandBrakeCLI has crashed. You can check the Activity Log for further information.", string.Format("Exit Code was: {0}", HbProcess.ExitCode));\r
+ }\r
+\r
IsEncoding = false;\r
if (this.EncodeEnded != null)\r
this.EncodeEnded(this, new EventArgs());\r
+++ /dev/null
-/* WindsorInstaller.cs $\r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
-\r
-namespace HandBrake.ApplicationServices\r
-{\r
- using Castle.MicroKernel;\r
- using Castle.Windsor;\r
-\r
- using HandBrake.ApplicationServices.Services;\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
-\r
- /// <summary>\r
- /// This is the Windsor Installer class.\r
- /// </summary>\r
- public class WindsorInstaller : IWindsorInstaller\r
- {\r
- /// <summary>\r
- /// Setup the Services for this Library\r
- /// </summary>\r
- /// <param name="container">\r
- /// The container.\r
- /// </param>\r
- /// <param name="store">\r
- /// The store.\r
- /// </param>\r
- public void Install(IWindsorContainer container, IConfigurationStore store)\r
- {\r
- container.AddComponent<IScan, ScanService>();\r
- container.AddComponent<IQueue, Queue>();\r
- container.AddComponent<IEncode, Encode>();\r
- }\r
- }\r
-}\r
<ErrorReport>prompt</ErrorReport>\r
</PropertyGroup>\r
<ItemGroup>\r
- <Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>..\libraries\caliburn\Castle.Core.dll</HintPath>\r
- </Reference>\r
- <Reference Include="Castle.MicroKernel, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>..\libraries\caliburn\Castle.MicroKernel.dll</HintPath>\r
- </Reference>\r
- <Reference Include="Castle.Windsor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>..\libraries\caliburn\Castle.Windsor.dll</HintPath>\r
- </Reference>\r
<Reference Include="System" />\r
<Reference Include="System.Core" />\r
<Reference Include="System.Drawing" />\r
<Compile Include="Views\UpdateInfo.Designer.cs">\r
<DependentUpon>UpdateInfo.cs</DependentUpon>\r
</Compile>\r
- <Compile Include="WindsorInstaller.cs" />\r
</ItemGroup>\r
<ItemGroup>\r
<EmbeddedResource Include="Properties\Resources.resx">\r
+++ /dev/null
-/* WindsorInstaller.cs $\r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
-\r
-namespace HandBrake.Framework\r
-{\r
- using Castle.MicroKernel;\r
- using Castle.Windsor;\r
-\r
- using HandBrake.Framework.Services;\r
- using HandBrake.Framework.Services.Interfaces;\r
-\r
- /// <summary>\r
- /// This is the Windsor Installer class.\r
- /// </summary>\r
- public class WindsorInstaller : IWindsorInstaller\r
- {\r
- /// <summary>\r
- /// Setup the Services for this Library\r
- /// </summary>\r
- /// <param name="container">\r
- /// The container.\r
- /// </param>\r
- /// <param name="store">\r
- /// The store.\r
- /// </param>\r
- public void Install(IWindsorContainer container, IConfigurationStore store)\r
- {\r
- container.AddComponent<IErrorService, ErrorService>();\r
- container.AddComponent<IAppcastReader, AppcastReader>();\r
- }\r
- }\r
-}\r
<Optimize>true</Optimize>\r
</PropertyGroup>\r
<ItemGroup>\r
- <Reference Include="Caliburn.Castle, Version=1.1.0.49753, Culture=neutral, PublicKeyToken=8e5891231f2ed21f, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>libraries\caliburn\Caliburn.Castle.dll</HintPath>\r
- </Reference>\r
- <Reference Include="Caliburn.Core, Version=1.1.0.49753, Culture=neutral, PublicKeyToken=8e5891231f2ed21f, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>libraries\caliburn\Caliburn.Core.dll</HintPath>\r
- </Reference>\r
- <Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>libraries\caliburn\Castle.Core.dll</HintPath>\r
- <Private>True</Private>\r
- </Reference>\r
- <Reference Include="Castle.MicroKernel, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>libraries\caliburn\Castle.MicroKernel.dll</HintPath>\r
- <Private>True</Private>\r
- </Reference>\r
- <Reference Include="Castle.Windsor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>libraries\caliburn\Castle.Windsor.dll</HintPath>\r
- <Private>True</Private>\r
- </Reference>\r
<Reference Include="Growl.Connector, Version=2.0.0.0, Culture=neutral, PublicKeyToken=980c2339411be384, processorArchitecture=x86">\r
<SpecificVersion>False</SpecificVersion>\r
<HintPath>libraries\Growl.Connector.dll</HintPath>\r
<HintPath>libraries\Growl.CoreLibrary.dll</HintPath>\r
<Private>True</Private>\r
</Reference>\r
- <Reference Include="Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">\r
- <SpecificVersion>False</SpecificVersion>\r
- <HintPath>libraries\caliburn\Microsoft.Practices.ServiceLocation.dll</HintPath>\r
- </Reference>\r
<Reference Include="PresentationCore">\r
<RequiredTargetFramework>3.0</RequiredTargetFramework>\r
</Reference>\r
<Reference Include="WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">\r
<RequiredTargetFramework>3.0</RequiredTargetFramework>\r
</Reference>\r
- <Reference Include="WindowsFormsIntegration, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />\r
</ItemGroup>\r
<ItemGroup>\r
<Compile Include="Controls\AudioPanel.cs">\r
File "Microsoft.WindowsAPICodePack.Shell.dll"\r
File "Microsoft.WindowsAPICodePack.dll"\r
\r
- File "Caliburn.Castle.dll"\r
- File "Caliburn.Core.dll"\r
- File "Castle.Core.dll"\r
- File "Castle.DynamicProxy2.dll"\r
- File "Castle.MicroKernel.dll"\r
- File "Castle.Windsor.dll"\r
- File "Microsoft.Practices.ServiceLocation.dll"\r
+ ;File "Caliburn.Castle.dll"\r
+ ;File "Caliburn.Core.dll"\r
+ ;File "Castle.Core.dll"\r
+ ;File "Castle.DynamicProxy2.dll"\r
+ ;File "Castle.MicroKernel.dll"\r
+ ;File "Castle.Windsor.dll"\r
+ ;File "Microsoft.Practices.ServiceLocation.dll"\r
\r
SetOutPath "$INSTDIR\doc"\r
SetOverwrite ifnewer\r
File "Microsoft.WindowsAPICodePack.Shell.dll"\r
File "Microsoft.WindowsAPICodePack.dll"\r
\r
- File "Caliburn.Castle.dll"\r
- File "Caliburn.Core.dll"\r
- File "Castle.Core.dll"\r
- File "Castle.DynamicProxy2.dll"\r
- File "Castle.MicroKernel.dll"\r
- File "Castle.Windsor.dll"\r
- File "Microsoft.Practices.ServiceLocation.dll"\r
+ ;File "Caliburn.Castle.dll"\r
+ ;File "Caliburn.Core.dll"\r
+ ;File "Castle.Core.dll"\r
+ ;File "Castle.DynamicProxy2.dll"\r
+ ;File "Castle.MicroKernel.dll"\r
+ ;File "Castle.Windsor.dll"\r
+ ;File "Microsoft.Practices.ServiceLocation.dll"\r
\r
; Copy the standard doc set into the doc folder\r
SetOutPath "$INSTDIR\doc"\r
using System;\r
using System.Diagnostics;\r
using System.IO;\r
- using System.Reflection;\r
using System.Windows.Forms;\r
\r
- using Caliburn.Castle;\r
-\r
- using Castle.MicroKernel;\r
- using Castle.Windsor;\r
-\r
using HandBrake.ApplicationServices;\r
- using HandBrake.Framework.Services;\r
- using HandBrake.Framework.Services.Interfaces;\r
\r
using Handbrake.Presets;\r
using Handbrake.Properties;\r
\r
- using Microsoft.Practices.ServiceLocation;\r
-\r
/// <summary>\r
/// HandBrake Starts Here\r
/// </summary>\r
[STAThread]\r
public static void Main(string[] args)\r
{\r
- // WindsorContainer container = new WindsorContainer(new XmlInterpreter(new ConfigResource("castle")));\r
- WindsorContainer container = new WindsorContainer();\r
- // TODO Would be nice to find a way to do this automatically without having to reference the libraries specifically.\r
- container.Install(new HandBrake.Framework.WindsorInstaller());\r
- container.Install(new HandBrake.ApplicationServices.WindsorInstaller());\r
-\r
- ServiceLocator.SetLocatorProvider(() => new WindsorAdapter(container));\r
-\r
InstanceId = Process.GetProcessesByName("HandBrake").Length;\r
\r
// Handle any unhandled exceptions\r