OSDN Git Service

敵のスロットの搭載数を埋める
[kancollesniffer/KancolleSniffer.git] / KancolleSniffer / NotificationConfigDialog.cs
index 8b20b12..852c233 100644 (file)
@@ -3,24 +3,25 @@ using System.Collections.Generic;
 using System.Drawing;\r
 using System.Linq;\r
 using System.Windows.Forms;\r
+using KancolleSniffer.View;\r
 \r
 namespace KancolleSniffer\r
 {\r
     public partial class NotificationConfigDialog : Form\r
     {\r
         private readonly Dictionary<string, NotificationSpec> _notifications;\r
-        private readonly Dictionary<NotificationType, CheckBox> _configCheckBoxs;\r
+        private readonly Dictionary<NotificationType, CheckBox> _configCheckBoxes;\r
         private readonly ResizableToolTip _toolTip = new ResizableToolTip();\r
 \r
         public NotificationConfigDialog(Dictionary<string, NotificationSpec> notifications,\r
-            Dictionary<NotificationType, CheckBox> checkBoxs)\r
+            Dictionary<NotificationType, CheckBox> checkBoxes)\r
         {\r
             InitializeComponent();\r
             _notifications = notifications;\r
-            _configCheckBoxs = checkBoxs;\r
+            _configCheckBoxes = checkBoxes;\r
 \r
             checkBoxFlashWindow.Tag = NotificationType.FlashWindow;\r
-            checkBoxShowBaloonTip.Tag = NotificationType.ShowBaloonTip;\r
+            checkBoxShowBalloonTip.Tag = NotificationType.ShowBaloonTip;\r
             checkBoxPlaySound.Tag = NotificationType.PlaySound;\r
             checkBoxPush.Tag = NotificationType.Push;\r
             checkBoxRepeat.Tag = NotificationType.Repeat;\r
@@ -40,14 +41,13 @@ namespace KancolleSniffer
             {\r
                 case "艦娘数超過":\r
                 case "装備数超過":\r
-                case "大破警告":\r
                     textBoxPreliminary.Visible = labelPreliminary.Visible = checkBoxPreliminary.Visible =\r
                         textBoxRepeat.Visible = labelRepeat.Visible = checkBoxRepeat.Visible =\r
                             checkBoxCont.Visible = false;\r
                     break;\r
                 default:\r
                     textBoxRepeat.Visible = labelRepeat.Visible = checkBoxRepeat.Visible = true;\r
-                    checkBoxRepeat.Enabled = _configCheckBoxs[NotificationType.Repeat].Checked;\r
+                    checkBoxRepeat.Enabled = _configCheckBoxes[NotificationType.Repeat].Checked;\r
                     textBoxRepeat.Text = notification.RepeatInterval.ToString();\r
                     checkBoxCont.Visible = IsContAvailable;\r
                     textBoxPreliminary.Visible =\r
@@ -56,7 +56,7 @@ namespace KancolleSniffer
                     break;\r
             }\r
             checkBoxFlashWindow.Checked = (notification.Flags & NotificationType.FlashWindow) != 0;\r
-            checkBoxShowBaloonTip.Checked = (notification.Flags & NotificationType.ShowBaloonTip) != 0;\r
+            checkBoxShowBalloonTip.Checked = (notification.Flags & NotificationType.ShowBaloonTip) != 0;\r
             checkBoxPlaySound.Checked = (notification.Flags & NotificationType.PlaySound) != 0;\r
             checkBoxPush.Checked = (notification.Flags & NotificationType.Push) != 0;\r
             checkBoxRepeat.Checked = (notification.Flags & NotificationType.Repeat) != 0;\r
@@ -76,7 +76,7 @@ namespace KancolleSniffer
             if (type == NotificationType.Repeat)\r
             {\r
                 textBoxRepeat.Enabled = labelRepeat.Enabled = checkBoxCont.Enabled =\r
-                    _configCheckBoxs[NotificationType.Repeat].Checked && checkBox.Checked;\r
+                    _configCheckBoxes[NotificationType.Repeat].Checked && checkBox.Checked;\r
             }\r
             if (type == NotificationType.Preliminary)\r
                 textBoxPreliminary.Enabled = labelPreliminary.Enabled = checkBox.Checked;\r
@@ -96,10 +96,10 @@ namespace KancolleSniffer
 \r
         private void NotificationConfigDialog_Load(object sender, EventArgs e)\r
         {\r
-            checkBoxFlashWindow.Enabled = _configCheckBoxs[NotificationType.FlashWindow].Checked;\r
-            checkBoxShowBaloonTip.Enabled = _configCheckBoxs[NotificationType.ShowBaloonTip].Checked;\r
-            checkBoxPlaySound.Enabled = _configCheckBoxs[NotificationType.PlaySound].Checked;\r
-            checkBoxRepeat.Enabled = _configCheckBoxs[NotificationType.Repeat].Checked;\r
+            checkBoxFlashWindow.Enabled = _configCheckBoxes[NotificationType.FlashWindow].Checked;\r
+            checkBoxShowBalloonTip.Enabled = _configCheckBoxes[NotificationType.ShowBaloonTip].Checked;\r
+            checkBoxPlaySound.Enabled = _configCheckBoxes[NotificationType.PlaySound].Checked;\r
+            checkBoxRepeat.Enabled = _configCheckBoxes[NotificationType.Repeat].Checked;\r
             textBoxRepeat.Enabled = labelRepeat.Enabled = checkBoxCont.Enabled =\r
                 checkBoxRepeat.Enabled && checkBoxRepeat.Checked;\r
             textBoxPreliminary.Enabled = checkBoxPreliminary.Checked;\r