Exemplo n.º 1
0
        private void btnPesquisa_Click(object sender, EventArgs e)
        {
            UIPesquisaForm _frmPesquisaForm = new UIPesquisaForm();

            if (_frmPesquisaForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _op = Operacoes.pesquisando;
                ValidaBotoes();
                _objModulo         = new mModulos();
                _objModulo         = _objBoMod.GetModulo(_frmPesquisaForm.IdMod);
                edtID.Text         = _objModulo.idModulo.ToString();
                edtModulo.Text     = _objModulo.xNome;
                edtNamesPrinc.Text = _objModulo.xNameSpaceCamada;
                formulariosBindingSource.DataSource = _objModulo.Formularios;
                gvForms.DataSource = formulariosBindingSource;
            }
        }
Exemplo n.º 2
0
 private void btnPesquisa_Click(object sender, EventArgs e)
 {
     UIPesquisaForm _frmPesquisaForm = new UIPesquisaForm();
     if (_frmPesquisaForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         _op = Operacoes.pesquisando;
         ValidaBotoes();
         _objModulo = new mModulos();
         _objModulo = _objBoMod.GetModulo(_frmPesquisaForm.IdMod);
         edtID.Text = _objModulo.idModulo.ToString();
         edtModulo.Text = _objModulo.xNome;
         edtNamesPrinc.Text = _objModulo.xNameSpaceCamada;
         formulariosBindingSource.DataSource = _objModulo.Formularios;
         gvForms.DataSource = formulariosBindingSource;
     }
 }