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