CTCOfficeGUI.MainScreen.ShowTextInputPopup C# (CSharp) Method

ShowTextInputPopup() private method

Displays a popup to get text input from the user
private ShowTextInputPopup ( string prompt, string initialValue, CTCOfficeGUI.TextInputDialog OnValueEnteredHandler ) : void
prompt string Prompt message
initialValue string Initial value of the text input box
OnValueEnteredHandler CTCOfficeGUI.TextInputDialog Event handler for the value entered event
return void
        private void ShowTextInputPopup(string prompt, string initialValue, TextInputDialog.OnValueEntered OnValueEnteredHandler)
        {
            TextInputDialog popup = new TextInputDialog(prompt);
            popup.TextValue = initialValue;
            popup.ValueEntered += OnValueEnteredHandler;
            m_openPopups.Add(popup);
            popup.Show();
        }