Index: Core/Common/src/Core.Common.Base/Plugin/DataItemInfo.cs =================================================================== diff -u -r905cfbd0916a140115717f06eb3755d49420ef21 -rb8686fd8e20f2df910d5e291d9dcff0ed587cece --- Core/Common/src/Core.Common.Base/Plugin/DataItemInfo.cs (.../DataItemInfo.cs) (revision 905cfbd0916a140115717f06eb3755d49420ef21) +++ Core/Common/src/Core.Common.Base/Plugin/DataItemInfo.cs (.../DataItemInfo.cs) (revision b8686fd8e20f2df910d5e291d9dcff0ed587cece) @@ -38,12 +38,12 @@ public Image Image { get; set; } /// - /// Gets or set a method for determining whether or not the data item information is relevant for the proposed owner. + /// Gets or sets a method for determining whether or not the data item information is relevant for the proposed owner. /// public Func AdditionalOwnerCheck { get; set; } /// - /// Gets or set a function for creating the data. + /// Gets or sets a function for creating the data. /// The object parameter holds the proposed owner of the data to create. /// public Func CreateData { get; set; } @@ -91,12 +91,12 @@ public Image Image { get; set; } /// - /// Gets or set a method for determining whether or not the data item information is relevant for the proposed owner. + /// Gets or sets a method for determining whether or not the data item information is relevant for the proposed owner. /// public Func AdditionalOwnerCheck { get; set; } /// - /// Gets or set a function for creating the data. + /// Gets or sets a function for creating the data. /// The object parameter holds the proposed owner of the data to create. /// public Func CreateData { get; set; } Index: Core/Common/src/Core.Common.Controls.TreeView/TreeNodeInfo.cs =================================================================== diff -u -r905cfbd0916a140115717f06eb3755d49420ef21 -rb8686fd8e20f2df910d5e291d9dcff0ed587cece --- Core/Common/src/Core.Common.Controls.TreeView/TreeNodeInfo.cs (.../TreeNodeInfo.cs) (revision 905cfbd0916a140115717f06eb3755d49420ef21) +++ Core/Common/src/Core.Common.Controls.TreeView/TreeNodeInfo.cs (.../TreeNodeInfo.cs) (revision b8686fd8e20f2df910d5e291d9dcff0ed587cece) @@ -13,7 +13,7 @@ /// public TreeNodeInfo() { - Text = () => ""; + Text = tag => ""; } /// @@ -22,14 +22,16 @@ public Type TagType { get; set; } /// - /// Gets or sets a for obtaining the tree node text. + /// Gets or sets a function for obtaining the tree node text. + /// The object parameter holds the wrapped data of the tree node. /// - public Func Text { get; set; } + public Func Text { get; set; } /// - /// Gets or sets a for obtaining the tree node image. + /// Gets or sets a function for obtaining the tree node image. + /// The object parameter holds the wrapped data of the tree node. /// - public Func Image { get; set; } + public Func Image { get; set; } } /// @@ -43,7 +45,7 @@ /// public TreeNodeInfo() { - Text = () => ""; + Text = tag => ""; } /// @@ -58,14 +60,16 @@ } /// - /// Gets or sets a for obtaining the tree node text. + /// Gets or sets a function for obtaining the tree node text. + /// The parameter holds the wrapped data of the tree node. /// - public Func Text { get; set; } + public Func Text { get; set; } /// - /// Gets or sets a for obtaining the tree node image. + /// Gets or sets a function for obtaining the tree node image. + /// The parameter holds the wrapped data of the tree node. /// - public Func Image { get; set; } + public Func Image { get; set; } /// /// This operator converts a into a . @@ -77,8 +81,8 @@ return new TreeNodeInfo { TagType = treeNodeInfo.TagType, - Text = treeNodeInfo.Text, - Image = treeNodeInfo.Image + Text = tag => treeNodeInfo.Text((TData) tag), + Image = tag => treeNodeInfo.Image((TData) tag) }; } }