Esempio n. 1
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();
        }
Esempio n. 2
0
        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();
        }