OSDN Git Service

エラーダイアログを一時的に非表示にできるようにする
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Tue, 12 Dec 2017 12:31:22 +0000 (21:31 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Tue, 12 Dec 2017 13:29:19 +0000 (22:29 +0900)
KancolleSniffer/ErrorDialog.Designer.cs
KancolleSniffer/ErrorDialog.cs

index e588716..77a46f6 100644 (file)
@@ -48,6 +48,7 @@ namespace KancolleSniffer
             this.labelSystemIcon = new System.Windows.Forms.Label();\r
             this.labelMessage = new System.Windows.Forms.Label();\r
             this.label1 = new System.Windows.Forms.Label();\r
+            this.checkBoxDisable = new System.Windows.Forms.CheckBox();\r
             this.SuspendLayout();\r
             // \r
             // textBoxDetails\r
@@ -106,12 +107,23 @@ namespace KancolleSniffer
             this.label1.TabIndex = 2;\r
             this.label1.Text = "エラーの詳細";\r
             // \r
+            // checkBoxDisable\r
+            // \r
+            this.checkBoxDisable.AutoSize = true;\r
+            this.checkBoxDisable.Location = new System.Drawing.Point(9, 234);\r
+            this.checkBoxDisable.Name = "checkBoxDisable";\r
+            this.checkBoxDisable.Size = new System.Drawing.Size(133, 16);\r
+            this.checkBoxDisable.TabIndex = 6;\r
+            this.checkBoxDisable.Text = "一時的に表示を止める";\r
+            this.checkBoxDisable.UseVisualStyleBackColor = true;\r
+            // \r
             // ErrorDialog\r
             // \r
             this.AcceptButton = this.buttonContinue;\r
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
             this.ClientSize = new System.Drawing.Size(334, 265);\r
+            this.Controls.Add(this.checkBoxDisable);\r
             this.Controls.Add(this.label1);\r
             this.Controls.Add(this.labelMessage);\r
             this.Controls.Add(this.labelSystemIcon);\r
@@ -137,5 +149,6 @@ namespace KancolleSniffer
         private System.Windows.Forms.Label labelSystemIcon;\r
         private System.Windows.Forms.Label labelMessage;\r
         private System.Windows.Forms.Label label1;\r
+        private System.Windows.Forms.CheckBox checkBoxDisable;\r
     }\r
 }
\ No newline at end of file
index c485af1..db94d95 100644 (file)
@@ -30,7 +30,7 @@ namespace KancolleSniffer
 \r
         public DialogResult ShowDialog(IWin32Window owner, string message, string details)\r
         {\r
-            if (Visible)\r
+            if (Visible || checkBoxDisable.Checked)\r
                 return DialogResult.Ignore;\r
             labelMessage.Text = message;\r
             textBoxDetails.Text = details;\r