示例#1
0
文件: View.cs 项目: rgiot/phactory
        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();
            }
        }
示例#2
0
文件: View.cs 项目: rgiot/phactory
        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();
            }
        }