コード例 #1
0
 public MeetingsViewModel()
 {
     Meetings        = new SuspendableObservableCollection <GroupedMeetingViewModel>();
     _meetingService = App.Instance.GetInstance <IMeetingService>();
     RefreshCommand  = new RelayCommand(ForceRefresh);
     UpdateLastUpdateText(_meetingService.GetLastUpdateTime());
 }
コード例 #2
0
 public MeetingsViewModel(IMeetingService meetingService)
 {
     Meetings        = new SuspendableObservableCollection <GroupedMeetingViewModel>();
     _meetingService = meetingService;
     RefreshCommand  = new MvxCommand(ForceRefresh);
     _lastUpdate     = _meetingService.GetLastUpdateTime();
 }