private void addTaskToolStripMenuItem_Click(object sender, EventArgs e) { dlgEditTask dlgET = new dlgEditTask(); if (dlgET.ShowDialog(this) == DialogResult.OK) { RefreshTasks(); RefreshSchedule(); } }
private void editTaskToolStripMenuItem_Click(object sender, EventArgs e) { string sitem = lbTasks.SelectedItem.toString(); dlgEditTask dlgET = new dlgEditTask(); dlgET.iActiveTaskNum = sitem.ParseString(":", 0).toInt32(); if (dlgET.ShowDialog(this) == DialogResult.OK) { RefreshTasks(); RefreshSchedule(); } }