]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Sun, 13 Mar 2011 12:35:48 +0000 (12:35 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 13 Mar 2011 12:35:48 +0000 (12:35 +0000)
- Shuffle some more code around. Aiming to remove the framework library completely soon.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3842 b64f7644-9d1e-0410-96f1-a4d463321fa5

20 files changed:
win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj
win/C#/HandBrake.ApplicationServices/Model/General/UpdateCheckInformation.cs [moved from win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs with 58% similarity]
win/C#/HandBrake.ApplicationServices/Model/General/UpdateCheckResult.cs [moved from win/C#/HandBrake.Framework/Model/UpdateCheckResult.cs with 81% similarity]
win/C#/HandBrake.ApplicationServices/Services/UpdateService.cs [new file with mode: 0644]
win/C#/HandBrake.ApplicationServices/Utilities/AppcastReader.cs [moved from win/C#/HandBrake.Framework/Services/AppcastReader.cs with 94% similarity]
win/C#/HandBrake.Framework/HandBrake.Framework.csproj
win/C#/HandBrake.Framework/Properties/Resources.Designer.cs
win/C#/HandBrake.Framework/Properties/Resources.resx
win/C#/HandBrake.Framework/Resources/download.png [deleted file]
win/C#/HandBrake.Framework/Resources/logo64.png [deleted file]
win/C#/HandBrake.Framework/Services/Interfaces/IAppcastReader.cs [deleted file]
win/C#/HandBrake.Framework/Services/UpdateService.cs [deleted file]
win/C#/HandBrakeCS.csproj
win/C#/ToolWindows/DownloadUpdate.Designer.cs [moved from win/C#/HandBrake.Framework/Views/DownloadUpdate.Designer.cs with 94% similarity]
win/C#/ToolWindows/DownloadUpdate.cs [moved from win/C#/HandBrake.Framework/Views/DownloadUpdate.cs with 96% similarity]
win/C#/ToolWindows/DownloadUpdate.resx [moved from win/C#/HandBrake.Framework/Views/DownloadUpdate.resx with 96% similarity]
win/C#/ToolWindows/UpdateInfo.Designer.cs [moved from win/C#/HandBrake.Framework/Views/UpdateInfo.Designer.cs with 92% similarity]
win/C#/ToolWindows/UpdateInfo.cs [moved from win/C#/HandBrake.Framework/Views/UpdateInfo.cs with 89% similarity]
win/C#/ToolWindows/UpdateInfo.resx [moved from win/C#/HandBrake.Framework/Views/UpdateInfo.resx with 95% similarity]
win/C#/frmMain.cs

index db3cd55ade3b7a94e0e26bdc16d38561217d9963..52d11a26def17b47ee9b70a2c8f3043d92df9242 100644 (file)
     <Compile Include="Model\Encoding\SubtitleTrack.cs" />\r
     <Compile Include="Model\Encoding\VideoEncoder.cs" />\r
     <Compile Include="Model\Encoding\VideoEncodeRateMode.cs" />\r
+    <Compile Include="Model\General\UpdateCheckInformation.cs" />\r
+    <Compile Include="Model\General\UpdateCheckResult.cs" />\r
     <Compile Include="Model\Preset.cs" />\r
     <Compile Include="Model\QueueTask.cs" />\r
     <Compile Include="Model\Encoding\SubtitleType.cs" />\r
     <Compile Include="Services\QueueManager.cs" />\r
     <Compile Include="Services\QueueProcessor.cs" />\r
     <Compile Include="Services\ScanService.cs" />\r
+    <Compile Include="Services\UpdateService.cs" />\r
+    <Compile Include="Utilities\AppcastReader.cs" />\r
     <Compile Include="Utilities\PlistUtility.cs" />\r
     <Compile Include="Utilities\QueryParserUtility.cs" />\r
     <Compile Include="Utilities\UtilityService.cs" />\r
similarity index 58%
rename from win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs
rename to win/C#/HandBrake.ApplicationServices/Model/General/UpdateCheckInformation.cs
index ff59dce7267c351b210e84110fa0df36fe37a733..5932aa40272bd7f92e444f3a0cb9bd1c96053f33 100644 (file)
@@ -3,10 +3,9 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-namespace HandBrake.Framework.Model\r
+namespace HandBrake.ApplicationServices.Model.General\r
 {\r
     using System;\r
-    using HandBrake.Framework.Services.Interfaces;\r
 \r
     /// <summary>\r
     /// Provides information about an update check.\r
@@ -27,9 +26,24 @@ namespace HandBrake.Framework.Model
         }\r
 \r
         /// <summary>\r
-        /// Gets or sets information about the new build, if any. This will be null if there is no new verison.\r
+        /// Gets or sets Information about an update to HandBrake\r
         /// </summary>\r
-        public IAppcastReader BuildInformation { get; set; }\r
+        public Uri DescriptionUrl { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets HandBrake's version from the appcast.xml file.\r
+        /// </summary>\r
+        public string Version { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets HandBrake's Build from the appcast.xml file.\r
+        /// </summary>\r
+        public string Build { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets the URL for update file.\r
+        /// </summary>\r
+        public string DownloadFile { get; set; }\r
 \r
         /// <summary>\r
         /// Gets or sets the error that occurred, if any. This will be null if no error occured.\r
similarity index 81%
rename from win/C#/HandBrake.Framework/Model/UpdateCheckResult.cs
rename to win/C#/HandBrake.ApplicationServices/Model/General/UpdateCheckResult.cs
index ba04100ca80bcd20b0b042c85ad3ab52649d54d1..2f7c7e874a85609dba2ac9465b033b3ebb2a9e50 100644 (file)
@@ -3,7 +3,7 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-namespace HandBrake.Framework.Model\r
+namespace HandBrake.ApplicationServices.Model.General\r
 {\r
     using System;\r
     using System.Threading;\r
@@ -14,7 +14,7 @@ namespace HandBrake.Framework.Model
     public class UpdateCheckResult : IAsyncResult\r
     {\r
         /// <summary>\r
-        /// Initializes a new instance of the <see cref="HandBrake.Framework.Model.UpdateCheckResult"/> class.\r
+        /// Initializes a new instance of the <see cref="UpdateCheckResult"/> class.\r
         /// </summary>\r
         /// <param name="asyncState">\r
         /// The async state.\r
@@ -22,7 +22,7 @@ namespace HandBrake.Framework.Model
         /// <param name="info">\r
         /// The info.\r
         /// </param>\r
-        public UpdateCheckResult(object asyncState, UpdateCheckInformation info)\r
+        public UpdateCheckResult(object asyncState, ApplicationServices.Model.General.UpdateCheckInformation info)\r
         {\r
             this.AsyncState = asyncState;\r
             this.Result = info;\r
@@ -36,7 +36,7 @@ namespace HandBrake.Framework.Model
         /// <summary>\r
         /// Gets the result of the update check.\r
         /// </summary>\r
-        public UpdateCheckInformation Result { get; private set; }\r
+        public ApplicationServices.Model.General.UpdateCheckInformation Result { get; private set; }\r
 \r
         /// <summary>\r
         /// Gets AsyncWaitHandle.\r
diff --git a/win/C#/HandBrake.ApplicationServices/Services/UpdateService.cs b/win/C#/HandBrake.ApplicationServices/Services/UpdateService.cs
new file mode 100644 (file)
index 0000000..5e65021
--- /dev/null
@@ -0,0 +1,97 @@
+namespace HandBrake.ApplicationServices.Services\r
+{\r
+    using System;\r
+    using System.IO;\r
+    using System.Net;\r
+    using System.Threading;\r
+\r
+    using HandBrake.ApplicationServices.Model.General;\r
+    using HandBrake.ApplicationServices.Utilities;\r
+\r
+    /// <summary>\r
+    /// The Update Service\r
+    /// </summary>\r
+    public class UpdateService\r
+    {\r
+        /// <summary>\r
+        /// Begins checking for an update to HandBrake.\r
+        /// </summary>\r
+        /// <param name="callback">\r
+        /// The method that will be called when the check is finished.\r
+        /// </param>\r
+        /// <param name="debug">\r
+        /// Whether or not to execute this in debug mode.\r
+        /// </param>\r
+        /// <param name="url">\r
+        /// The url.\r
+        /// </param>\r
+        /// <param name="currentBuild">\r
+        /// The current Build.\r
+        /// </param>\r
+        /// <param name="skipBuild">\r
+        /// The skip Build.\r
+        /// </param>\r
+        /// <param name="currentVersion">\r
+        /// The current Version.\r
+        /// </param>\r
+        public static void BeginCheckForUpdates(AsyncCallback callback, bool debug, string url, int currentBuild, int skipBuild, string currentVersion)\r
+        {\r
+            ThreadPool.QueueUserWorkItem(delegate\r
+                {\r
+                    try\r
+                    {\r
+                        // Initialize variables\r
+                        WebRequest request = WebRequest.Create(url);\r
+                        WebResponse response = request.GetResponse();\r
+                        AppcastReader reader = new AppcastReader();\r
+\r
+                        // Get the data, convert it to a string, and parse it into the AppcastReader\r
+                        reader.GetUpdateInfo(new StreamReader(response.GetResponseStream()).ReadToEnd());\r
+\r
+                        // Further parse the information\r
+                        string build = reader.Build;\r
+\r
+                        int latest = int.Parse(build);\r
+                        int current = currentBuild;\r
+                        int skip = skipBuild;\r
+\r
+                        // If the user wanted to skip this version, don't report the update\r
+                        if (latest == skip)\r
+                        {\r
+                            UpdateCheckInformation info = new UpdateCheckInformation { NewVersionAvailable = false };\r
+                            callback(new UpdateCheckResult(debug, info));\r
+                            return;\r
+                        }\r
+\r
+                        UpdateCheckInformation info2 = new UpdateCheckInformation\r
+                            {\r
+                                NewVersionAvailable = latest > current,\r
+                                DescriptionUrl = reader.DescriptionUrl,\r
+                                DownloadFile = reader.DownloadFile,\r
+                                Build = reader.Build,\r
+                                Version = reader.Version,\r
+                            };\r
+                        callback(new UpdateCheckResult(debug, info2));\r
+                    }\r
+                    catch (Exception exc)\r
+                    {\r
+                        callback(new UpdateCheckResult(debug, new UpdateCheckInformation { Error = exc }));\r
+                    }\r
+                });\r
+        }\r
+\r
+        /// <summary>\r
+        /// End Check for Updates\r
+        /// </summary>\r
+        /// <param name="result">\r
+        /// The result.\r
+        /// </param>\r
+        /// <returns>\r
+        /// Update Check information\r
+        /// </returns>\r
+        public static UpdateCheckInformation EndCheckForUpdates(IAsyncResult result)\r
+        {\r
+            return ((UpdateCheckResult)result).Result;\r
+        }\r
+    }\r
+}\r
similarity index 94%
rename from win/C#/HandBrake.Framework/Services/AppcastReader.cs
rename to win/C#/HandBrake.ApplicationServices/Utilities/AppcastReader.cs
index 31bd853a74867e47c6f4e8db6481379f354f489e..a8173d5fead2d288c20b60d3b6ecbf895ce46305 100644 (file)
@@ -3,7 +3,7 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-namespace HandBrake.Framework.Services\r
+namespace HandBrake.ApplicationServices.Utilities\r
 {\r
     using System;\r
     using System.IO;\r
@@ -15,7 +15,7 @@ namespace HandBrake.Framework.Services
     /// <summary>\r
     /// Appcast Reader - Used for parsing HandBrakes update file\r
     /// </summary>\r
-    public class AppcastReader : IAppcastReader\r
+    public class AppcastReader\r
     {\r
         /// <summary>\r
         /// Gets Information about an update to HandBrake\r
index e7a7664b6e73e70cd2c6d83f33ac76a182d22ece..9e625e5dbbd54e1ddeb6ee1fa99f442e8c22ac8d 100644 (file)
@@ -55,9 +55,6 @@
     <Reference Include="System.Xml" />\r
   </ItemGroup>\r
   <ItemGroup>\r
-    <Compile Include="Services\AppcastReader.cs" />\r
-    <Compile Include="Model\UpdateCheckResult.cs" />\r
-    <Compile Include="Model\UpdateCheckInformation.cs" />\r
     <Compile Include="Properties\AssemblyInfo.cs" />\r
     <Compile Include="Properties\Resources.Designer.cs">\r
       <AutoGen>True</AutoGen>\r
       <DependentUpon>Resources.resx</DependentUpon>\r
     </Compile>\r
     <Compile Include="Services\ErrorService.cs" />\r
-    <Compile Include="Services\Interfaces\IAppcastReader.cs" />\r
     <Compile Include="Services\Interfaces\IErrorService.cs" />\r
-    <Compile Include="Services\UpdateService.cs" />\r
     <Compile Include="Views\ExceptionWindow.cs">\r
       <SubType>Form</SubType>\r
     </Compile>\r
     <Compile Include="Views\ExceptionWindow.designer.cs">\r
       <DependentUpon>ExceptionWindow.cs</DependentUpon>\r
     </Compile>\r
-    <Compile Include="Views\DownloadUpdate.cs">\r
-      <SubType>Form</SubType>\r
-    </Compile>\r
-    <Compile Include="Views\DownloadUpdate.Designer.cs">\r
-      <DependentUpon>DownloadUpdate.cs</DependentUpon>\r
-    </Compile>\r
-    <Compile Include="Views\UpdateInfo.cs">\r
-      <SubType>Form</SubType>\r
-    </Compile>\r
-    <Compile Include="Views\UpdateInfo.Designer.cs">\r
-      <DependentUpon>UpdateInfo.cs</DependentUpon>\r
-    </Compile>\r
   </ItemGroup>\r
   <ItemGroup>\r
     <EmbeddedResource Include="Properties\Resources.resx">\r
     <EmbeddedResource Include="Views\ExceptionWindow.resx">\r
       <DependentUpon>ExceptionWindow.cs</DependentUpon>\r
     </EmbeddedResource>\r
-    <EmbeddedResource Include="Views\DownloadUpdate.resx">\r
-      <DependentUpon>DownloadUpdate.cs</DependentUpon>\r
-      <SubType>Designer</SubType>\r
-    </EmbeddedResource>\r
-    <EmbeddedResource Include="Views\UpdateInfo.resx">\r
-      <DependentUpon>UpdateInfo.cs</DependentUpon>\r
-      <SubType>Designer</SubType>\r
-    </EmbeddedResource>\r
   </ItemGroup>\r
   <ItemGroup>\r
     <None Include="Resources\copy.png" />\r
   <ItemGroup>\r
     <None Include="Resources\errorx.png" />\r
   </ItemGroup>\r
-  <ItemGroup>\r
-    <None Include="Resources\logo64.png" />\r
-  </ItemGroup>\r
-  <ItemGroup>\r
-    <None Include="Resources\download.png" />\r
-  </ItemGroup>\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
   <Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.4\Microsoft.StyleCop.targets" />\r
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
index 5d5e113a048aa421ceddebbd8f19b6e100645a1f..b282e8b261fe8fdce237fd1c091c519553730097 100644 (file)
@@ -67,25 +67,11 @@ namespace HandBrake.Framework.Properties {
             }\r
         }\r
         \r
-        internal static System.Drawing.Bitmap download {\r
-            get {\r
-                object obj = ResourceManager.GetObject("download", resourceCulture);\r
-                return ((System.Drawing.Bitmap)(obj));\r
-            }\r
-        }\r
-        \r
         internal static System.Drawing.Bitmap ErrorX {\r
             get {\r
                 object obj = ResourceManager.GetObject("ErrorX", resourceCulture);\r
                 return ((System.Drawing.Bitmap)(obj));\r
             }\r
         }\r
-        \r
-        internal static System.Drawing.Bitmap logo64 {\r
-            get {\r
-                object obj = ResourceManager.GetObject("logo64", resourceCulture);\r
-                return ((System.Drawing.Bitmap)(obj));\r
-            }\r
-        }\r
     }\r
 }\r
index 40e6440c42c54f00f7843aa71d28fb249812151b..f7606bf2cd4d63c7abac685b2042f69f8b9bc550 100644 (file)
   <data name="ErrorX" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
     <value>..\Resources\errorx.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
   </data>\r
-  <data name="logo64" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
-    <value>..\Resources\logo64.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
-  </data>\r
-  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
-  <data name="download" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
-    <value>..\Resources\download.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
-  </data>\r
 </root>
\ No newline at end of file
diff --git a/win/C#/HandBrake.Framework/Resources/download.png b/win/C#/HandBrake.Framework/Resources/download.png
deleted file mode 100644 (file)
index c320662..0000000
Binary files a/win/C#/HandBrake.Framework/Resources/download.png and /dev/null differ
diff --git a/win/C#/HandBrake.Framework/Resources/logo64.png b/win/C#/HandBrake.Framework/Resources/logo64.png
deleted file mode 100644 (file)
index 12808f6..0000000
Binary files a/win/C#/HandBrake.Framework/Resources/logo64.png and /dev/null differ
diff --git a/win/C#/HandBrake.Framework/Services/Interfaces/IAppcastReader.cs b/win/C#/HandBrake.Framework/Services/Interfaces/IAppcastReader.cs
deleted file mode 100644 (file)
index 7064a08..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-namespace HandBrake.Framework.Services.Interfaces\r
-{\r
-    using System;\r
-\r
-    public interface IAppcastReader\r
-    {\r
-        /// <summary>\r
-        /// Gets Information about an update to HandBrake\r
-        /// </summary>\r
-        Uri DescriptionUrl { get; }\r
-\r
-        /// <summary>\r
-        /// Gets HandBrake's version from the appcast.xml file.\r
-        /// </summary>\r
-        string Version { get; }\r
-\r
-        /// <summary>\r
-        /// Gets HandBrake's Build from the appcast.xml file.\r
-        /// </summary>\r
-        string Build { get; }\r
-\r
-        /// <summary>\r
-        /// Gets the URL for update file.\r
-        /// </summary>\r
-        string DownloadFile { get; }\r
-\r
-        /// <summary>\r
-        /// Get the build information from the required appcasts. Run before accessing the public vars.\r
-        /// </summary>\r
-        /// <param name="input">\r
-        /// The input.\r
-        /// </param>\r
-        void GetUpdateInfo(string input);\r
-    }\r
-}
\ No newline at end of file
diff --git a/win/C#/HandBrake.Framework/Services/UpdateService.cs b/win/C#/HandBrake.Framework/Services/UpdateService.cs
deleted file mode 100644 (file)
index 0bbd781..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-/*  UpdateService.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.Services\r
-{\r
-    using System;\r
-    using System.IO;\r
-    using System.Net;\r
-    using System.Threading;\r
-\r
-    using HandBrake.Framework.Model;\r
-    using HandBrake.Framework.Services.Interfaces;\r
-\r
-    public class UpdateService\r
-    {\r
-        /// <summary>\r
-        /// Begins checking for an update to HandBrake.\r
-        /// </summary>\r
-        /// <param name="callback">\r
-        /// The method that will be called when the check is finished.\r
-        /// </param>\r
-        /// <param name="debug">\r
-        /// Whether or not to execute this in debug mode.\r
-        /// </param>\r
-        /// <param name="url">\r
-        /// The url.\r
-        /// </param>\r
-        /// <param name="currentBuild">\r
-        /// The current Build.\r
-        /// </param>\r
-        /// <param name="skipBuild">\r
-        /// The skip Build.\r
-        /// </param>\r
-        /// <param name="currentVersion">\r
-        /// The current Version.\r
-        /// </param>\r
-        public static void BeginCheckForUpdates(AsyncCallback callback, bool debug, string url, int currentBuild, int skipBuild, string currentVersion)\r
-        {\r
-            ThreadPool.QueueUserWorkItem(new WaitCallback(delegate\r
-            {\r
-                try\r
-                {\r
-                    // Initialize variables\r
-                    WebRequest request = WebRequest.Create(url);\r
-                    WebResponse response = request.GetResponse();\r
-                    IAppcastReader reader = new AppcastReader();\r
-\r
-                    // Get the data, convert it to a string, and parse it into the AppcastReader\r
-                    reader.GetUpdateInfo(new StreamReader(response.GetResponseStream()).ReadToEnd());\r
-\r
-                    // Further parse the information\r
-                    string build = reader.Build;\r
-\r
-                    int latest = int.Parse(build);\r
-                    int current = currentBuild;\r
-                    int skip = skipBuild;\r
-\r
-                    // If the user wanted to skip this version, don't report the update\r
-                    if (latest == skip)\r
-                    {\r
-                        UpdateCheckInformation info =\r
-                            new UpdateCheckInformation\r
-                            {\r
-                                NewVersionAvailable = false,\r
-                                BuildInformation = null\r
-                            };\r
-                        callback(new UpdateCheckResult(debug, info));\r
-                        return;\r
-                    }\r
-\r
-                    UpdateCheckInformation info2 = new UpdateCheckInformation\r
-                        {\r
-                            NewVersionAvailable = latest > current,\r
-                            BuildInformation = reader\r
-                        };\r
-                    callback(new UpdateCheckResult(debug, info2));\r
-                }\r
-                catch (Exception exc)\r
-                {\r
-                    callback(new UpdateCheckResult(debug, new UpdateCheckInformation { Error = exc }));\r
-                }\r
-            }));\r
-        }\r
-\r
-        /// <summary>\r
-        /// End Check for Updates\r
-        /// </summary>\r
-        /// <param name="result">\r
-        /// The result.\r
-        /// </param>\r
-        /// <returns>\r
-        /// Update Check information\r
-        /// </returns>\r
-        public static UpdateCheckInformation EndCheckForUpdates(IAsyncResult result)\r
-        {\r
-            return ((UpdateCheckResult)result).Result;\r
-        }\r
-    }\r
-}\r
index 4a3d043110e5e3313977613a0cbdb3d6ca4ec235..b1a8325fe8fa11facb25752f67ecdcca24b24e10 100644 (file)
     <Compile Include="ToolWindows\BatchAdd.Designer.cs">\r
       <DependentUpon>BatchAdd.cs</DependentUpon>\r
     </Compile>\r
+    <Compile Include="ToolWindows\DownloadUpdate.cs">\r
+      <SubType>Form</SubType>\r
+    </Compile>\r
+    <Compile Include="ToolWindows\DownloadUpdate.Designer.cs">\r
+      <DependentUpon>DownloadUpdate.cs</DependentUpon>\r
+    </Compile>\r
     <Compile Include="ToolWindows\PreviewOverlay.cs">\r
       <SubType>Form</SubType>\r
     </Compile>\r
     <Compile Include="ToolWindows\TitleSpecificScan.Designer.cs">\r
       <DependentUpon>TitleSpecificScan.cs</DependentUpon>\r
     </Compile>\r
+    <Compile Include="ToolWindows\UpdateInfo.cs">\r
+      <SubType>Form</SubType>\r
+    </Compile>\r
+    <Compile Include="ToolWindows\UpdateInfo.Designer.cs">\r
+      <DependentUpon>UpdateInfo.cs</DependentUpon>\r
+    </Compile>\r
     <EmbeddedResource Include="Controls\AudioPanel.resx">\r
       <DependentUpon>AudioPanel.cs</DependentUpon>\r
       <SubType>Designer</SubType>\r
     <EmbeddedResource Include="ToolWindows\BatchAdd.resx">\r
       <DependentUpon>BatchAdd.cs</DependentUpon>\r
     </EmbeddedResource>\r
+    <EmbeddedResource Include="ToolWindows\DownloadUpdate.resx">\r
+      <DependentUpon>DownloadUpdate.cs</DependentUpon>\r
+      <SubType>Designer</SubType>\r
+    </EmbeddedResource>\r
     <EmbeddedResource Include="ToolWindows\PreviewOverlay.resx">\r
       <DependentUpon>PreviewOverlay.cs</DependentUpon>\r
     </EmbeddedResource>\r
     <EmbeddedResource Include="ToolWindows\TitleSpecificScan.resx">\r
       <DependentUpon>TitleSpecificScan.cs</DependentUpon>\r
     </EmbeddedResource>\r
+    <EmbeddedResource Include="ToolWindows\UpdateInfo.resx">\r
+      <DependentUpon>UpdateInfo.cs</DependentUpon>\r
+      <SubType>Designer</SubType>\r
+    </EmbeddedResource>\r
     <None Include="app.config" />\r
     <None Include="Installer\MakeNightly.nsi.tmpl" />\r
     <None Include="Installer\MakeNightly.nsi" />\r
similarity index 94%
rename from win/C#/HandBrake.Framework/Views/DownloadUpdate.Designer.cs
rename to win/C#/ToolWindows/DownloadUpdate.Designer.cs
index 3159034a38de69d9609b4d029acda74917bb55cc..74b0affe71494a880f1f1313d332d23280fac8be 100644 (file)
@@ -4,7 +4,7 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-namespace HandBrake.Framework.Views\r
+namespace Handbrake.ToolWindows\r
 {\r
     partial class DownloadUpdate\r
     {\r
@@ -76,7 +76,7 @@ namespace HandBrake.Framework.Views
             // \r
             // PictureBox1\r
             // \r
-            this.PictureBox1.Image = global::HandBrake.Framework.Properties.Resources.download;\r
+            this.PictureBox1.Image = global::Handbrake.Properties.Resources.Download;\r
             resources.ApplyResources(this.PictureBox1, "PictureBox1");\r
             this.PictureBox1.Name = "PictureBox1";\r
             this.tableLayoutPanel1.SetRowSpan(this.PictureBox1, 3);\r
@@ -87,7 +87,7 @@ namespace HandBrake.Framework.Views
             resources.ApplyResources(this, "$this");\r
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
             this.Controls.Add(this.tableLayoutPanel1);\r
-            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;\r
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;\r
             this.MaximizeBox = false;\r
             this.MinimizeBox = false;\r
             this.Name = "DownloadUpdate";\r
similarity index 96%
rename from win/C#/HandBrake.Framework/Views/DownloadUpdate.cs
rename to win/C#/ToolWindows/DownloadUpdate.cs
index 3b12a640f17d4efacb504df81e6245f7b2068ae4..f359e09a4bc7ec408f18b5d337cb9326d756d38a 100644 (file)
@@ -3,7 +3,7 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-namespace HandBrake.Framework.Views\r
+namespace Handbrake.ToolWindows\r
 {\r
     using System;\r
     using System.Diagnostics;\r
similarity index 96%
rename from win/C#/HandBrake.Framework/Views/DownloadUpdate.resx
rename to win/C#/ToolWindows/DownloadUpdate.resx
index db07d3ccb1ea1b0ec013e83fb23c3593e70ee10a..db4b953deeb836160d95632de71799acc9cad8e7 100644 (file)
     <value>2.0</value>\r
   </resheader>\r
   <resheader name="reader">\r
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </resheader>\r
   <resheader name="writer">\r
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </resheader>\r
-  <assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
+  <assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
   <data name="lblProgress.AutoSize" type="System.Boolean, mscorlib">\r
     <value>True</value>\r
   </data>\r
-  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />\r
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />\r
   <data name="lblProgress.Location" type="System.Drawing.Point, System.Drawing">\r
     <value>73, 29</value>\r
   </data>\r
     <value>lblProgress</value>\r
   </data>\r
   <data name="&gt;&gt;lblProgress.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;lblProgress.Parent" xml:space="preserve">\r
     <value>tableLayoutPanel1</value>\r
   <data name="&gt;&gt;lblProgress.ZOrder" xml:space="preserve">\r
     <value>3</value>\r
   </data>\r
-  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
   <data name="progress_download.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">\r
     <value>Left, Right</value>\r
   </data>\r
     <value>progress_download</value>\r
   </data>\r
   <data name="&gt;&gt;progress_download.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.ProgressBar, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.ProgressBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;progress_download.Parent" xml:space="preserve">\r
     <value>tableLayoutPanel1</value>\r
     <value>btn_cancel</value>\r
   </data>\r
   <data name="&gt;&gt;btn_cancel.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;btn_cancel.Parent" xml:space="preserve">\r
     <value>tableLayoutPanel1</value>\r
     <value>PictureBox1</value>\r
   </data>\r
   <data name="&gt;&gt;PictureBox1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;PictureBox1.Parent" xml:space="preserve">\r
     <value>tableLayoutPanel1</value>\r
     <value>tableLayoutPanel1</value>\r
   </data>\r
   <data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">\r
     <value>$this</value>\r
   <data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">\r
     <value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="PictureBox1" Row="0" RowSpan="3" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="btn_cancel" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="progress_download" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="lblProgress" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,AutoSize,0" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0" /&gt;&lt;/TableLayoutSettings&gt;</value>\r
   </data>\r
-  <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
+  <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
     <value>True</value>\r
   </metadata>\r
   <data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">\r
     <value>DownloadUpdate</value>\r
   </data>\r
   <data name="&gt;&gt;$this.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
 </root>
\ No newline at end of file
similarity index 92%
rename from win/C#/HandBrake.Framework/Views/UpdateInfo.Designer.cs
rename to win/C#/ToolWindows/UpdateInfo.Designer.cs
index 6400a877263291a256b8edb5c62a7d44ccbbd8ba..9e0aa0d6596d7ebb45eeed930ef91b5f95eab7bd 100644 (file)
@@ -3,7 +3,7 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-namespace HandBrake.Framework.Views\r
+namespace Handbrake.ToolWindows\r
 {\r
     partial class UpdateInfo\r
     {\r
@@ -52,9 +52,11 @@ namespace HandBrake.Framework.Views
             this.button_container = new System.Windows.Forms.SplitContainer();\r
             this.panel1.SuspendLayout();\r
             ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).BeginInit();\r
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();\r
             this.splitContainer1.Panel1.SuspendLayout();\r
             this.splitContainer1.Panel2.SuspendLayout();\r
             this.splitContainer1.SuspendLayout();\r
+            ((System.ComponentModel.ISupportInitialize)(this.button_container)).BeginInit();\r
             this.button_container.Panel1.SuspendLayout();\r
             this.button_container.Panel2.SuspendLayout();\r
             this.button_container.SuspendLayout();\r
@@ -132,7 +134,7 @@ namespace HandBrake.Framework.Views
             // \r
             // PictureBox1\r
             // \r
-            this.PictureBox1.Image = global::HandBrake.Framework.Properties.Resources.logo64;\r
+            this.PictureBox1.Image = global::Handbrake.Properties.Resources.logo64;\r
             resources.ApplyResources(this.PictureBox1, "PictureBox1");\r
             this.PictureBox1.Name = "PictureBox1";\r
             this.PictureBox1.TabStop = false;\r
@@ -196,6 +198,7 @@ namespace HandBrake.Framework.Views
             this.Controls.Add(this.panel3);\r
             this.Controls.Add(this.statusStrip1);\r
             this.Controls.Add(this.panel1);\r
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;\r
             this.MaximizeBox = false;\r
             this.Name = "UpdateInfo";\r
             this.panel1.ResumeLayout(false);\r
@@ -203,11 +206,13 @@ namespace HandBrake.Framework.Views
             ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).EndInit();\r
             this.splitContainer1.Panel1.ResumeLayout(false);\r
             this.splitContainer1.Panel2.ResumeLayout(false);\r
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();\r
             this.splitContainer1.ResumeLayout(false);\r
             this.button_container.Panel1.ResumeLayout(false);\r
             this.button_container.Panel1.PerformLayout();\r
             this.button_container.Panel2.ResumeLayout(false);\r
             this.button_container.Panel2.PerformLayout();\r
+            ((System.ComponentModel.ISupportInitialize)(this.button_container)).EndInit();\r
             this.button_container.ResumeLayout(false);\r
             this.ResumeLayout(false);\r
             this.PerformLayout();\r
similarity index 89%
rename from win/C#/HandBrake.Framework/Views/UpdateInfo.cs
rename to win/C#/ToolWindows/UpdateInfo.cs
index 906f1174550d5fde64139301514369691d0794e7..bca7d81cd91993f51f4d5c877496b64f795b26ec 100644 (file)
@@ -3,12 +3,13 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-namespace HandBrake.Framework.Views\r
+namespace Handbrake.ToolWindows\r
 {\r
     using System;\r
     using System.Windows.Forms;\r
 \r
-    using HandBrake.Framework.Services.Interfaces;\r
+    using HandBrake.ApplicationServices.Model.General;\r
+    using HandBrake.Framework.Views;\r
 \r
     /// <summary>\r
     /// A window to display update information.\r
@@ -18,7 +19,7 @@ namespace HandBrake.Framework.Views
         /// <summary>\r
         /// An instance of the Appcast Reader\r
         /// </summary>\r
-        private readonly IAppcastReader appcast;\r
+        private readonly UpdateCheckInformation appcast;\r
 \r
         /// <summary>\r
         /// The Current Version\r
@@ -42,7 +43,7 @@ namespace HandBrake.Framework.Views
         /// <param name="currentBuild">\r
         /// The current Build.\r
         /// </param>\r
-        public UpdateInfo(IAppcastReader reader, string currentVersion, string currentBuild)\r
+        public UpdateInfo(UpdateCheckInformation reader, string currentVersion, string currentBuild)\r
         {\r
             InitializeComponent();\r
 \r
similarity index 95%
rename from win/C#/HandBrake.Framework/Views/UpdateInfo.resx
rename to win/C#/ToolWindows/UpdateInfo.resx
index ab5aac9ec408ce69cd390e5ce1573a0804b8a849..4503c923b0c2cea206edec526521185a1b5b683a 100644 (file)
     <value>2.0</value>\r
   </resheader>\r
   <resheader name="reader">\r
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </resheader>\r
   <resheader name="writer">\r
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </resheader>\r
-  <assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
+  <assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
   <data name="label1.AutoSize" type="System.Boolean, mscorlib">\r
     <value>True</value>\r
   </data>\r
-  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />\r
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />\r
   <data name="label1.Font" type="System.Drawing.Font, System.Drawing">\r
     <value>Tahoma, 9.75pt, style=Bold</value>\r
   </data>\r
     <value>label1</value>\r
   </data>\r
   <data name="&gt;&gt;label1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;label1.Parent" xml:space="preserve">\r
     <value>panel1</value>\r
     <value>label6</value>\r
   </data>\r
   <data name="&gt;&gt;label6.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;label6.Parent" xml:space="preserve">\r
     <value>panel1</value>\r
   <data name="btn_skip.AutoSize" type="System.Boolean, mscorlib">\r
     <value>True</value>\r
   </data>\r
-  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
   <data name="btn_skip.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">\r
     <value>GrowAndShrink</value>\r
   </data>\r
     <value>btn_skip</value>\r
   </data>\r
   <data name="&gt;&gt;btn_skip.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;btn_skip.Parent" xml:space="preserve">\r
     <value>button_container.Panel1</value>\r
     <value>btn_installUpdate</value>\r
   </data>\r
   <data name="&gt;&gt;btn_installUpdate.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;btn_installUpdate.Parent" xml:space="preserve">\r
     <value>button_container.Panel2</value>\r
     <value>btn_remindLater</value>\r
   </data>\r
   <data name="&gt;&gt;btn_remindLater.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;btn_remindLater.Parent" xml:space="preserve">\r
     <value>button_container.Panel2</value>\r
     <value>label3</value>\r
   </data>\r
   <data name="&gt;&gt;label3.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;label3.Parent" xml:space="preserve">\r
     <value>panel1</value>\r
     <value>lbl_update_text</value>\r
   </data>\r
   <data name="&gt;&gt;lbl_update_text.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;lbl_update_text.Parent" xml:space="preserve">\r
     <value>panel1</value>\r
     <value>panel2</value>\r
   </data>\r
   <data name="&gt;&gt;panel2.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;panel2.Parent" xml:space="preserve">\r
     <value>panel1</value>\r
     <value>PictureBox1</value>\r
   </data>\r
   <data name="&gt;&gt;PictureBox1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;PictureBox1.Parent" xml:space="preserve">\r
     <value>panel1</value>\r
     <value>panel1</value>\r
   </data>\r
   <data name="&gt;&gt;panel1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;panel1.Parent" xml:space="preserve">\r
     <value>$this</value>\r
   <data name="&gt;&gt;panel1.ZOrder" xml:space="preserve">\r
     <value>4</value>\r
   </data>\r
-  <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
+  <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
     <value>17, 17</value>\r
   </metadata>\r
   <data name="statusStrip1.Location" type="System.Drawing.Point, System.Drawing">\r
     <value>statusStrip1</value>\r
   </data>\r
   <data name="&gt;&gt;statusStrip1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.StatusStrip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.StatusStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;statusStrip1.Parent" xml:space="preserve">\r
     <value>$this</value>\r
     <value>panel3</value>\r
   </data>\r
   <data name="&gt;&gt;panel3.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;panel3.Parent" xml:space="preserve">\r
     <value>$this</value>\r
     <value>panel5</value>\r
   </data>\r
   <data name="&gt;&gt;panel5.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;panel5.Parent" xml:space="preserve">\r
     <value>$this</value>\r
     <value>wBrowser</value>\r
   </data>\r
   <data name="&gt;&gt;wBrowser.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.WebBrowser, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.WebBrowser, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;wBrowser.Parent" xml:space="preserve">\r
     <value>splitContainer1.Panel1</value>\r
     <value>splitContainer1.Panel1</value>\r
   </data>\r
   <data name="&gt;&gt;splitContainer1.Panel1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;splitContainer1.Panel1.Parent" xml:space="preserve">\r
     <value>splitContainer1</value>\r
     <value>button_container.Panel1</value>\r
   </data>\r
   <data name="&gt;&gt;button_container.Panel1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;button_container.Panel1.Parent" xml:space="preserve">\r
     <value>button_container</value>\r
     <value>button_container.Panel2</value>\r
   </data>\r
   <data name="&gt;&gt;button_container.Panel2.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;button_container.Panel2.Parent" xml:space="preserve">\r
     <value>button_container</value>\r
     <value>button_container</value>\r
   </data>\r
   <data name="&gt;&gt;button_container.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;button_container.Parent" xml:space="preserve">\r
     <value>splitContainer1.Panel2</value>\r
     <value>splitContainer1.Panel2</value>\r
   </data>\r
   <data name="&gt;&gt;splitContainer1.Panel2.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;splitContainer1.Panel2.Parent" xml:space="preserve">\r
     <value>splitContainer1</value>\r
     <value>splitContainer1</value>\r
   </data>\r
   <data name="&gt;&gt;splitContainer1.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
   <data name="&gt;&gt;splitContainer1.Parent" xml:space="preserve">\r
     <value>$this</value>\r
   <data name="&gt;&gt;splitContainer1.ZOrder" xml:space="preserve">\r
     <value>0</value>\r
   </data>\r
-  <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
+  <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
     <value>True</value>\r
   </metadata>\r
   <data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">\r
     <value>UpdateInfo</value>\r
   </data>\r
   <data name="&gt;&gt;$this.Type" xml:space="preserve">\r
-    <value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+    <value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </data>\r
 </root>
\ No newline at end of file
index 0a8305dbea622b2d45758d03461f2ec42c1c764a..884c4a4f4893551b9996fccbe21c01f409ff4a2a 100644 (file)
@@ -19,10 +19,8 @@ namespace Handbrake
     using Functions;\r
 \r
     using HandBrake.ApplicationServices.EventArgs;\r
+    using HandBrake.ApplicationServices.Model.General;\r
     using HandBrake.ApplicationServices.Utilities;\r
-    using HandBrake.Framework.Model;\r
-    using HandBrake.Framework.Services;\r
-    using HandBrake.Framework.Views;\r
     using HandBrake.ApplicationServices.Functions;\r
     using HandBrake.ApplicationServices.Model;\r
     using HandBrake.ApplicationServices.Parsing;\r
@@ -41,6 +39,7 @@ namespace Handbrake
     /// </summary>\r
     public partial class frmMain : Form\r
     {\r
+        #region Private Varibles\r
         // Objects which may be used by one or more other objects *************\r
         private IQueueProcessor queueProcessor = new QueueProcessor(Program.InstanceId);\r
         private PresetService presetHandler = new PresetService();\r
@@ -66,6 +65,8 @@ namespace Handbrake
         // Delegates **********************************************************\r
         private delegate void UpdateWindowHandler();\r
 \r
+        #endregion\r
+\r
         // Applicaiton Startup ************************************************\r
 \r
         #region Properties\r
@@ -216,7 +217,7 @@ namespace Handbrake
 \r
                 if (info.NewVersionAvailable)\r
                 {\r
-                    UpdateInfo updateWindow = new UpdateInfo(info.BuildInformation, Settings.Default.hb_version, Settings.Default.hb_build.ToString());\r
+                    UpdateInfo updateWindow = new UpdateInfo(info, Settings.Default.hb_version, Settings.Default.hb_build.ToString());\r
                     updateWindow.ShowDialog();\r
                 }\r
             }\r
@@ -2452,9 +2453,9 @@ namespace Handbrake
                 // Get the information about the new build, if any, and close the window\r
                 info = UpdateService.EndCheckForUpdates(result);\r
 \r
-                if (info.NewVersionAvailable && info.BuildInformation != null)\r
+                if (info.NewVersionAvailable)\r
                 {\r
-                    UpdateInfo updateWindow = new UpdateInfo(info.BuildInformation, Settings.Default.hb_version, Settings.Default.hb_build.ToString());\r
+                    UpdateInfo updateWindow = new UpdateInfo(info, Settings.Default.hb_version, Settings.Default.hb_build.ToString());\r
                     updateWindow.ShowDialog();\r
                 }\r
                 else\r