Ejemplo n.º 1
0
 public static frmNewUputnica InstanceWithData(UputnicaDtoEL uputnica, bool newInstance = false)
 {
     if (_instance == null || _instance.IsDisposed)
     {
         _instance = new frmNewUputnica(uputnica);
     }
     else if (newInstance)
     {
         _instance.Dispose();
         _instance = new frmNewUputnica(uputnica);
     }
     return(_instance);
 }
Ejemplo n.º 2
0
 public static frmNewUputnica InstanceWithData(PacijentDtoEL pacijent, bool newInstance = false)
 {
     if (_instance == null || _instance.IsDisposed)
     {
         _instance = new frmNewUputnica(pacijent);
     }
     else if (newInstance)
     {
         _instance.Dispose();
         _instance = new frmNewUputnica(pacijent);
     }
     return(_instance);
 }