Esempio n. 1
0
        private void AddNewCategoryBtn_Click(object sender, EventArgs e)
        {
            AddNewCategory aAddNewCategory = new AddNewCategory();

            aAddNewCategory.ShowDialog();
            this.itemCategoryTableAdapter.Fill(this.dBDataSet.ItemCategory);
        }
Esempio n. 2
0
 private void AddNewCategoryBtn_Click(object sender, EventArgs e)
 {
     try
     {
         AddNewCategory aAddNewCategory = new AddNewCategory();
         aAddNewCategory.ShowDialog();
         this.itemCategoryTableAdapter.Fill(this.dBDataSet.ItemCategory);
     }
     catch (Exception ex)
     {
         MessageBox.Show(MsgTxt.UnexpectedError + "\nException: IN[AddNewCategoryBtn_Click] \n" + ex.ToString() + "\n" + MsgTxt.FormWillCloseNowTxt, MsgTxt.ErrorCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
         this.Close();
     }
 }