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
{\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
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
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
\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