private void DidFinishFullSync(object notificaction) { this.Build(); UPMultipleOrganizerManager manager = UPMultipleOrganizerManager.CurrentOrganizerManager; foreach (UPOrganizerState state in manager.NavControllerContextDictionary.Values) { manager.CloseNavController(state.NavControllerId); } manager.AddRootNavController(); }
/// <summary> /// Performs the synchronize conflicts. /// </summary> public void PerformSyncConflicts() { UPMultipleOrganizerManager multiManager = UPMultipleOrganizerManager.CurrentOrganizerManager; if (this.lastSyncConflictOrganizer != UPMultipleOrganizerManager.UPORGANIZER_MANAGER_NO_NAV_CONTROLLER && multiManager.HasNavControllerWithId(this.lastSyncConflictOrganizer)) { multiManager.SwitchedToNavController(this.lastSyncConflictOrganizer); } else { UPSyncConflictsOrganizerModelController syncConflictsOrganizerModelController = new UPSyncConflictsOrganizerModelController(); this.lastSyncConflictOrganizer = this.ModelControllerDelegate.TransitionToContentModelController(syncConflictsOrganizerModelController, MultiOrganizerMode.AlwaysNewWorkingOrganizer); } }
/// <summary> /// Performs the full synchronize. /// </summary> public async void PerformFullSync() { UPMultipleOrganizerManager multiManager = UPMultipleOrganizerManager.CurrentOrganizerManager; if (multiManager.HasEditingNavController) { var result = await SimpleIoc.Default.GetInstance <IDialogService>().ShowMessage( LocalizedString.TextCloseOpenEditOrganizer, LocalizedString.TextEditOrganizerWillBeClosed, LocalizedString.TextOk, LocalizedString.TextSwitchToEditOrganizer, null); if (!result) { return; } var navControllerKey = multiManager.EditingNavControllerId; multiManager.SwitchedToNavController(navControllerKey); } this.PerformFullSyncWithLanguage(null); }