OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / Functions / GrowlCommunicator.cs
index 04450ee..5db2478 100644 (file)
@@ -6,10 +6,7 @@
 namespace Handbrake.Functions\r
 {\r
     using System;\r
-    using System.Collections.Generic;\r
-    using System.Text;\r
     using Growl.Connector;\r
-    using Growl.CoreLibrary;\r
 \r
     /// <summary>\r
     /// Provides all functionality for communicating with Growl for Windows.\r
@@ -60,7 +57,7 @@ namespace Handbrake.Functions
         public static void Register()\r
         {\r
             Initialize();\r
-            growl.Register(application, new NotificationType[] { encodeOrQueueCompleted });\r
+            growl.Register(application, new[] {encodeOrQueueCompleted});\r
         }\r
 \r
         /// <summary>\r
@@ -75,7 +72,8 @@ namespace Handbrake.Functions
         /// </param>\r
         public static void Notify(string title, string text)\r
         {\r
-            Notification notification = new Notification(application.Name, encodeOrQueueCompleted.Name, String.Empty, title, text);\r
+            Notification notification = new Notification(application.Name, encodeOrQueueCompleted.Name, String.Empty, \r
+                                                         title, text);\r
             growl.Notify(notification);\r
         }\r
 \r
@@ -89,9 +87,10 @@ namespace Handbrake.Functions
         /// <param name="imageUrl">The notification image as a url</param>\r
         public static void Notify(NotificationType notificationType, string title, string text, string imageUrl)\r
         {\r
-            Notification notification = new Notification(application.Name, notificationType.Name, String.Empty, title, text)\r
+            Notification notification = new Notification(application.Name, notificationType.Name, String.Empty, title, \r
+                                                         text)\r
                                             {\r
-                                               Icon = imageUrl\r
+                                                Icon = imageUrl\r
                                             };\r
 \r
             growl.Notify(notification);\r
@@ -116,4 +115,4 @@ namespace Handbrake.Functions
             }\r
         }\r
     }\r
-}\r
+}
\ No newline at end of file