Ejemplo n.º 1
0
 public static AssemblyControl GetControl()
 {
     if (instance is AssemblyControl || (instance != null && instance.GetType().IsSubclassOf(typeof(AssemblyControl))))
     {
         return(instance);
     }
     else
     {
         //Environment.SetEnvironmentVariable("POSHUnityMode", "False");
         instance = new AssemblyControl();
         return(instance);
     }
 }