From e1cd56c97a15f25ec33f925d39ca574f966dfbc0 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 13 Mar 2011 13:14:55 +0000 Subject: [PATCH] WinGui: - Complete work to remove the framework library. - Fix a couple of issues with the build script and updated the nsis scripts/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3843 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/Main.cs | 15 +-- .../HandBrake.ApplicationServices.csproj | 6 - .../Utilities/AppcastReader.cs | 2 - .../HandBrake.Framework.csproj | 97 ------------- .../Properties/AssemblyInfo.cs | 36 ----- .../Properties/Resources.Designer.cs | 77 ----------- .../Properties/Resources.resx | 127 ------------------ win/C#/HandBrake.Framework/Resources/copy.png | Bin 3291 -> 0 bytes .../HandBrake.Framework/Resources/errorx.png | Bin 10369 -> 0 bytes .../Services/ErrorService.cs | 109 --------------- .../Services/Interfaces/IErrorService.cs | 41 ------ win/C#/HandBrake.Framework/Settings.StyleCop | 1 - win/C#/HandBrake10.sln | 26 ---- win/C#/HandBrakeCS.csproj | 27 ++-- win/C#/Installer/Installer.nsi | 15 +-- win/C#/Installer/MakeNightly.nsi.tmpl | 28 +--- win/C#/Program.cs | 2 +- .../Views => ToolWindows}/ExceptionWindow.cs | 2 +- .../ExceptionWindow.designer.cs | 8 +- .../ExceptionWindow.resx | 0 win/C#/ToolWindows/UpdateInfo.cs | 1 - win/C#/frmActivityWindow.cs | 13 +- 22 files changed, 43 insertions(+), 590 deletions(-) delete mode 100644 win/C#/HandBrake.Framework/HandBrake.Framework.csproj delete mode 100644 win/C#/HandBrake.Framework/Properties/AssemblyInfo.cs delete mode 100644 win/C#/HandBrake.Framework/Properties/Resources.Designer.cs delete mode 100644 win/C#/HandBrake.Framework/Properties/Resources.resx delete mode 100644 win/C#/HandBrake.Framework/Resources/copy.png delete mode 100644 win/C#/HandBrake.Framework/Resources/errorx.png delete mode 100644 win/C#/HandBrake.Framework/Services/ErrorService.cs delete mode 100644 win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs delete mode 100644 win/C#/HandBrake.Framework/Settings.StyleCop rename win/C#/{HandBrake.Framework/Views => ToolWindows}/ExceptionWindow.cs (95%) rename win/C#/{HandBrake.Framework/Views => ToolWindows}/ExceptionWindow.designer.cs (94%) rename win/C#/{HandBrake.Framework/Views => ToolWindows}/ExceptionWindow.resx (100%) diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index f78d38a97..ae53efe90 100644 --- a/win/C#/Functions/Main.cs +++ b/win/C#/Functions/Main.cs @@ -16,23 +16,18 @@ namespace Handbrake.Functions using System.Windows.Forms; using System.Xml.Serialization; - using HandBrake.Framework.Services; - using HandBrake.Framework.Services.Interfaces; + using HandBrake.ApplicationServices.Model; using HandBrake.ApplicationServices.Parsing; using HandBrake.ApplicationServices.Services.Interfaces; - using Model; + + using Handbrake.ToolWindows; /// /// Useful functions which various screens can use. /// public static class Main { - /// - /// The Error Service - /// - private static readonly IErrorService errorService = new ErrorService(); - /// /// The XML Serializer /// @@ -706,7 +701,9 @@ namespace Handbrake.Functions /// public static void ShowExceptiowWindow(string shortError, string longError) { - errorService.ShowError(shortError, longError); + ExceptionWindow window = new ExceptionWindow(); + window.Setup(shortError, longError); + window.ShowDialog(); } /// diff --git a/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj b/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj index 52d11a26d..07aef5609 100644 --- a/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj +++ b/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj @@ -162,12 +162,6 @@ - - - {49AD42C1-BF9B-4D78-A644-020878FAADE6} - HandBrake.Framework - - diff --git a/win/C#/HandBrake.ApplicationServices/Utilities/AppcastReader.cs b/win/C#/HandBrake.ApplicationServices/Utilities/AppcastReader.cs index a8173d5fe..8b0053a86 100644 --- a/win/C#/HandBrake.ApplicationServices/Utilities/AppcastReader.cs +++ b/win/C#/HandBrake.ApplicationServices/Utilities/AppcastReader.cs @@ -10,8 +10,6 @@ namespace HandBrake.ApplicationServices.Utilities using System.Text.RegularExpressions; using System.Xml; - using HandBrake.Framework.Services.Interfaces; - /// /// Appcast Reader - Used for parsing HandBrakes update file /// diff --git a/win/C#/HandBrake.Framework/HandBrake.Framework.csproj b/win/C#/HandBrake.Framework/HandBrake.Framework.csproj deleted file mode 100644 index 9e625e5db..000000000 --- a/win/C#/HandBrake.Framework/HandBrake.Framework.csproj +++ /dev/null @@ -1,97 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {49AD42C1-BF9B-4D78-A644-020878FAADE6} - Library - Properties - HandBrake.Framework - HandBrake.Framework - v4.0 - 512 - - - 3.5 - - Client - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - AnyCPU - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - bin\NightlyBuild\ - TRACE - true - pdbonly - AnyCPU - prompt - - - - - - - - - - - - - - - True - True - Resources.resx - - - - - Form - - - ExceptionWindow.cs - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - ExceptionWindow.cs - - - - - - - - - - - - \ No newline at end of file diff --git a/win/C#/HandBrake.Framework/Properties/AssemblyInfo.cs b/win/C#/HandBrake.Framework/Properties/AssemblyInfo.cs deleted file mode 100644 index d6b958c94..000000000 --- a/win/C#/HandBrake.Framework/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("HandBrake.Framework")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("HandBrake Team")] -[assembly: AssemblyProduct("HandBrake.Framework")] -[assembly: AssemblyCopyright("Copyright © HandBrake Team")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("85248e69-53e0-4a37-a1a6-95c2e99fc750")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.9.5.0")] -[assembly: AssemblyFileVersion("0.9.5.0")] diff --git a/win/C#/HandBrake.Framework/Properties/Resources.Designer.cs b/win/C#/HandBrake.Framework/Properties/Resources.Designer.cs deleted file mode 100644 index b282e8b26..000000000 --- a/win/C#/HandBrake.Framework/Properties/Resources.Designer.cs +++ /dev/null @@ -1,77 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace HandBrake.Framework.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HandBrake.Framework.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - internal static System.Drawing.Bitmap copy { - get { - object obj = ResourceManager.GetObject("copy", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - internal static System.Drawing.Bitmap ErrorX { - get { - object obj = ResourceManager.GetObject("ErrorX", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - } -} diff --git a/win/C#/HandBrake.Framework/Properties/Resources.resx b/win/C#/HandBrake.Framework/Properties/Resources.resx deleted file mode 100644 index f7606bf2c..000000000 --- a/win/C#/HandBrake.Framework/Properties/Resources.resx +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - ..\Resources\copy.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\errorx.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/win/C#/HandBrake.Framework/Resources/copy.png b/win/C#/HandBrake.Framework/Resources/copy.png deleted file mode 100644 index c11c6a7531ddc1c8e599605f27799bca6fe81a65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3291 zcmV<13?%c3P)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS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j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=00004XF*Lt006O$eEU(80000WV@Og>004R=004l4008;_004mL004C` z008P>0026e000+nl3&F}0005@NklA!vM~j5n)S`t;BT*tuBqYp0 zq)`YIVm2WZAn%$WK$MVi=e19T1JlK%zT%b?|kR-wis-( z30wHA4)5YQzu$Q|o`|p&QcrSU1i)AWfK~}flCWoY69;<^c>fgu9P8V=VR-xTYp&0I zCXOTN@9W!C(qN6*FtAPtqmbhR`~8vU z{9r#HmzS8n@xHc3r7hX6CgQ{+R+?BflKT(?aQSXXp%}6j1w@q!07IP)tgZSVW|Hc6xJxA1S&|+ylUw7-tmDXv8VRYQ$By<8AdfHn2s0 Z4FC)YHPc@^8TtSK002ovPDHLkV1l|97|s9y diff --git a/win/C#/HandBrake.Framework/Resources/errorx.png b/win/C#/HandBrake.Framework/Resources/errorx.png deleted file mode 100644 index 75c63c08a43e16593aaa81fd876191bd02ec82c3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10369 zcmW+*b6BKb8=h?2wrx$e?b>Wxo9)_a)3(*-&6{o4W?P%xgl~S|dtL9Ge`d~kH23{H z_lZ?gkwrlyL<9f;DDrYr8sJs@zZV`B{8?$|wgp}gT;=pV001Pc|6T|{?st3u08!OW zQc_LL*2UAs!`8)>TwYR=+|}L1+Ro7m0PtPQ*R;{nJjE4x+PViS#)M`lx@h3QlWPFu zL$On787UCZ6=EogS8>$)Fr=lSiAIZJppue86L8d-k>e0o;0`E$B!!p6#EpY?140zgPk2;LgI7}A$d8dE!Ua6FLCJiCNV&f=T_N^7^^NnPIa!}r)O^*?KUmepeNh&wt zjSWpA4q1SPu71Ndz(3K5XX^2^u~>QRvnUC*<3?+F07?QrS)OAikf zY8$>gR2PjdqROr)q;wZcM^>IuP+oD6zX4L-ki6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y2Kr?=uHKqV6##M$mi zzC>c(8H#H+s~DULX~7tCk!Mjb#b2MjPL?L$r3seEYVH*jTkrCwqdN^5IDeikNv24k z$ey^Fl|;(~YmOm*yv~-`}^u%KQ6_*o?N% z*4TJF>p{xCnh~X27P@)`MZ7)vIDs0uCiK!}keNlSDSUfJm?NIl7Qvnm|tgid@EN^{nZL7z8AgU6q z^ZN$`oQAyGUG{)jqq-Y2A1&%TPgt|>4@exJVD%plDBfhOM|E5&nAJw=6?q%}9T3|o zoAD|uFwid59rK`xO`av8&YyCFf$slV`U6?qj$@;J5sXKD$w05^tXoAD)Mg)Dq!gTa|?-}{A;|pq}A-o zQPlQ=rFj@ksoanS_l6ss%jXW9xrs z)tnK&oAe33O)vb{npW8CZTcMEI>9Ch9Hb5K$~N|11wr`0$(CYQA*ea7u=*`m=KfFa&b(b^o27clMdzK(>1W8wF#SB zqTleB)h0ckElLRr>ARf?u7O@pj61T*9=!pGk&s}*6$yBB-RTYc3&wF5(vY_sr+}x+ zpnA%&oW`@Ok2$g&{iuju>NN3-yzRFm6r1mE!_k#hRi+C|U_-nw4Ca=XWtEjt=4`PU zto$BE?t~fnoZ&{moUcZ&73`|vFa`djK|w(g^SkzTKJUd-fuSJa>0D~RHYnb)y!^P z!HJh{SY-xRD6v@Z_uXA{5%8l;kDa8XqVjPxEp!z)YalzfbcZD2wl8M*Fs}8H{BcrE zL+Kd%tAPqtYDVny%>%sKOfC5OE?$bVCTagK5(OqOMot>DERlo8Qb~n@$B;2|xMB6* z&h_;*7nUB7KZ?-#zG zV#HH4 P;|0h|t4P%X&A$E*z79Nq diff --git a/win/C#/HandBrake.Framework/Services/ErrorService.cs b/win/C#/HandBrake.Framework/Services/ErrorService.cs deleted file mode 100644 index 3858f1674..000000000 --- a/win/C#/HandBrake.Framework/Services/ErrorService.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* ErrorService.cs $ - This file is part of the HandBrake source code. - Homepage: . - It may be used under the terms of the GNU General Public License. */ - -namespace HandBrake.Framework.Services -{ - using System; - using System.IO; - using System.Threading; - using System.Windows.Forms; - - using HandBrake.Framework.Services.Interfaces; - using HandBrake.Framework.Views; - - /// - /// The Error Service - /// - public class ErrorService : IErrorService - { - private int exceptionCount; - - /// - /// Show an Error Window - /// - /// - /// The short error message for the user to read - /// - /// - /// Exception string or advanced details - /// - public void ShowError(string shortError, string longError) - { - exceptionCount++; - - try - { - Thread newThread = new Thread(new ParameterizedThreadStart(this.LogError)); - newThread.Start(shortError + Environment.NewLine + longError); - } - catch (Exception) - { - // Do Nothing - } - - if (exceptionCount > 30) - { - // If we are getting a large number of exceptions, just die out. We don't want to fill the users drive with a ton - // of exception files. - return; - } - - ExceptionWindow window = new ExceptionWindow(); - window.Setup(shortError, longError); - - // This seems far from ideal so maybe have a think about a better way of doing this. - // This method can be called from UI and worker threads, so the ExcWindow needs to be called on the UI thread or on it's on UI thread. - Application.Run(window); - } - - /// - /// Show a Notice or Warning Message. - /// - /// - /// The text to display to the user - /// - /// - /// Is a warning window, show the warning icon instead of the notice - /// - public void ShowNotice(string notice, bool isWarning) - { - throw new NotImplementedException(); - } - - /// - /// Write Exceptions out to log files - /// - /// - /// The state. - /// - public void LogError(object state) - { - try - { - if (exceptionCount > 30) - { - // If we are getting a large number of exceptions, just die out. We don't want to fill the users drive with a ton - // of exception files. - return; - } - - string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs"; - string file = Path.Combine(logDir, string.Format("Exception_{0}.txt", DateTime.Now.Ticks)); - - if (!File.Exists(file)) - { - using (StreamWriter streamWriter = new StreamWriter(file)) - { - streamWriter.WriteLine(state.ToString()); - } - } - } - catch - { - return; // Game over. Stop digging. - } - } - } -} diff --git a/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs b/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs deleted file mode 100644 index 9eceead57..000000000 --- a/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs +++ /dev/null @@ -1,41 +0,0 @@ -/* IErrorService.cs $ - This file is part of the HandBrake source code. - Homepage: . - It may be used under the terms of the GNU General Public License. */ - -namespace HandBrake.Framework.Services.Interfaces -{ - /// - /// The Error service for showing the exception window. - /// - public interface IErrorService - { - /// - /// Show an Error Window - /// - /// - /// The short error message for the user to read - /// - /// - /// Exception string or advanced details - /// - void ShowError(string shortError, string longError); - - /// - /// Show a Notice or Warning Message. - /// - /// - /// The text to display to the user - /// - /// - /// Is a warning window, show the warning icon instead of the notice - /// - void ShowNotice(string notice, bool isWarning); - - /// - /// Log the error - /// - /// The error message - void LogError(object state); - } -} \ No newline at end of file diff --git a/win/C#/HandBrake.Framework/Settings.StyleCop b/win/C#/HandBrake.Framework/Settings.StyleCop deleted file mode 100644 index 7f55ce6c6..000000000 --- a/win/C#/HandBrake.Framework/Settings.StyleCop +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/win/C#/HandBrake10.sln b/win/C#/HandBrake10.sln index 56c85201d..f6a702238 100644 --- a/win/C#/HandBrake10.sln +++ b/win/C#/HandBrake10.sln @@ -5,8 +5,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrakeCS", "HandBrakeCS. EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrake.ApplicationServices", "HandBrake.ApplicationServices\HandBrake.ApplicationServices.csproj", "{087A2BA8-BAC2-4577-A46F-07FF9D420016}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrake.Framework", "HandBrake.Framework\HandBrake.Framework.csproj", "{49AD42C1-BF9B-4D78-A644-020878FAADE6}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrakeWPF", "HandBrakeWPF\HandBrakeWPF.csproj", "{DADE66CB-0E12-4959-ADE5-0ACD31D27C59}" EndProject Global @@ -81,30 +79,6 @@ Global {087A2BA8-BAC2-4577-A46F-07FF9D420016}.Release|Mixed Platforms.Build.0 = Release|Any CPU {087A2BA8-BAC2-4577-A46F-07FF9D420016}.Release|x64.ActiveCfg = Release|Any CPU {087A2BA8-BAC2-4577-A46F-07FF9D420016}.Release|x86.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Debug|x64.ActiveCfg = Debug|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Debug|x86.ActiveCfg = Debug|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Install|Any CPU.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Install|Any CPU.Build.0 = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Install|Mixed Platforms.ActiveCfg = NightlyBuild|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Install|Mixed Platforms.Build.0 = NightlyBuild|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Install|x64.ActiveCfg = NightlyBuild|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Install|x86.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.NightlyBuild|Any CPU.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.NightlyBuild|Any CPU.Build.0 = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.NightlyBuild|Mixed Platforms.ActiveCfg = NightlyBuild|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.NightlyBuild|Mixed Platforms.Build.0 = NightlyBuild|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.NightlyBuild|x64.ActiveCfg = NightlyBuild|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.NightlyBuild|x86.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Release|Any CPU.Build.0 = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Release|x64.ActiveCfg = Release|Any CPU - {49AD42C1-BF9B-4D78-A644-020878FAADE6}.Release|x86.ActiveCfg = Release|Any CPU {DADE66CB-0E12-4959-ADE5-0ACD31D27C59}.Debug|Any CPU.ActiveCfg = Debug|x86 {DADE66CB-0E12-4959-ADE5-0ACD31D27C59}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 {DADE66CB-0E12-4959-ADE5-0ACD31D27C59}.Debug|Mixed Platforms.Build.0 = Debug|x86 diff --git a/win/C#/HandBrakeCS.csproj b/win/C#/HandBrakeCS.csproj index b1a8325fe..b36ec5987 100644 --- a/win/C#/HandBrakeCS.csproj +++ b/win/C#/HandBrakeCS.csproj @@ -277,6 +277,12 @@ DownloadUpdate.cs + + Form + + + ExceptionWindow.cs + Form @@ -364,6 +370,9 @@ DownloadUpdate.cs Designer + + ExceptionWindow.cs + PreviewOverlay.cs @@ -487,10 +496,6 @@ {087A2BA8-BAC2-4577-A46F-07FF9D420016} HandBrake.ApplicationServices - - {49AD42C1-BF9B-4D78-A644-020878FAADE6} - HandBrake.Framework -