Exemple #1
0
 public TreeViewSettingsMapping(string storageKey,
                                string defaultValue, TreeView treeView)
     : base(storageKey, defaultValue)
 {
     this.TreeView         = treeView;
     this.Model            = new TreeModel <string>("");
     this.TreeModelMapping = new TreeModelSettingsMapping(
         storageKey, defaultValue, this.Model);
 }
        public EditableTreeViewSettingsMapping(string storageKey,
                                               string defaultValue, EditableTreeView treeView,
                                               IEnumerable <EditableTreeViewLevelRule> rules)
            : base(storageKey, defaultValue)
        {
            this.TreeView = treeView;
            this.Rules    = rules;

            this.Model            = new TreeModel <string>("");
            this.TreeModelMapping = new TreeModelSettingsMapping(
                storageKey, defaultValue, this.Model);
        }