Exemple #1
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            Empresa.frmComandaClienteEmpresarial comanda = new frmComandaClienteEmpresarial(iIdPersonaEmpleado, sNombreEmpresa, sNombreEmpleado, iIdPersonaEmpresa, iIdOrigenOrden);
            comanda.ShowDialog();

            if (comanda.DialogResult == DialogResult.OK)
            {
                limpiar();
            }
        }
        //FUNCION DEL BOTON EMPLEADOS
        public void boton_clic_Empleado(object sender, EventArgs e)
        {
            this.bempleado = sender as Button;
            Empresa.frmComandaClienteEmpresarial comanda = new frmComandaClienteEmpresarial(Convert.ToInt32(bempleado.Tag), sNombreEmpresa, bempleado.Text.ToUpper(), iIdEmpresa, iIdOrigenOrden);
            comanda.ShowDialog();

            if (comanda.DialogResult == DialogResult.OK)
            {
                this.Close();
            }
        }