OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / Functions / Scan.cs
index 78d1585..8532b35 100644 (file)
@@ -53,6 +53,11 @@ namespace Handbrake.Functions
         public event EventHandler ScanStatusChanged;\r
 \r
         /// <summary>\r
+        /// Gets or sets a value indicating whether IsScanning.\r
+        /// </summary>\r
+        public bool IsScanning { get; set; }\r
+\r
+        /// <summary>\r
         /// Scan a Source Path.\r
         /// Title 0: scan all\r
         /// </summary>\r
@@ -109,6 +114,7 @@ namespace Handbrake.Functions
         {\r
             try\r
             {\r
+                IsScanning = true;\r
                 if (this.ScanStared != null)\r
                     this.ScanStared(this, new EventArgs());\r
 \r
@@ -152,6 +158,7 @@ namespace Handbrake.Functions
 \r
                 if (this.ScanCompleted != null)\r
                     this.ScanCompleted(this, new EventArgs());\r
+                IsScanning = false;\r
             }\r
             catch (Exception exc)\r
             {\r