示例#1
0
        private async void AddQuestionControl_SubmitClicked(object sender, Question e)
        {
            AddQuestionFormStatusText.Text = "";
            AddQuestionForm.Clear();
            Question result = await NetworkService.AddQuestion(MasterMenuItem.PlayerInfo.Id, e);

            AddQuestionFormStatusText.Text = $"Question with ID: {result?.Id} added.";
            await LoadQuestions();

            QuestionsList.ScrollIntoView(Questions.Last(), ScrollIntoViewAlignment.Leading);
        }