Exemple #1
0
 public TreePageViewModel(IProblemStorage problemStorage, ITreeService treeService,
                          IContentNavigationService contentNavigationService)
 {
     _problemStorage           = problemStorage;
     _treeService              = treeService;
     _contentNavigationService = contentNavigationService;
     ItemCommand = new Command <Syncfusion.XForms.TreeView.ItemTappedEventArgs>(TreeView_ItemTapped);
 }
 public ProblemPageViewModel(IProblemStorage problemStorage, Utils utils,
                             IContentNavigationService contentNavigationService,
                             IChapter2NameService chapter2NameService)
 {
     _problemStorage           = problemStorage;
     _contentNavigationService = contentNavigationService;
     _utils               = utils;
     _tapCommand          = new Command(OnTapped);
     _doubleTapCommand    = new Command(OnDoubleTapped);
     _chapter2NameService = chapter2NameService;
     _settingCommand      = new Command(OnClickedSetting);
 }
Exemple #3
0
 public ZoomPageViewModel(IContentNavigationService contentNavigationService)
 {
     _contentNavigationService = contentNavigationService;
     _tapCommand = new Command(async() => await OnTapped());
 }