예제 #1
0
        private void maestroClientesMetroTile_Click(object sender, EventArgs e)
        {
            MetroMaestroDeClientesForm myForm = new MetroMaestroDeClientesForm(this.formularioMetroStyleManager.Theme);

            myForm.RutExterno  = string.Empty;
            myForm.IsChildForm = false;
            myForm.EstadoForm  = EstadoFormulario.Buscar;
            this.AbrirUnFormulario(myForm);
        }
예제 #2
0
        private void AbrirMaestroClientesModoChild(EstadoFormulario estado, TipoGrabacion accion, string rutQueBuscar)
        {
            MetroMaestroDeClientesForm myForm = new MetroMaestroDeClientesForm(this.StyleManager.Theme);

            myForm.RutExterno   = rutQueBuscar;
            myForm.EstadoForm   = estado;
            myForm.AccionGrabar = accion;
            myForm.IsChildForm  = true;
            var myCommand = CmdAbrirFormulario.Crear(myForm);

            myCommand.Ejecutar();
            if (myForm.HayCambios)
            {
                this.CargarClientes();
            }
        }