Exemple #1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            try
            {

                this.Hide();
                FrmTannin mas_ins = new FrmTannin(D_INX_TAN_MAX + 1, "A");
                mas_ins.ShowDialog(this);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemple #2
0
 private void BtnEdit_Click(object sender, EventArgs e)
 {
     if (D_INX_TAN > 0)
     {
         try
         {
             this.Hide();
             FrmTannin mas_ins = new FrmTannin(D_INX_TAN, "E");
             mas_ins.ShowDialog(this);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
     else
     {
         MessageBox.Show("Please choose a tannin");
     }
 }