Exemple #1
0
        public void Initialize()
        {
            savegameListBox.Items.Add("Loading...");

            savegameSync = SavegameSyncEngine.GetInstance();
            if (!savegameSync.IsLoggedIn())
            {
                throw new InvalidOperationException("The SavegameSyncEngine must be logged in before calling this method.");
            }
        }
        protected async override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            StartOperation();
            savegameSync = SavegameSyncEngine.GetInstance();
            Debug.Assert(savegameSync.IsLoggedIn());
            await UpdateOrphanedSaveList();
            await UpdateMissingEntriesListAsync();

            FinishOperation();
        }
        protected override async void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            cloudGameListBox.Items.Add("Loading...");

            StartOperation();
            savegameSync = SavegameSyncEngine.GetInstance();
            Debug.Assert(savegameSync.IsLoggedIn());
            await UpdateCloudGameList();

            savegameListControl.Initialize();
            FinishOperation();
        }
Exemple #4
0
        protected async override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            localGameListBox.Items.Add("Loading...");

            StartOperation("Logging in...");
            savegameSync = SavegameSyncEngine.GetInstance();
            await savegameSync.Init();

            if (!savegameSync.IsLoggedIn())
            {
                await savegameSync.Login();
            }
            FinishOperation();

            savegameListControl.Initialize();

            StartOperation("Updating game lists...");
            UpdateLocalGameList();
            FinishOperation();
        }