/// <summary>
 /// Saves the changes made to the options.
 /// </summary>
 public void SaveToXml()
 {
     try
     {
         optionsXmlAccess.SaveOptions(OptionModel);
         IsChanged = true;
     }
     catch (Exception e)
     {
         errorLogViewModel.LogError(e);
     }
 }
Exemple #2
0
        /// <summary>
        /// Loads the highscores items from the xml file in a raw format.
        /// </summary>
        /// <returns>The raw xml items or null.</returns>
        public object LoadRawScores()
        {
            try
            {
                return(scoreXmlAccess.LoadRawScores());
            }
            catch (Exception e)
            {
                errorLogViewModel.LogError(e);

                return(null);
            }
        }