Example #1
0
 private void AddButton_Click(object sender, EventArgs e)
 {
     try
     {
         ДобавитьИзменитьТип f = new ДобавитьИзменитьТип();
         f.ShowDialog();
         this.тип_ТовараTableAdapter.Fill(this.bookWorldDataSet.Тип_Товара);
     }
     catch (Exception ex)
     {
         StaticHelper.ErrorNotifier(ex);
     }
 }
Example #2
0
 private void EditButton_Click(object sender, EventArgs e)
 {
     try
     {
         string title          = Convert.ToString(this.тип_ТовараDataGridView.CurrentRow.Cells[1].Value);
         int    id             = Convert.ToInt32(this.тип_ТовараDataGridView.CurrentRow.Cells[0].Value);
         ДобавитьИзменитьТип f = new ДобавитьИзменитьТип(title, id);
         f.ShowDialog();
         this.тип_ТовараTableAdapter.Fill(this.bookWorldDataSet.Тип_Товара);
     }
     catch (Exception ex)
     {
         StaticHelper.ErrorNotifier(ex);
     }
 }