Exemple #1
0
        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();
            }
        }
Exemple #2
0
        private void consultarComandaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmconcom frmcom = new frmconcom();

            frmcom.Show();
        }