Beispiel #1
0
 private void FormOpen(FrmMatricula obj)
 {
     if (ParentForm != null && ParentForm.GetType() == typeof(FrmPrincipal))
     {
         ((FrmPrincipal)ParentForm).OpenForm(obj, "Cadastro de Matrículas");
     }
     Close();
 }
Beispiel #2
0
 private void FormClose()
 {
     if (ParentForm != null && ParentForm.GetType() == typeof(FrmPrincipal))
     {
         FrmMatricula frmMatricula = new FrmMatricula();
         if (_objAluno != null)
         {
             frmMatricula = new FrmMatricula(_objAluno);
         }
         if (_objTurma != null)
         {
             frmMatricula = new FrmMatricula(_objTurma);
         }
         ((FrmPrincipal)ParentForm).OpenForm(frmMatricula, "Cadastro do Matrículas");
     }
     Close();
 }