private TreeNode CreateNode(DatabaseItem item, string key) { var tmpNode = new TreeNode(key); tmpNode.ImageIndex = 3; tmpNode.SelectedImageIndex = 3; tmpNode.ContextMenu = GetKeyNodeMenu(tmpNode); tmpNode.Tag = new KeyItem(item, key); return tmpNode; }
public KeyItem(DatabaseItem item, string key) : base(item, item.DbName, item.DbInfo) { Key = key; }