public void Closing(object param = null) { log.Info("Main window closing: stopping background timers and saving settings"); Settings.Closing(); MyMods.Closing(); Trovesaurus.Closing(); }
public void LoadData(object param = null) { try { // Load data for each of the workspaces Settings.LoadData(); Trovesaurus.LoadData(); GetMoreMods.LoadData(); MyMods.LoadData(); ModderTools.LoadData(); _dataLoaded = true; // Process saved Trove URI to handle case when Trove URI link clicked before application was fully loaded if (!string.IsNullOrEmpty(_savedTroveUri)) { ProcessTroveUri(_savedTroveUri); } // Process a URI from the command line args if there are any var args = ApplicationDetails.GetTroveUri(); if (!string.IsNullOrEmpty(args)) { ProcessTroveUri(args); } } catch (Exception ex) { log.Error("Error loading main window data", ex); } finally { _dataLoaded = true; } }
public void CheckForUpdates(object param = null) { try { Trovesaurus.CheckForUpdates(true); } catch (Exception ex) { log.Error("Error checking for updates", ex); } }