コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }