Example #1
0
 public QuizCtrl()
 {
     dbQuiz  = new DBQuiz();
     catCtrl = new CategoryCtrl();
     qCtrl   = new QuestionCtrl();
     aCtrl   = new AnswerCtrl();
     lCtrl   = new LobbyCtrl();
 }
Example #2
0
 //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);
 }
Example #3
0
 public CategoryService()
 {
     cCtrl = new CategoryCtrl();
 }