Пример #1
0
        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);
        }
Пример #2
0
        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);
        }