public override void Deserialize(string val) { Console.WriteLine(val); // sets Model TreeModelMapping.Deserialize(val); if (Model == null) { TreeView.Items.Clear(); } else { TreeView.Items.Clear(); TreeView.LoadModelWithRules(Model, Rules); } }
public override void Deserialize(string val) { // XML deserialize into TreeModel<string> // convert the TreeModel<string> to the treeView TreeModelMapping.Deserialize(val); //Console.WriteLine(val); if (Model == null) { TreeView.Items.Clear(); } else { TreeView.Items.Clear(); TreeView.RestoreFromTreeModel(Model); } }