void Save(string path)
 {
     _file = path;
     Properties.Settings.Default.LastProject = _file;
     Properties.Settings.Default.Save();
     ParseProject();
     Sjson.Save(JsonSerializer.Save(_project), _file);
     MarkSave();
 }
Ejemplo n.º 2
0
        private void saveProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_file == null)
            {
                SaveFileDialog sfd = new SaveFileDialog();
                sfd.Filter = _filter;
                if (sfd.ShowDialog() == DialogResult.OK)
                {
                    _file = sfd.FileName;
                }
            }

            if (_file == null)
            {
                return;
            }

            Properties.Settings.Default.LastProject = _file;
            ParseProject();
            Sjson.Save(JsonSerializer.Save(_project), _file);
            MarkSave();
        }