public CustomerServices() { InitializeComponent(); QuestionBlock block = new QuestionBlock(); block.Choice_Question.Text = "Hi I am your shopping assistant.. click on the next button to view and choose various categories for the products..!!"; panelForQuestion.Children.Add(block); }
public async void getNextQuestion() { GetQuestions getQuestions = new GetQuestions(); QuestionBlock block = await getQuestions.Question(); if (block != null) { panelForQuestion.Children.Add(block); count += 1; } }