Example #1
0
        private void AddNewTaxLevelBtn_Click(object sender, EventArgs e)
        {
            AddTaxLevel aAddTaxLevel = new AddTaxLevel();

            aAddTaxLevel.ShowDialog();
            this.taxLevelTableAdapter.Fill(this.dBDataSet.TaxLevel);
        }
Example #2
0
 private void AddNewTaxLevelBtn_Click(object sender, EventArgs e)
 {
     try
     {
         AddTaxLevel aAddTaxLevel = new AddTaxLevel();
         aAddTaxLevel.ShowDialog();
         this.taxLevelTableAdapter.Fill(this.dBDataSet.TaxLevel);
     }
     catch (Exception ex)
     {
         MessageBox.Show(MsgTxt.UnexpectedError + "\nException: IN[AddNewTaxLevelBtn_Click] \n" + ex.ToString() + "\n" + MsgTxt.FormWillCloseNowTxt, MsgTxt.ErrorCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
         this.Close();
     }
 }