public static void CreateMain() { if(_main == null) { string assemblyName = ConfigurationManager.AppSettings["EnumerationsDll"]; string namespaceName = ConfigurationManager.AppSettings["EnumerationsNamespace"]; _main = new MainViewModel( new SkulltagConfigParser( new SkulltagConfigParserMetaData( Assembly.Load(assemblyName), namespaceName ) ) ); } }
public static void ClearMain() { _main.Cleanup(); _main = null; }