コード例 #1
0
        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);
        }
コード例 #2
0
 private void Submit_Clicked(object sender, EventArgs e)
 {
     SubmitClicked?.Invoke(this, EventArgs.Empty);
 }