private void btnEdit_Click(object sender, EventArgs e) { try { if (idMesa != 0) { FrmTableSave frmTable = new FrmTableSave(idMesa, this); frmTable.ShowDialog(); gridControl1.DataSource = null; fillGridTable(); } else { MessageBox.Show("Selecione uma mesa"); } } catch (Exception rr) { MessageBox.Show(rr.Message); } }
private void btnAddProduto_Click(object sender, EventArgs e) { FrmTableSave frm = new FrmTableSave(this); frm.ShowDialog(); }