public void Populate(State state) { this.state = state; var newBaseline = new PropertyConfig(); newBaseline.SetDefaultValues(); LoadEditorConfig(newBaseline, BaselineType.Standalone, alwaysOverwrite: true); dictInstalledTree = PropertyTree.PopulatePropertyTree(state.SystemProperties.Concat(state.CustomProperties), InstalledPropertyTree, true); dictSavedTree = PropertyTree.PopulatePropertyTree(state.SavedProperties, SavedPropertyTree, false, ShowIfSavedIsInstalled); }
public void NewEditorProperty(string canonicalName = null) { if (SelectedSavedTreeItem != null) { SelectedSavedTreeItem.IsSelected = false; } var newBaseline = new PropertyConfig(); newBaseline.SetDefaultValues(); if (canonicalName != null) { newBaseline.CanonicalName = canonicalName; } LoadEditorConfig(newBaseline, BaselineType.Standalone); }