public QuizCtrl() { dbQuiz = new DBQuiz(); catCtrl = new CategoryCtrl(); qCtrl = new QuestionCtrl(); aCtrl = new AnswerCtrl(); lCtrl = new LobbyCtrl(); }
//Override CreateCell public override FrameworkElement CreateCell(C1FlexGrid grid, CellType cellType, CellRange rng) { category = grid[rng.Row, rng.Column] as Category; if (category == null) { return(base.CreateCell(grid, cellType, rng)); } categoryCtrl = new CategoryCtrl(category.ImageUri, category.Name); imgBtn = categoryCtrl.ImgButton; //Implement related events imgBtn.Click += (s, e) => { (Window.Current.Content as Frame).Navigate(typeof(MainPage), category); Window.Current.Activate(); }; return(categoryCtrl); }
public CategoryService() { cCtrl = new CategoryCtrl(); }