示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            var scheduleEditWindow = new ScheduleEdit();

            //  mmForm.Close();
            scheduleEditWindow.ShowDialog();
        }
示例#2
0
        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();
        }