示例#1
0
 private void Button1_Click(object sender, System.EventArgs e)
 {
     System.Windows.Forms.Form mdiParent = (System.Windows.Forms.Form) this;
     if (formTeste == null)
     {
         formTeste           = new mdlRelatoriosFaturaProforma.frmRelatoriosFaturaProforma(ref m_cls_tre_tratadorErro, ref m_cls_dba_ConnectionBD, ref mdiParent, m_strEnderecoExecutavel, Int32.Parse(this.txtIdExportador.Text), txtIdCotacao.Text);
         formTeste.MdiParent = this;
         formTeste.Show();
     }
     else
     {
         formTeste.Close();
         formTeste = null;
     }
 }