private void button3_Click(object sender, EventArgs e) { if (DialogResult.Yes == MessageBox.Show("Tem certeza que deseja abrir esta comanda?", "Confirmar", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2)) { txtboxcli.Focus(); Camadas.Model.Comanda comanda = new Camadas.Model.Comanda(); Camadas.DAL.Comanda dalCom = new Camadas.DAL.Comanda(); comanda.id_cliente = Convert.ToInt32(txtboxid.Text); comanda.status = "1"; dalCom.Insert(comanda); frmconcom frmcom = new frmconcom(); frmcom.Show(); this.Close(); } }
private void consultarComandaToolStripMenuItem_Click(object sender, EventArgs e) { frmconcom frmcom = new frmconcom(); frmcom.Show(); }