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;
        }
Exemple #2
0
        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;
        }
Exemple #4
0
        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;
        }
Exemple #6
0
        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();
        }
Exemple #7
0
        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;
        }
Exemple #9
0
 public ImportPage()
 {
     InitializeComponent();
     //create ad control
     if (PhoneDirect3DXamlAppComponent.EmulatorSettings.Current.ShouldShowAds)
     {
         AdControl adControl = new AdControl();
         LayoutRoot.Children.Add(adControl);
         adControl.SetValue(Grid.RowProperty, 2);
     }
 }
Exemple #10
0
 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];
 }
Exemple #11
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();
        }
Exemple #12
0
        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
        }
Exemple #13
0
        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
        }
Exemple #14
0
        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;
            };
        }
Exemple #15
0
        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
        }
Exemple #16
0
        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;
            };
        }
Exemple #17
0
        // 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>();
        }
Exemple #18
0
        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;
        }
Exemple #19
0
        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();
        }
Exemple #20
0
        // 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;
        }