private void MainForm_Shown(object sender, EventArgs e) { if (_TaskForm == null) { _TaskForm = new TaskForm(); _TaskForm.FormClosed += Form_FormClosed; _TaskForm.Show(); } }
private void 桌面任务栏窗体ToolStripMenuItem_Click(object sender, EventArgs e) { if (_TaskForm != null) { _TaskForm.Show(); } else { _TaskForm = new TaskForm(); _TaskForm.FormClosed += Form_FormClosed; _TaskForm.Show(); } }