private void UpdateContentFromNode(TreeNode node)
{
_overrideNormalNode.TreeNode = node;
if (node != null)
{
// Get information from the node
_contentValues.ShortText = node.Text;
_contentValues.LongText = string.Empty;
_contentValues.Image = null;
_contentValues.ImageTransparentColor = Color.Empty;
KryptonTreeNode kryptonNode = node as KryptonTreeNode;
if (kryptonNode != null)
{
// Get long text from the Krypton extension
_contentValues.LongText = kryptonNode.LongText;
}
}
else
{
// Get the text string for the item
_contentValues.ShortText = "A";
_contentValues.LongText = "A";
_contentValues.Image = null;
_contentValues.ImageTransparentColor = Color.Empty;
}
}