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