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