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(); }
private void CancelButtonPressed() { this.Text = null; this.result = StringInputResult.Cancel; this.Dialog.Hide(); }