示例#1
0
 /// <summary>
 /// 获取单例窗体
 /// </summary>
 /// <returns></returns>
 public static TasksForm GetInstanceTask()
 {
     if (taskFormInstance == null)
     {
         taskFormInstance = new TasksForm();
     }
     return taskFormInstance;
 }
示例#2
0
 /// <summary>
 /// 获取单例窗体
 /// </summary>
 /// <returns></returns>
 public static TasksForm GetInstanceTask()
 {
     if (taskFormInstance == null)
     {
         taskFormInstance = new TasksForm();
     }
     return(taskFormInstance);
 }
示例#3
0
 private void btn_ChooseTask_Click(object sender, EventArgs e)
 {
     taskForm = TasksForm.GetInstanceTask();
     FollowMainForm();
     taskForm.Show();
 }
示例#4
0
 private void TasksForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     taskFormInstance = null;
 }
示例#5
0
 private void TasksForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     taskFormInstance = null;
 }
示例#6
0
 private void btn_ChooseTask_Click(object sender, EventArgs e)
 {
     taskForm = TasksForm.GetInstanceTask();
     FollowMainForm();
     taskForm.Show();
 }