Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var addedit = new AddEditTypePremis();

            addedit.ShowDialog();
            ini();
            isactive();
        }
Exemple #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         var addedit = new AddEditTypePremis(bgTypePrem.SelectedRows[0].Cells["cName"].Value.ToString(), bgTypePrem.SelectedRows[0].Cells["tId"].Value.ToString(), true);
         addedit.ShowDialog();
     }
     catch (Exception r) { MessageBox.Show("Нет записей для изменения." + "\n" + r.ToString(), "Ошибка"); }
     ini();
     isactive();
 }