Beispiel #1
0
        private void btCadastroObservacoes_Click(object sender, EventArgs e)
        {
            frmObservacao objfrmObservacao = new frmObservacao();

            Observacao.IDTeste = Convert.ToInt32(txtID.Text);
            //Observacao d = new Observacao();
            objfrmObservacao.ShowDialog();
        }
Beispiel #2
0
 private void mObservacoes_Click(object sender, EventArgs e)
 {
     try
     {
         if (!FormularioExiste("frmObservacao"))
         {
             var formulario = new frmObservacao();
             formulario.MdiParent = this;
             Tela.AbrirFormulario(formulario);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }