private void copySetMetaNodeToolStripMenuItem_Click(object sender, EventArgs e) { if (listViewStateEntries.SelectedItems.Count > 0) { StateGraphDocument.StateGraphEntry entry = (StateGraphDocument.StateGraphEntry)listViewStateEntries.SelectedItems[0].Tag; SetMetaStateNodeConfig config = new SetMetaStateNodeConfig(); config.MetaName = textBoxMetaName.Text; config.Value = entry.StateName; config.ResetStateOnMatch = true; LibraryNodeConfig libNode = new LibraryNodeConfig(typeof(SetMetaStateNode), String.Format(Properties.Resources.StateGraphDocumentControl_SetStateName, entry.StateName), config); libNode.Label = String.Format(Properties.Resources.StateGraphDocumentControl_SetStateName, entry.StateName); NetGraphDocumentControl.CopyNode(libNode); } }