Beispiel #1
0
        private void New_Project(object sender, EventArgs e)
        {
            ProjectForm projectForm = new ProjectForm();

            if (projectForm.ShowDialog() == DialogResult.OK)
            {
                projectForm.ReturnValue.Save();
                OpenProject(projectForm.ReturnValue);
            }
            projectForm.Dispose();
        }
Beispiel #2
0
        private void projectProperties_Click(object sender, EventArgs e)
        {
            ProjectForm projectForm = new ProjectForm(CurrentProject);

            if (projectForm.ShowDialog() == DialogResult.OK)
            {
                if (CurrentProject.Encryted)
                {
                    unlocked = MatchResult.Locked;
                    CurrentProject.Save();
                }
                UpdateRibbonMenu(true);
            }
            projectForm.Dispose();
        }