// TriggerDirty = makes project clean (ProjectInfo.Dirty = false) public void ManualSaveProject(string path, bool TriggerDirty) { ProjectIO.SaveTree(tvContent, ProjectInfo.ProjectPath + "tree.TREEINFO"); if (File.Exists(path)) { File.Delete(path); } ZipFile.CreateFromDirectory(ProjectInfo.ProjectPath, path); if (TriggerDirty == true) { ProjectInfo.Dirty = false; } }
private void saveProjectToolStripMenuItem_Click(object sender, EventArgs e) { ProjectIO.SaveTree(tvContent, ProjectInfo.ProjectPath + "tree.TREEINFO"); SaveFileDialog save = new SaveFileDialog(); save.Filter = "BrainStormer Project File (*.bpf)|*.bpf|All Files (*.*)|*.*"; if (save.ShowDialog() == DialogResult.OK) { if (File.Exists(save.FileName)) { File.Delete(save.FileName); } ZipFile.CreateFromDirectory(ProjectInfo.ProjectPath, save.FileName); } ProjectInfo.Dirty = false; recentProjects.Add(save.FileName); }