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
                );
        }
 private void Cliente_Click(object sender, EventArgs e)
 {
     if (formCliente == null || formCliente.IsDisposed)
     {
         formCliente = new CadastroCliente();
         formCliente.MdiParent = this;
     }
     if (formCliente.Visible)
     {
         formCliente.BringToFront();
     }
     else
     {
         formCliente.Show();
         formCliente.Update();
     }
 }