private void eDITToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedCells[0].RowIndex < dataGridView1.Rows.Count) { FSForm = new FScheduleForm(ObjTask1); FSForm.Show(); } }
// datagridview click private void dataGridView1_MouseDoubleClick(object sender, MouseEventArgs e) { if (dataGridView1.SelectedCells[0].RowIndex < dataGridView1.Rows.Count) { FSForm = new FScheduleForm(ObjTask1); FSForm.Show(); } else { AddFutureSchedule(); } }
public static List <Task> TScheduleList = new List <Task>(); //几日安排list #region MyRegion public void AddFutureSchedule() { FSForm = new FScheduleForm(); FSForm.Show(); }