Пример #1
0
        private void OkButtonClicked()
        {
            bool didTextChanged = this.inputField.text != this.startingText;

            if (didTextChanged)
            {
                this.Text   = this.inputField.text;
                this.result = StringInputResult.Ok;
            }
            else
            {
                this.Text   = null;
                this.result = StringInputResult.Cancel;
            }

            this.Dialog.Hide();
        }
Пример #2
0
 private void CancelButtonPressed()
 {
     this.Text   = null;
     this.result = StringInputResult.Cancel;
     this.Dialog.Hide();
 }