public ManageSavestatePage() { InitializeComponent(); #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } 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; }
public ExportSelectionPage() { InitializeComponent(); #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } if (backupMedium == "onedrive") { 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."); } } if (App.IsPremium) { ZipCheckBox.IsChecked = true; } BuildLocalizedApplicationBar1(); }
// Constructor public SDCardImportPage() { InitializeComponent(); //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif // Initialize the collection for routes. Routes = new ObservableCollection <ExternalStorageFile>(); this.skydriveStack = new List <List <SDCardListItem> >(); this.skydriveStack.Add(new List <SDCardListItem>()); // Enable data binding to the page itself. this.DataContext = this; }
public SkyDriveImportPage() { InitializeComponent(); #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } this.labelHeight = this.statusLabel.Height; 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.skydriveStack = new List <List <SkyDriveListItem> >(); this.skydriveStack.Add(new List <SkyDriveListItem>()); this.skydriveStack[0].Add(new SkyDriveListItem() { Name = "Root", SkyDriveID = "me/skydrive", Type = SkyDriveItemType.Folder, ParentID = "" }); this.currentFolderBox.Text = this.skydriveStack[0][0].Name; }
public ManageSavestatePage() { InitializeComponent(); //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } 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; }
public BackupPage() { InitializeComponent(); #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } if (backupMedium == "onedrive") { 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 SettingsPage() { InitializeComponent(); #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); LayoutRoot.Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 1); } //RSACryptoServiceProvider newrsa = new RSACryptoServiceProvider( //set frameskip option frameSkipPicker.ItemsSource = frameskiplist; //powerFrameSkipPicker.ItemsSource = frameskiplist2; turboFrameSkipPicker.ItemsSource = frameskiplist2; aspectRatioPicker.ItemsSource = aspectRatioList; orientationPicker.ItemsSource = orientationList; ReadSettings(); }
public MotionMappingPage() { InitializeComponent(); #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } ApplicationBar.BackgroundColor = (Color)App.Current.Resources["CustomChromeColor"]; ApplicationBar.ForegroundColor = (Color)App.Current.Resources["CustomForegroundColor"]; Leftbtn.ItemsSource = appFunctionList; Rightbtn.ItemsSource = appFunctionList; Upbtn.ItemsSource = appFunctionList; Downbtn.ItemsSource = appFunctionList; Leftbtn.SelectedIndex = (int)Math.Round(Math.Log(EmulatorSettings.Current.MotionLeft, 2)); Rightbtn.SelectedIndex = (int)Math.Round(Math.Log(EmulatorSettings.Current.MotionRight, 2)); Upbtn.SelectedIndex = (int)Math.Round(Math.Log(EmulatorSettings.Current.MotionUp, 2)); Downbtn.SelectedIndex = (int)Math.Round(Math.Log(EmulatorSettings.Current.MotionDown, 2)); this.horizontalDeadzoneSlider.Value = EmulatorSettings.Current.MotionDeadzoneH; this.verticalDeadzoneSlider.Value = EmulatorSettings.Current.MotionDeadzoneV; this.adaptOrientationSwitch.IsChecked = EmulatorSettings.Current.MotionAdaptOrientation; }
public ImportPage() { InitializeComponent(); //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); LayoutRoot.Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } }
public AboutPage() { InitializeComponent(); if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { //create ad control AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } tblkVersion.Text = AppResources.AboutVersion + ": " + System.Reflection.Assembly.GetExecutingAssembly() .FullName.Split('=')[1].Split(',')[0]; }
public CheatPage() { InitializeComponent(); //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); LayoutRoot.Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 1); } this.CreateAppBar(); }
public ImportPage() { InitializeComponent(); //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); LayoutRoot.Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } #if GBC this.titleLabel.Text = AppResources.ApplicationTitle2; #endif }
const uint ERR_NOT_ADVERTISING = 0x8000000E; // You are currently not advertising your presence using PeerFinder.Start() public FindPeersPage() { InitializeComponent(); //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 4); } #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif }
public AutoBackupPage() { InitializeComponent(); //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif NBackupsPicker.ItemsSource = NBackupList; backupTypePicker.SelectedIndex = App.metroSettings.AutoBackupMode; if (App.metroSettings.AutoBackupMode == 0) { NBackupsPicker.Visibility = System.Windows.Visibility.Collapsed; } else { NBackupsPicker.Visibility = System.Windows.Visibility.Visible; } NBackupsPicker.SelectedIndex = App.metroSettings.NRotatingBackup - 1; backupIngameSaveCheck.IsChecked = App.metroSettings.BackupIngameSave; backupLastManualSLotCheck.IsChecked = App.metroSettings.BackupManualSave; backupAutoSLotCheck.IsChecked = App.metroSettings.BackupAutoSave; backupOnlyWifiCheck.IsChecked = App.metroSettings.BackupOnlyWifi; this.Loaded += (o, e) => { initdone = true; }; }
public AboutPage() { InitializeComponent(); //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } tblkVersion.Text = AppResources.AboutVersion + ": " + System.Reflection.Assembly.GetExecutingAssembly() .FullName.Split('=')[1].Split(',')[0]; #if GBC tblkTitle.Text = AppResources.ApplicationTitle2; SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif }
public AutoBackupPage() { InitializeComponent(); //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } NBackupsPicker.ItemsSource = NBackupList; backupTypePicker.SelectedIndex = App.metroSettings.AutoBackupMode; if (App.metroSettings.AutoBackupMode == 0) { NBackupsPicker.Visibility = System.Windows.Visibility.Collapsed; } else { NBackupsPicker.Visibility = System.Windows.Visibility.Visible; } NBackupsPicker.SelectedIndex = App.metroSettings.NRotatingBackup - 1; backupIngameSaveCheck.IsChecked = App.metroSettings.BackupIngameSave; backupLastManualSLotCheck.IsChecked = App.metroSettings.BackupManualSave; backupAutoSLotCheck.IsChecked = App.metroSettings.BackupAutoSave; backupOnlyWifiCheck.IsChecked = App.metroSettings.BackupOnlyWifi; this.Loaded += (o, e) => { initdone = true; }; }
// Constructor public CloudSixImportPage() { InitializeComponent(); //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif // Initialize the collection for routes. skydriveStack = new List <ImportFileItem>(); }
public PreLinkPage() { InitializeComponent(); //create ad control if (App.HasAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } #if GBC SystemTray.GetProgressIndicator(this).Text = AppResources.ApplicationTitle2; #endif romList = ROMDatabase.Current.GetROMList(); this.firstGamePicker.ItemsSource = romList; this.secondGamePicker.ItemsSource = romList; }
public SettingsPage() { InitializeComponent(); //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); LayoutRoot.Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 1); } //RSACryptoServiceProvider newrsa = new RSACryptoServiceProvider( //set frameskip option frameSkipPicker.ItemsSource = frameskiplist; //powerFrameSkipPicker.ItemsSource = frameskiplist2; turboFrameSkipPicker.ItemsSource = frameskiplist2; orientationPicker.ItemsSource = orientationList; ReadSettings(); }
// Constructor public SDCardImportPage() { InitializeComponent(); //create ad control if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds) { AdControl adControl = new AdControl(); ((Grid)(LayoutRoot.Children[0])).Children.Add(adControl); adControl.SetValue(Grid.RowProperty, 2); } // Initialize the collection for routes. Routes = new ObservableCollection <ExternalStorageFile>(); this.skydriveStack = new List <List <SDCardListItem> >(); this.skydriveStack.Add(new List <SDCardListItem>()); // Enable data binding to the page itself. this.DataContext = this; }