Created
August 2, 2017 14:38
-
-
Save jofese/44d6059d4f142bb8d373ed1db841f5e3 to your computer and use it in GitHub Desktop.
patron singleton c#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static UIMedicos_Convenios frmConvenios; | |
public static UIMedicos_Convenios CreateInstante(System.Windows.Forms.Form FormParent) | |
{ | |
if (frmConvenios == null || frmConvenios.IsDisposed) | |
{ | |
frmConvenios = new UIMedicos_Convenios(); | |
} | |
frmConvenios.BringToFront(); | |
frmConvenios.MdiParent = FormParent; | |
frmConvenios.Show(); | |
return frmConvenios; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment