private void 設定ToolStripMenuItem1_Click(object sender, EventArgs e) { bool tempTopMost = TopMost; this.TopMost = false; DebugConfigDialog dialog = new DebugConfigDialog(); dialog.StartPosition = FormStartPosition.CenterParent; dialog.SetConfig(this); dialog.ShowDialog(); this.TopMost = tempTopMost; }