public CommentsViewModel(IMonkeyHubApiService monkeyHubApiService, PostModel postModel) { _postModel = postModel; _monkeyHubApiService = monkeyHubApiService; Comments = new ObservableCollection <CommentsModel>(); AboutCommand = new Command(ExecuteAboutCommand); }
public CategoryViewModel(IMonkeyHubApiService _monkeyHubApiService, Tag _tag) : base(_tag.Name) { monkeyHubApiService = _monkeyHubApiService; Tag = _tag; DataSource = new ObservableCollection <Content>(); ShowItemTappedCommand = new Command <Content>(ExecuteShowContentCommand); }
public SearchViewModel(IMonkeyHubApiService monkeyHubApiService) { _monkeyHubApiService = monkeyHubApiService; SearchResults = new ObservableCollection <Content>(); SearchCommand = new Command(ExecuteSearchCommand, CanExecuteSearchCommand); ShowContentCommand = new Command <Content>(ExecuteShowContentCommand); }
public MainViewModel(IMonkeyHubApiService mokeyHubApiService) { this.Tags = new ObservableCollection <Tag>(); this._mokeyHubApiService = mokeyHubApiService; AboutCommand = new Command(ExecuteAboutCommand); ShowCategoriaCommand = new Command <Tag>(ExecuteShowCategoriaCommand); }
public SearchContentViewModel(IMonkeyHubApiService _monkeyHubApiService) : base("Busca de conteúdo") { monkeyHubApiService = _monkeyHubApiService; SearchCommand = new Command(ExecuteSearchCommand); ShowItemTappedCommand = new Command <Content>(ExecuteShowContentCommand); DataSource = new ObservableCollection <Content>(); }
public MainViewModel(IMonkeyHubApiService _monkeyHubApiService) : base("Monkey Hub") { monkeyHubApiService = _monkeyHubApiService; ShowItemTappedCommand = new Command <Tag>(ExecuteShowSelectedTagCommand); AboutCommand = new Command(ExecuteAboutCommand); ShowSearchPageCommand = new Command(ExecuteShowSearchPageCommand); DataSource = new ObservableCollection <Tag>(); }
public CategoriaViewModel(IMonkeyHubApiService monkeyHubApiService, Tag tag) { _monkeyHubApiService = monkeyHubApiService; _tag = tag; Contents = new ObservableCollection <Content>(); ShowContentCommand = new Command <Content>(ExecuteShowContentCommand); }
public MainPageViewModel(IMonkeyHubApiService monkeyHubApiService) { _monkeyHubApiService = monkeyHubApiService; Resultados = new ObservableCollection <UserModel>(); AboutCommand = new Command(ExecuteAboutCommand); ShowPostCommand = new Command <UserModel>(ExecuteShowPostCommand); }
public PostViewModel(IMonkeyHubApiService monkeyHubApiService, UserModel userModel) { _monkeyHubApiService = monkeyHubApiService; _userModel = userModel; Posts = new ObservableCollection <PostModel>(); ShowPostsCommand = new Command <PostModel>(ExecuteShowPostsCommand); AboutCommand = new Command(ExecuteAboutCommand); }
public MainViewModel(IMonkeyHubApiService monkeyHubApiService) { _monkeyHubApiService = monkeyHubApiService; SearchCommand = new Command(ExecuteSearchCommand, CanExecuteSearchCommand); AboutCommand = new Command(ExecuteAboutCommand); Resultados = new ObservableCollection <Tag>(); ShowCategoriaCommand = new Command <Tag>(ExecuteShowCategoriaCommand); }
public MainViewModel(IMonkeyHubApiService monkeyHubApiService) { _monkeyHubApiService = monkeyHubApiService; Tags = new ObservableCollection <Tag>(); AboutCommand = new Command(ExecuteAboutCommand); SearchCommand = new Command(ExecuteSearchCommand); ShowCategoriaCommand = new Command <Tag>(ExecuteShowCategoriaCommand); Title = "Monkey Hub"; }
public SearchViewModel(IMonkeyHubApiService monkeyHubApiService) { SearchCommand = new Command(ExecuteSeachCommand, CanExecuteSearchCommand); //AQUI NOS COLOCAMOS ALGUMS VALORES EM NOSSO LISTA //Resultados = new ObservableCollection<string>(new[] { "ABC", "BCD" } ); AboutCommand = new Command(ExecuteAboutCommand); ShowPostCommand = new Command <UserModel>(ExecuteShowPostCommand); _monkeyHubApiService = monkeyHubApiService; }
public MainViewModel(IMonkeyHubApiService IMonkeyHubApiService, IFacebookService iFacebookService) { _iMonkeyHubApiService = IMonkeyHubApiService; _iFacebookService = iFacebookService; SearchCommand = new Command(ExecuteSearchCommand); AboutCommand = new Command(ExecuteAboutCommand); ShowCategoriaCommand = new Command <Tag>(ExecuteShowCategoriaCommand); Title = "Bem vindo " + User.FirstName; Results = new ObservableCollection <Tag>(); }