コード例 #1
0
        /// <summary>
        /// Создание проекта
        /// </summary>
        /// <returns></returns>
        public Solution CreateProject()
        {
            if (solution != null)
            {
                CloseSolution();
            }
            Schematix.Dialogs.NewProjectDialog dialog = null;
            if (core.Solution != null)
            {
                dialog = new Schematix.Dialogs.NewProjectDialog(core.Solution.RootFolder, core.Solution);
            }
            else
            {
                dialog = new Schematix.Dialogs.NewProjectDialog();
            }

            if (dialog.ShowDialog() == true)
            {
                core.Solution = dialog.Solution;
                startPagePanel.AddNewRecentProject(core.Solution.Path);
            }
            return(core.Solution);
        }
コード例 #2
0
 private void itemNewProject_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     Schematix.Dialogs.NewProjectDialog dialog = new Schematix.Dialogs.NewProjectDialog(this, SchematixCore.Core.Solution);
     dialog.ShowDialog();
     //HDL_LightCore.Core.Solution = dialog.Solution;
 }