A
Alhambra Eidos Desarrollo
Hi all,
I have two projects, and circle reference with them...
Cliente.Util.vbproj
For Each formularioAbierto As Form In
System.Windows.Forms.Application.OpenForms
If
formularioAbierto.GetType().Equals(GetType(GRUPOBACKUP.Administrador.frmMain)) Then
Dim frmMain As GRUPOBACKUP.Administrador.frmMain
frmMain = CType(formularioAbierto, GRUPOBACKUP.Administrador.frmMain)
frmMain.Conectado = False
End If
Next
Administrador.vbproj
Contains GRUPOBACKUP.Administrador.frmMain class
and use classes of Cliente.util.vbproj
Can I use Reflection for avoid circle reference for this code??
For Each formularioAbierto As Form In
System.Windows.Forms.Application.OpenForms
If
formularioAbierto.GetType().Equals(GetType(GRUPOBACKUP.Administrador.frmMain)) Then
Dim frmMain As GRUPOBACKUP.Administrador.frmMain
frmMain = CType(formularioAbierto, GRUPOBACKUP.Administrador.frmMain)
frmMain.Conectado = False
End If
Next
Thanks in advanced.
I have two projects, and circle reference with them...
Cliente.Util.vbproj
For Each formularioAbierto As Form In
System.Windows.Forms.Application.OpenForms
If
formularioAbierto.GetType().Equals(GetType(GRUPOBACKUP.Administrador.frmMain)) Then
Dim frmMain As GRUPOBACKUP.Administrador.frmMain
frmMain = CType(formularioAbierto, GRUPOBACKUP.Administrador.frmMain)
frmMain.Conectado = False
End If
Next
Administrador.vbproj
Contains GRUPOBACKUP.Administrador.frmMain class
and use classes of Cliente.util.vbproj
Can I use Reflection for avoid circle reference for this code??
For Each formularioAbierto As Form In
System.Windows.Forms.Application.OpenForms
If
formularioAbierto.GetType().Equals(GetType(GRUPOBACKUP.Administrador.frmMain)) Then
Dim frmMain As GRUPOBACKUP.Administrador.frmMain
frmMain = CType(formularioAbierto, GRUPOBACKUP.Administrador.frmMain)
frmMain.Conectado = False
End If
Next
Thanks in advanced.