Exemplo n.º 1
0
 /// <summary>
 ///  добавление ингридиента
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void add_but_Click(object sender, EventArgs e)
 {
     add_ingr ingr = new add_ingr(Program.data_module);
     ingr.ShowDialog();
     this.load_data_table(this._current_state);
 }
Exemplo n.º 2
0
 /// <summary>
 ///  редактирование
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void read_but_Click(object sender, EventArgs e)
 {
     add_ingr ingr = null;
     try
     {
         ingr = new add_ingr(Program.data_module, Convert.ToInt32(gw.Rows[gw.CurrentRow.Index].Cells[5].Value.ToString()));
         ingr.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Выберите ингредиент!");
     }
     this.load_data_table(this._current_state);
 }