Exemplo n.º 1
0
        private void добавитьToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            DisciplineForm f2 = new DisciplineForm();

            f2.Show();
            this.discipline = f2.discipline;
        }
Exemplo n.º 2
0
 private void изменитьToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (this.discipline != null)
     {
         DisciplineForm f2 = new DisciplineForm(this.discipline);
         f2.Show();
         this.discipline = f2.discipline;
     }
     else
     {
         MessageBox.Show("Ошибка! Сначала добавьте предметы", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }