Beispiel #1
0
 internal void Save(string filePath = "")
 {
     if (filePath == "")
     {
         filePath = Filename;
     }
     XmlSerialiationDeserilation.SaveObjectToXML <SplitsToEvents>(this, filePath);
 }
 internal void SaveConfig()
 {
     try
     {
         XmlSerialiationDeserilation.SaveObjectToXML(_connectionData, Path.Combine(USER_DIRECTORY, USER_FILE));
         MessageBox.Show("Setting were stored in: %APPDATA%\\LiveSplit.TwitchPredictions to prevent accidently sharing login information in case of sharing layouts.", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception e)
     {
         MessageBox.Show("Failed to store config to a file: " + e, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }