public BackupPage() { InitializeComponent(); this.session = PhoneApplicationService.Current.State["parameter"] as LiveConnectSession; PhoneApplicationService.Current.State.Remove("parameter"); if (this.session == null) { throw new ArgumentException("Parameter passed to SkyDriveImportPage must be a LiveConnectSession."); } this.db = ROMDatabase.Current; this.romList.ItemsSource = db.GetROMList(); }
public RenamePage() { InitializeComponent(); object tmpObject; PhoneApplicationService.Current.State.TryGetValue("parameter", out tmpObject); PhoneApplicationService.Current.State.Remove("parameter"); this.entry = tmpObject as Database.ROMDBEntry; PhoneApplicationService.Current.State.TryGetValue("parameter2", out tmpObject); PhoneApplicationService.Current.State.Remove("parameter2"); this.db = tmpObject as Database.ROMDatabase; this.nameBox.Text = this.entry.DisplayName; #if GBC appnameLabel.Text = AppResources.ApplicationTitle2; #endif }
public RenamePage() { InitializeComponent(); object tmpObject; PhoneApplicationService.Current.State.TryGetValue("parameter", out tmpObject); PhoneApplicationService.Current.State.Remove("parameter"); this.entry = tmpObject as Database.ROMDBEntry; PhoneApplicationService.Current.State.TryGetValue("parameter2", out tmpObject); PhoneApplicationService.Current.State.Remove("parameter2"); this.db = tmpObject as Database.ROMDatabase; this.nameBox.Text = this.entry.DisplayName; #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif }
public ManageSavestatePage() { InitializeComponent(); db = ROMDatabase.Current; object tmp; PhoneApplicationService.Current.State.TryGetValue("parameter", out tmp); this.romEntry = tmp as ROMDBEntry; PhoneApplicationService.Current.State.Remove("parameter"); titleLabel.Text = this.romEntry.DisplayName; CreateAppBar(); var savestates = db.GetSavestatesForROM(this.romEntry); this.stateList.ItemsSource = savestates; }
private async Task Initialize() { createFolderTask = FileHandler.CreateInitialFolderStructure(); copyDemoTask = this.CopyDemoROM(); await createFolderTask; await copyDemoTask; this.db = ROMDatabase.Current; if (db.Initialize()) { await FileHandler.FillDatabaseAsync(); } this.db.Commit += () => { this.RefreshROMList(); }; this.RefreshROMList(); }