/// <summary> /// добавить /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripButton4_Click(object sender, EventArgs e) { AddReader addReader = new AddReader(); addReader.MdiParent = this.MdiParent; addReader.Show(); }
private void добавитьНовогоToolStripMenuItem_Click(object sender, EventArgs e) { if (reader == null) { AddReader NewReader = new AddReader(); NewReader.MdiParent = this; NewReader.FormClosed += new FormClosedEventHandler(NewReader_FormClosed); NewReader.Show(); } }
private void button1_Click(object sender, EventArgs e) { AddReader subForm = new AddReader(); subForm.Show(); }
void NewReader_FormClosed(object sender, EventArgs e) { reader = null; Student.Save(); }