示例#1
0
 //редактирование очереди
 private void bEdit_Click(object sender, EventArgs e)
 {
     add_queue queue = null;
        try
        {
            queue = new add_queue(Program.data_module, Convert.ToInt32(gw.Rows[gw.CurrentRow.Index].Cells[0].Value.ToString()));
            queue.ShowDialog();
        }
        catch (Exception)
        {
            MessageBox.Show("Выберите очередь!");
        }
     this.load_data_table(this._current_state);//обновляем дата грид
 }
示例#2
0
 //Добавление новой записи
 private void bAdd_Click(object sender, EventArgs e)
 {
     add_queue queue = new add_queue(Program.data_module);
     queue.ShowDialog();
     this.load_data_table(this._current_state);
 }