private GlobalDataStore() { single = this; created = true; mDesignMode = false; appPath = string.Empty; }
public static GlobalDataStore GetInstance() { if (!created) { single = new GlobalDataStore(); created = true; } return(single); }
public static string GetAppPath() { GlobalDataStore theStore; theStore = GlobalDataStore.GetInstance(); // construct if not constructed... if (appPath == string.Empty) { appPath = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); appPath += @"\"; } return(appPath); }