private void Submit_Click(object sender, RoutedEventArgs e) { Question question = new Question { Title = TitleBox.Text, Text = BodyTextBox.Text, PrefilledAnswers = PrefilledAnswers.Select(x => x.Answer).ToList() }; SubmitClicked?.Invoke(this, question); }
private void OtpSubmit_Clicked(object sender, EventArgs e) { string otp = OtpTextBox.Text.Trim(); if (string.IsNullOrEmpty(otp) && otp.Length < 6) { return; } if (SubmitClicked.CanExecute(otp)) { SubmitClicked.Execute(otp); } }
private void Submit_Clicked(object sender, EventArgs e) { SubmitClicked?.Invoke(this, EventArgs.Empty); }