private void SaveHotkeys() { XMLSettings.WriteXML(new XMLSettings.Settings() { SoundHotkeys = soundHotkeys.ToArray() }, xmlLocation); XMLSettings.soundboardSettings.LastXMLFile = xmlLocation; saveSettings(); MessageBox.Show("Hotkeys saved"); }
private void btnSave_Click(object sender, EventArgs e) { if (xmlLoc == "" || !File.Exists(xmlLoc)) { xmlLoc = Helper.userGetXMLLoc(); } if (xmlLoc != "") { XMLSettings.WriteXML(new XMLSettings.Settings() { KeysSounds = keysSounds.ToArray() }, xmlLoc); MessageBox.Show("Saved"); } }
private void btnSaveAs_Click(object sender, EventArgs e) { string last = xmlLoc; xmlLoc = Helper.userGetXMLLoc(); if (xmlLoc == "") { xmlLoc = last; } else if (last != xmlLoc) { XMLSettings.WriteXML(new XMLSettings.Settings() { KeysSounds = keysSounds.ToArray() }, xmlLoc); MessageBox.Show("Saved"); } }