Esempio n. 1
0
 /// <summary>
 /// редактирование по двойному клику
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gw_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     add_cards card = null;
     try
     {
         card = new add_cards(Program.data_module, Convert.ToInt32(gw.Rows[gw.CurrentRow.Index].Cells[0].Value.ToString()),
                                     gw.Rows[gw.CurrentRow.Index].Cells[1].Value.ToString(),
                                     Convert.ToInt32(gw.Rows[gw.CurrentRow.Index].Cells[5].Value.ToString()));
         card.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Выберите карту!");
     }
     this.load_data_table(this._current_state);//обновляем дата грид
 }
Esempio n. 2
0
 /// <summary>
 /// Добавление карты
 /// </summary>
 private void add_new_cards()
 {
     add_cards card = new add_cards(Program.data_module);
     card.ShowDialog();
 }
Esempio n. 3
0
 /// <summary>
 /// добавление карты
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void b_add_Click(object sender, EventArgs e)
 {
     add_cards card = new add_cards(Program.data_module);
     card.ShowDialog();
     this.load_data_table(this._current_state);
 }