示例#1
0
        private void SaveHotkeys()
        {
            XMLSettings.WriteXML(new XMLSettings.Settings()
            {
                SoundHotkeys = soundHotkeys.ToArray()
            }, xmlLocation);

            XMLSettings.soundboardSettings.LastXMLFile = xmlLocation;
            saveSettings();

            MessageBox.Show("Hotkeys saved");
        }
示例#2
0
        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");
            }
        }
示例#3
0
        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");
            }
        }