AGS.Editor.Components.TranslationsComponent.ProjectTree_OnAfterLabelEdit C# (CSharp) Method

ProjectTree_OnAfterLabelEdit() private method

private ProjectTree_OnAfterLabelEdit ( string commandID, ProjectTreeItem treeItem ) : void
commandID string
treeItem ProjectTreeItem
return void
        private void ProjectTree_OnAfterLabelEdit(string commandID, ProjectTreeItem treeItem)
        {
            if (commandID.StartsWith("Trl"))
            {
                Translation translation = (Translation)treeItem.LabelTextDataSource;
                _oldNameBeforeRename = treeItem.LabelTextBeforeLabelEdit;
                if (translation.Name != _oldNameBeforeRename)
                {
                    _itemRightClicked = translation;
                    _timer.Start();
                }
            }
        }