public TagsViewModel() { _client = DependencyService.Resolve <IJSONWebClient>(); Fetch(); SelectedCommand = new Command <Tag>(TagSelected); }
public TagPapersViewModel() { _client = DependencyService.Resolve <IJSONWebClient>(); Fetch(); SelectedCommand = new Command <Paper>(PaperSelected); }
public LoginViewModel() { _hub = DependencyService.Resolve <TinyMessengerHub>(); _client = DependencyService.Resolve <IJSONWebClient>(); LoginCommand = new Command(Login); CloseModalCommand = new Command(CloseModal); }
public FavoritesViewModel() { _hub = DependencyService.Resolve <TinyMessengerHub>(); _hub.Subscribe <LoggedInMessage>(OnLoggedIn); _hub.Subscribe <LoggedOutMessage>(OnLoggedOut); _client = DependencyService.Resolve <IJSONWebClient>(); FetchPapers(); PaperSelectedCommand = new Command <Paper>(PaperSelected); RefreshCommand = new Command(FetchPapers); }
public SearchViewModel() { _client = DependencyService.Resolve <IJSONWebClient>(); DoSearchCommand = new Command(PerformSearch); ChangeScopeCommand = new Command <string>(ChangeScope); }