private void AddNewTypeBtn_Click(object sender, EventArgs e) { AddNewItemType aAddNewItemType = new AddNewItemType(); aAddNewItemType.ShowDialog(); this.itemTypeTableAdapter.Fill(this.dBDataSet.ItemType); }
private void AddNewTypeBtn_Click(object sender, EventArgs e) { try { AddNewItemType aAddNewItemType = new AddNewItemType(); aAddNewItemType.ShowDialog(); this.itemTypeTableAdapter.Fill(this.dBDataSet.ItemType); } catch (Exception ex) { MessageBox.Show(MsgTxt.UnexpectedError + "\nException: IN[AddNewTypeBtn_Click] \n" + ex.ToString() + "\n" + MsgTxt.FormWillCloseNowTxt, MsgTxt.ErrorCaption, MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); } }