public ConsultaProcessoCliente()
        {
            InitializeComponent();

            Action<ModeloProcesso> formProcesso = new Action<ModeloProcesso>((proc) =>
            {
                CadastroProcessos form = (this.MdiParent as TelaPrincipal).formProcesso;
                if (form == null || form.IsDisposed)
                {
                    form = new CadastroProcessos();
                    form.MdiParent = this.MdiParent;
                }
                if (form.Visible)
                {
                    form.BringToFront();
                }
                else
                {
                    form.Show();
                    form.Update();
                }
                form.Link.CarregarProcesso(proc);
            });

            ConsultaProcessoClienteEstrutura cpce = new ConsultaProcessoClienteEstrutura
                (this, formProcesso,lblNavegacao,txtCodigoCliente, txtNomeCliente,
                txtCodigoProcesso, txtNumeroProcesso, txtNumeroOrdem,
                txtVara, txtCabeca, txtTipoAcao, txtReu, txtDataAjuizamento,
                lstResponsaveis,txtObjetivo, txtAndamento, btnPesquisar, btnAnterior,
                btnProximo,btnFichaCadastral);
        }
        public ConsultaSimples()
        {
            InitializeComponent();

            Action<ModeloCliente> formCliente = new Action<ModeloCliente>((cli) =>
            {
                CadastroCliente form = (this.MdiParent as TelaPrincipal).formCliente;
                if (form == null || form.IsDisposed)
                {
                    form = new CadastroCliente();
                    form.MdiParent = this.MdiParent;
                }
                if (form.Visible)
                {
                    form.BringToFront();
                }
                else
                {
                    form.Show();
                    form.Update();
                }
                form.Link.CarregarCliente(cli);
            });

            Action<ModeloProcesso> formProcesso = new Action<ModeloProcesso>((proc) =>
            {
                CadastroProcessos form = (this.MdiParent as TelaPrincipal).formProcesso;
                if (form == null || form.IsDisposed)
                {
                    form = new CadastroProcessos();
                    form.MdiParent = this.MdiParent;
                }
                if (form.Visible)
                {
                    form.BringToFront();
                }
                else
                {
                    form.Show();
                    form.Update();
                }
                form.Link.CarregarProcesso(proc);
            });

            ConsultaSimplesEstrutura cse = new ConsultaSimplesEstrutura(
                this,
                formCliente,formProcesso,
                rbtConsultaCliente, rbtConsultaProcesso,
                txtCodigoCliente, txtNomeCliente, txtCPFCliente, txtRGCliente,
                txtCodigoProcesso, txtNumeroProcesso, txtCabecaProcesso,
                btnPesquisar, btnFichaCadastral, btnProcuracaoINSS,
                gridPesquisa
                );
        }
示例#3
0
 private void Processos_Click(object sender, EventArgs e)
 {
     if (formProcesso == null || formProcesso.IsDisposed)
     {
         formProcesso = new CadastroProcessos();
         formProcesso.MdiParent = this;
     }
     if (formProcesso.Visible)
     {
         formProcesso.BringToFront();
     }
     else
     {
         formProcesso.Show();
         formProcesso.Update();
     }
 }