private void добавитьЗадачуToolStripMenuItem_Click(object sender, EventArgs e) { FormTask AddTask = new FormTask(true, -1); AddTask.Owner = this; AddTask.ShowDialog(); DateUpdate(); TextBoxTaskUpdateDayOrWeek(); }
private void редактироватьЗадачуToolStripMenuItem_Click(object sender, EventArgs e) { if (KeyTask >= 0) { FormTask AddTask = new FormTask(false, KeyTask); AddTask.Owner = this; AddTask.ShowDialog(); DateUpdate(); TextBoxTaskUpdateDayOrWeek(); } }