Ejemplo n.º 1
0
        private void bAdd_Click(object sender, EventArgs e)
        {
            AddEditMaster masters = new AddEditMaster();

            masters.ShowInTaskbar = false;
            masters.FormClosing  += Masters_FormClosing;
            masters.ShowDialog();
        }
Ejemplo n.º 2
0
 private void bEdit_Click(object sender, EventArgs e)
 {
     if (code != null)
     {
         AddEditMaster masters = new AddEditMaster(code);
         masters.ShowInTaskbar = false;
         masters.FormClosing  += Masters_FormClosing;
         masters.ShowDialog();
     }
     else
     {
         MessageBox.Show("Требуется выбрать строку в таблице", "Ошибка");
     }
 }