/// <summary> /// Checks for mod updates. /// </summary> /// <returns>Message</returns> /// <param name="p_booOverrideCategorySetup">Whether to just check for mods missing the Nexus Category.</param> public void CheckCategoriesUpdates() { string strMessage = "Are you sure you want to reset to the Nexus site default categories?"; strMessage += Environment.NewLine + Environment.NewLine + "Note: The category list will be updated from the Nexus and your downloaded mods will be automatically reassigned to the Nexus categories."; DialogResult Result = MessageBox.Show(strMessage, "Category reset", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (Result == DialogResult.Yes) { if (!ModRepository.IsOffline) { UpdatingCategories(this, new EventArgs <IBackgroundTask>(ModManager.UpdateCategories(CategoryManager, ProfileManager, ConfirmUpdaterAction))); } else { ModManager.Login(); ModManager.AsyncUpdateCategories(CategoryManager, ProfileManager, ConfirmUpdaterAction); } } }