Beispiel #1
0
        // 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;
            }
        }
Beispiel #2
0
        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);
        }