this.Text = "KancolleSniffer";\r
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);\r
this.Load += new System.EventHandler(this.MainForm_Load);\r
+ this.Shown += new System.EventHandler(this.MainForm_Shown);\r
this.Resize += new System.EventHandler(this.MainForm_Resize);\r
this.panelHeadquarters.ResumeLayout(false);\r
this.panelHeadquarters.PerformLayout();\r
_sniffer.RepeatingTimerController = new RepeatingTimerController(_notificationManager, _config);\r
}\r
\r
+ /// <summary>\r
+ /// パネルのz-orderがくるうのを避ける\r
+ /// https://stackoverflow.com/a/5777090/1429506\r
+ /// </summary>\r
+ private void MainForm_Shown(object sender, EventArgs e)\r
+ {\r
+ // ReSharper disable once NotAccessedVariable\r
+ IntPtr handle;\r
+ foreach (var panel in new[] {panelShipInfo, panel7Ships, panelCombinedFleet})\r
+ // ReSharper disable once RedundantAssignment\r
+ handle = panel.Handle;\r
+ }\r
+\r
private class RepeatingTimerController : Sniffer.IRepeatingTimerController\r
{\r
private readonly NotificationManager _manager;\r