public ContactListViewModel(IAlertServices alertService, INavigationServices navigationServices) : base(alertService, navigationServices) { Contacts = new ObservableCollection <Contact>(); SelectedContactCommand = new Command <Contact>(OnSelectedContact); MoreCommand = new Command <Contact>(OnMore); AddContactCommand = new Command(OnAddContact); DeleteContactCommand = new Command <Contact>(OnDeleteContact); }
public MainViewModel(INavigationServices navigationServices) { this.navigationServices = navigationServices; this.NavigateCommand = new RelayCommand(() => { this.navigationServices.Navigate(Views.Categories); }); }
public PlayersViewModel(IAlertServices alertServices, INavigationServices navigationServices, INbaApiService nbaApiServices) : base(alertServices, navigationServices, nbaApiServices) { GetActivePlayers(); GetActiveTeams(); SelectedPlayerCommand = new Command <Player>(OnSelectecPlayer); SearcherCommand = new Command(OnSearcher); ClearCommand = new Command(OnClear); }
public NavigateViewModel(INavigationServices navigationServices) { this.navigationServices = navigationServices; this.NavigateCommand = new RelayCommand <string>((s) => { var view = (Views)Enum.Parse(typeof(Views), s); this.navigationServices.Navigate(view); }); }
public PlayerInfoDetailViewModel(Player player, Team team, IAlertServices alertServices, INavigationServices navigationServices, INbaApiService nbaApiService) : base(alertServices, navigationServices, nbaApiService) { Player = player; Team = team; PlayerFullName = player.FirstName + " " + player.LastName; PlayerHeight = $"{player.HeightFeet}.{player.HeightInches}"; ActualTeamInfo = $"In {team.Tricode} since: "; YearDebutActualTeam = player.Teams[player.Teams.Count - 1].SeasonStart; }
public LoginViewModel(INavigationServices navigationService) { _navService = navigationService; }
protected BaseViewModel(IAlertServices alertServices, INavigationServices navigationServices, INbaApiService nbaApiService) { AlertServices = alertServices; NavigationServices = navigationServices; NbaApiServices = nbaApiService; }
public AddContactViewModel(ref ObservableCollection <Contact> contacts, IAlertServices alertService, INavigationServices navigationServices) : base(alertService, navigationServices) { Contacts = contacts; AddContactCommand = new Command(OnAddContact); PickPhotoCommand = new Command(OnPickPhoto); }
public EditContactViewModel(ref ObservableCollection <Contact> contacts, Contact contact, IAlertServices alertService, INavigationServices navigationServices) : base(alertService, navigationServices) { Contacts = contacts; OldContact = contact; ContactToEdit = contact; OldName = contact.Name; OldPhoneNumber = contact.PhoneNumber; FirstLetterOldName = contact.FirstLetterName.Substring(0, 1).ToUpper(); EditContactCommand = new Command(OnEditContact); BackCommand = new Command(OnBackCommand); }
protected BaseViewModel(IAlertServices alertServices, INavigationServices navigationServices) { AlertServices = alertServices; NavigationServices = navigationServices; }