StonehearthEditor.EncounterDesignerView.CloneDialogCallback.OnAccept C# (CSharp) Method

OnAccept() public method

public OnAccept ( string inputMessage ) : bool
inputMessage string
return bool
            public bool OnAccept(string inputMessage)
            {
                // Do the cloning
                string potentialNewNodeName = inputMessage.Trim();
                if (potentialNewNodeName.Length <= 1)
                {
                    MessageBox.Show("You must enter a name longer than 1 character for the clone!");
                    return false;
                }

                if (potentialNewNodeName.Equals(mNode.Name))
                {
                    MessageBox.Show("You must enter a new unique name for the clone!");
                    return false;
                }

                GameMasterDataManager.GetInstance().CloneNode(mViewer, mNode, potentialNewNodeName);
                return true;
            }
EncounterDesignerView.CloneDialogCallback