示例#1
0
        public DeleteQuestionMenu()
        {
            var questions = SQLiteDataAccess.LoadQuestions();

            if (questions.Count != 0)
            {
                foreach (var item in questions)
                {
                    Add(new Menu.MenuItem()
                    {
                        Name      = item.ToString(),
                        Function  = DeleteQuestionById,
                        Parameter = item.Id
                    });
                }
            }
            else
            {
                Add(new Menu.MenuItem()
                {
                    Name = "P U S T O"
                });
            }
        }
示例#2
0
        private void ShowQuestions(object obj)
        {
            var questions = SQLiteDataAccess.LoadQuestions();

            ShowElementsIfListNotEmpty(questions);
        }