void thisBox_Click(object sender, EventArgs e) { Subject_Info_Form showSubject = new Subject_Info_Form(); showSubject.SetSubject(subjectObject); showSubject.Read_Only = read_only; showSubject.ShowDialog(); if (showSubject.Changed) { OnDataChanged(); } if (showSubject.Subject_Object != null) { subjectObject = showSubject.Subject_Object; } show_subject_info(); }
void thisBox_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down)) { Subject_Info_Form showSubject = new Subject_Info_Form(); showSubject.SetSubject(subjectObject); showSubject.Read_Only = read_only; showSubject.ShowDialog(); if (showSubject.Changed) { OnDataChanged(); } if (showSubject.Subject_Object != null) { subjectObject = showSubject.Subject_Object; } show_subject_info(); } }