OSDN Git Service

イベントハンドラの名前をShipListFormからListFormにする
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Sat, 27 Apr 2019 09:31:56 +0000 (18:31 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Sat, 27 Apr 2019 09:31:56 +0000 (18:31 +0900)
KancolleSniffer/ListForm.Designer.cs
KancolleSniffer/ListForm.cs

index 91cef66..e63163c 100644 (file)
@@ -660,10 +660,10 @@ namespace KancolleSniffer
             this.Name = "ListForm";\r
             this.Text = "一覧";\r
             this.Activated += new System.EventHandler(this.ListForm_Activated);\r
-            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ShipListForm_FormClosing);\r
-            this.Load += new System.EventHandler(this.ShipListForm_Load);\r
+            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ListForm_FormClosing);\r
+            this.Load += new System.EventHandler(this.ListForm_Load);\r
             this.Shown += new System.EventHandler(this.ListForm_Shown);\r
-            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ShipListForm_KeyPress);\r
+            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ListForm_KeyPress);\r
             this.contextMenuStripShipList.ResumeLayout(false);\r
             this.contextMenuStrip.ResumeLayout(false);\r
             this.panelGroupHeader.ResumeLayout(false);\r
index fe83e5a..a7a4ea7 100644 (file)
@@ -199,7 +199,7 @@ namespace KancolleSniffer
 \r
         private bool InMiscText => comboBoxGroup.Text == "情報";\r
 \r
-        private void ShipListForm_Load(object sender, EventArgs e)\r
+        private void ListForm_Load(object sender, EventArgs e)\r
         {\r
             /* DPIではなくズームしたときにパネルは大きくなるがScrollBarはそのままなので隙間ができる。\r
                そこでScrollBarの幅に合わせて全体の横幅を設定し直す。*/\r
@@ -239,7 +239,7 @@ namespace KancolleSniffer
             checkBoxSTypeDetails.Checked = _config.ShipList.ShipType;\r
         }\r
 \r
-        private void ShipListForm_FormClosing(object sender, FormClosingEventArgs e)\r
+        private void ListForm_FormClosing(object sender, FormClosingEventArgs e)\r
         {\r
             e.Cancel = true;\r
             if (!Visible) // 非表示のときは保存すべき情報がないのでスキップする\r
@@ -315,7 +315,7 @@ namespace KancolleSniffer
                 SetPanelSTypeState(false);\r
         }\r
 \r
-        private void ShipListForm_KeyPress(object sender, KeyPressEventArgs e)\r
+        private void ListForm_KeyPress(object sender, KeyPressEventArgs e)\r
         {\r
             var g = Array.FindIndex(new[] {'Z', 'A', 'B', 'C', 'D', 'G', 'R', 'W', 'X', 'Y', 'S', 'I'},\r
                 x => x == char.ToUpper(e.KeyChar));\r