Exemplo n.º 1
0
        private void OnNewProject()
        {
            NewProject newProject = new NewProject();

            newProject.SetProjectLocation(App.Controller.Config.GetDesktopPath());
            newProject.ShowDialog(this);
            if (newProject.Valid)
            {
                Directory.CreateDirectory(newProject.GetProjectLocation());

                App.Controller.UserConfig.NewProjectPath = newProject.GetProjectLocation();
                App.Controller.CreateNewProject(newProject.GetFilename(), newProject.GetName());
                App.Controller.SaveProject();
            }
        }
Exemplo n.º 2
0
        private void OnNewProject()
        {
            NewProject newProject = new NewProject();
            newProject.SetProjectLocation(App.Controller.Config.GetDesktopPath());
            newProject.ShowDialog(this);
            if (newProject.Valid)
            {
                Directory.CreateDirectory(newProject.GetProjectLocation());

                App.Controller.UserConfig.NewProjectPath = newProject.GetProjectLocation();
                App.Controller.CreateNewProject(newProject.GetFilename(), newProject.GetName());
                App.Controller.SaveProject();
            }
        }