private void saveToolStripMenuItem_Click(object sender, EventArgs e) { if (settings.Path == null) { saveAsToolStripMenuItem_Click(sender, e); return; } XML_IO.Write(settings.Path, settings); XML_IO.Write(lastFile, settings); }
private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) { string path = IERSInterface.FileFieldAndBrowser.PopupSaveFileDialog("Save", this, _recentSettings, "XML|*.xml", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)); if (path == null) { return; } settings.Path = path; XML_IO.Write(path, settings); XML_IO.Write(lastFile, settings); }