Ejemplo n.º 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"
                });
            }
        }
Ejemplo n.º 2
0
        private void ShowQuestions(object obj)
        {
            var questions = SQLiteDataAccess.LoadQuestions();

            ShowElementsIfListNotEmpty(questions);
        }