示例#1
0
        public void InitializeDefaultValues()
        {
            if (BuildSettings == null)
            {
                BuildSettings = new ProjectBuildSettings();
            }

            BuildSettings.InitializeDefaults();

            if (EditorSettings == null)
            {
                EditorSettings = new EditorSettings();
            }

            EditorSettings.InitializeDefaults();

            if (LddSettings == null)
            {
                LddSettings = new LddSettings();
            }

            LddSettings.InitializeDefaults();

            if (DisplaySettings == null)
            {
                DisplaySettings = new DisplaySettings();
            }

            DisplaySettings.InitializeDefaults();
        }
示例#2
0
 public AppSettings()
 {
     RecentProjectFiles = new List <RecentFileInfo>();
     BuildSettings      = new ProjectBuildSettings();
     EditorSettings     = new EditorSettings();
     LddSettings        = new LddSettings();
     DisplaySettings    = new DisplaySettings();
     OpenedProjects     = new List <RecentFileInfo>();
 }
示例#3
0
        //[JsonProperty("Display")]
        //public DisplaySettings DisplaySettings { get; set; }

        public AppSettings()
        {
            RecentProjectFiles = new List <RecentFileInfo>();
            BuildSettings      = new ProjectBuildSettings();
            //ViewportSettings = new ViewportDisplaySettings()
            //{
            //    PartRenderMode = Rendering.MeshRenderMode.SolidWireframe,
            //    ShowPartModels = true
            //};
        }
示例#4
0
        public void InitializeDefaultValues()
        {
            if (string.IsNullOrEmpty(LddApplicationDataPath) ||
                string.IsNullOrEmpty(LddProgramFilesPath))
            {
                var installedEnv = LDD.LDDEnvironment.InstalledEnvironment;
                LddApplicationDataPath = installedEnv?.ApplicationDataPath ?? string.Empty;
                LddProgramFilesPath    = installedEnv?.ProgramFilesPath ?? string.Empty;
            }

            if (BuildSettings == null)
            {
                BuildSettings = new ProjectBuildSettings();
            }
            BuildSettings.InitializeDefaults();
        }