예제 #1
0
        private List <string> GetSQAnswer()
        {
            List <string> squestions = new List <string>();

            foreach (var item in SQuestions.Children)
            {
                if (item is Label)
                {
                    continue;
                }
                SAQuestionControl sAQuestion = item as SAQuestionControl;
                squestions.Add(sAQuestion.GetAnswer());
            }

            return(squestions);
        }
예제 #2
0
        private async void CreateSAQuesiotn(string[] shortAnswers)
        {
            foreach (string shortAnswer in shortAnswers)
            {
                try
                {
                    var result = await aQuestionServer.GetRequest(Uris.BaseUrl + Uris.SAQuestion + "Get", new entity <long>()
                    {
                        id = long.Parse(shortAnswer)
                    });

                    SAQuestionControl sAQuestionControl = new SAQuestionControl(index, result["question"].ToString());
                    SQuestions.Children.Add(sAQuestionControl);
                    index++;
                }
                catch (Exception e)
                {
                    continue;
                }
            }
        }