public ExperimentNode(string expName) { Name = expName; Type = "Experiment"; IconPath = Util.IconRegistry[Type]; HoverText = string.Format("This is a {0} node", Type); ContextMenuOptions.Add("Item1", new ActionCommand(Item1Execute)); ContextMenuOptions.Add("Item2", new ActionCommand(Item2Execute)); }