Exemplo n.º 1
0
 private GlobalDataStore()
 {
     single      = this;
     created     = true;
     mDesignMode = false;
     appPath     = string.Empty;
 }
Exemplo n.º 2
0
 public static GlobalDataStore GetInstance()
 {
     if (!created)
     {
         single  = new GlobalDataStore();
         created = true;
     }
     return(single);
 }
Exemplo n.º 3
0
        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);
        }