示例#1
0
 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);
 }
示例#2
0
        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);
        }