OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / HandBrake.ApplicationServices / Services / Encode.cs
similarity index 93%
rename from win/C#/Services/Encode.cs
rename to win/C#/HandBrake.ApplicationServices/Services/Encode.cs
index a6da850..491668d 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.Services\r
+namespace HandBrake.ApplicationServices.Services\r
 {\r
     using System;\r
     using System.Diagnostics;\r
@@ -11,9 +11,11 @@ namespace Handbrake.Services
     using System.Text;\r
     using System.Threading;\r
     using System.Windows.Forms;\r
-    using Functions;\r
-    using Model;\r
-    using Properties;\r
+\r
+    using HandBrake.ApplicationServices.Functions;\r
+    using HandBrake.ApplicationServices.Model;\r
+    using HandBrake.ApplicationServices.Properties;\r
+\r
     using Timer = System.Threading.Timer;\r
 \r
     /// <summary>\r
@@ -222,12 +224,7 @@ namespace Handbrake.Services
             }\r
             catch (Exception exc)\r
             {\r
-                MessageBox.Show(\r
-                    "It would appear that HandBrakeCLI has not started correctly. You should take a look at the Activity log as it may indicate the reason why.\n\nDetailed Error Information: error occured in runCli()\n\n" +\r
-                    exc,\r
-                    "Error",\r
-                    MessageBoxButtons.OK,\r
-                    MessageBoxIcon.Error);\r
+                Main.ShowExceptiowWindow("It would appear that HandBrakeCLI has not started correctly. You should take a look at the Activity log as it may indicate the reason why.\n\nDetailed Error Information: error occured in runCli()", exc.ToString());\r
             }\r
         }\r
 \r
@@ -340,7 +337,7 @@ namespace Handbrake.Services
                 this.EncodeEnded(this, new EventArgs());\r
 \r
             // Growl\r
-            if (Settings.Default.growlQueue)\r
+        if (Settings.Default.growlQueue)\r
                 GrowlCommunicator.Notify("Queue Completed", "Put down that cocktail...\nyour Handbrake queue is done.");\r
 \r
             // Do something whent he encode ends.\r
@@ -440,11 +437,7 @@ namespace Handbrake.Services
             }\r
             catch (Exception exc)\r
             {\r
-                MessageBox.Show(\r
-                    "Something went a bit wrong trying to copy your log file.\nError Information:\n\n" + exc,\r
-                    "Error",\r
-                    MessageBoxButtons.OK,\r
-                    MessageBoxIcon.Error);\r
+                Main.ShowExceptiowWindow("Unable to make a copy of the log file", exc.ToString());\r
             }\r
         }\r
 \r