private void button3_Click(object sender, EventArgs e) { var scheduleEditWindow = new ScheduleEdit(); // mmForm.Close(); scheduleEditWindow.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { string groupName = txtGroupName.Text; string fieldOfStudy = txtFieldOfStudy.Text; var activeAddForm = new ScheduleAdd(); var editForm = new ScheduleEdit(groupName, fieldOfStudy); Form.ActiveForm.Close(); editForm.ShowDialog(); }