private void btn_NewTask_Click(object sender, EventArgs e) { NewTask newTaskForm = new NewTask(); newTaskForm.ShowDialog();//模态显示 }
private void NewTask() { NewTask newTask = new NewTask(); newTask.Show(); }