/// <summary> /// /// </summary> private void RenameNode(Object sender, EventArgs e) { if (tree.SelectedNode is ProjectNode) { string label = tree.SelectedNode.Text; int index = label.IndexOf("(" + project.LanguageDisplayName + ")"); if (index != -1) { tree.SelectedNode.Text = label.Remove(index).Trim(); } } tree.ForceLabelEdit(); }
/// <summary> /// /// </summary> private void RenameNode(Object sender, EventArgs e) { tree.ForceLabelEdit(); }