public override void Initialize() { DirectorySeparatorChar = '\\'; File = new Storage.MetroFile(); ApplicationPath = Windows.ApplicationModel.Package.Current.InstalledLocation.Path + "\\Assets\\"; DataPath = Windows.Storage.ApplicationData.Current.LocalFolder.Path + "\\"; Thread = new Threading.MetroThread() { Dispatcher = _dispatcher }; Log = new Logging.BasicLogger(Path.Combine(SessionDataPath, "Log")); Reflector = new BasicReflector(); Resources = new Resources.BasicResources(); Platform = MobilePlatform.Windows; }
public override void Initialize() { DirectorySeparatorChar = Path.DirectorySeparatorChar; File = new Storage.BasicFile(); ApplicationPath = File.DirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + Path.DirectorySeparatorChar; DataPath = System.Configuration.ConfigurationManager.AppSettings.AllKeys.Contains("dataPath") ? System.Configuration.ConfigurationManager.AppSettings.Get("dataPath") : "%LOCALAPPDATA%\\ITRMobility"; DataPath = Environment.ExpandEnvironmentVariables(DataPath); Thread = new MonoCross.Utilities.Threading.TaskThread { UiSynchronizationContext = System.Threading.SynchronizationContext.Current }; Encryption = new Encryption.AesEncryption(); Log = new Logging.BasicLogger(Path.Combine(SessionDataPath, "Log")); Resources = new Resources.WindowsResources(); Reflector = new BasicReflector(); Platform = MobilePlatform.Windows; }