public void Update() { IEnumerable <BetDisplayModel> bets = facade.GetAll(); Bets.Clear(); foreach (BetDisplayModel bet in bets) { Bets.Add(bet); } }
public void Update() { IEnumerable <EventDisplayModel> eventDisplayModels = facade.GetAll(); Events.Clear(); foreach (EventDisplayModel eventDisplayModel in eventDisplayModels) { Events.Add(eventDisplayModel); } }
public BetListViewModel(ISubject subject, FacadeBase <BetDisplayModel> facade) { this.facade = facade; this.EditBetCommand = new DelegateCommand(() => RaiseBetSelectedEvent(SelectedBet), obj => SelectedBet != null); this.Bets = new ObservableCollection <BetDisplayModel>(facade.GetAll()); subject.Subscribe(this); }
public void Update() { IEnumerable <CoefficientDisplayModel> coefficientDisplayModels = facade.GetAll(); Coefficients.Clear(); foreach (CoefficientDisplayModel coefficientDisplayModel in coefficientDisplayModels) { Coefficients.Add(coefficientDisplayModel); } }
public CountryListViewModel(ISubject subject, FacadeBase <string> facade) { this.subject = subject; this.facade = facade; this.Countries = new ObservableCollection <string>(facade.GetAll()); this.EditCountryCommand = new DelegateCommand(() => RaiseCountrySelectedEvent(SelectedCountry), obj => SelectedCountry != null); this.DeleteCountryCommand = new DelegateCommand(() => RaiseCountryDeleteRequestEvent(SelectedCountry), obj => SelectedCountry != null); subject.Subscribe(this); }
public SportListViewModel(ISubject subject, FacadeBase <string> facade) { this.subject = subject; this.facade = facade; this.Sports = new ObservableCollection <string>(facade.GetAll()); this.EditSportCommand = new DelegateCommand(() => RaiseSportSelectedEvent(SelectedSport), obj => SelectedSport != null); this.DeleteSportCommand = new DelegateCommand(() => RaiseSportDeleteRequestEvent(SelectedSport), obj => SelectedSport != null); subject.Subscribe(this); }
public void Update() { IEnumerable <ClientDisplayModel> clients = facade.GetAll(); Clients.Clear(); foreach (ClientDisplayModel clientDisplayModel in clients) { Clients.Add(clientDisplayModel); } RaisePropertyChangedEvent("SelectedClient"); }
public void Update() { IEnumerable <BookmakerDisplayModel> bookmakers = facade.GetAll(); Bookmakers.Clear(); foreach (BookmakerDisplayModel bookmaker in bookmakers) { Bookmakers.Add(bookmaker); } RaisePropertyChangedEvent("SelectedBookmaker"); }
public void Update() { IEnumerable <AnalyticDisplayModel> analytics = facade.GetAll(); Analytics.Clear(); foreach (AnalyticDisplayModel analytic in analytics) { Analytics.Add(analytic); } RaisePropertyChangedEvent("SelectedAnalytic"); }
public void Update() { IEnumerable <ParticipantDisplayModel> participants = facade.GetAll(); Participants.Clear(); foreach (ParticipantDisplayModel participant in participants) { Participants.Add(participant); } RaisePropertyChangedEvent("SelectedParticipant"); }
public void Update() { IEnumerable <AdminDisplayModel> admins = facade.GetAll(); Admins.Clear(); foreach (AdminDisplayModel admin in admins) { Admins.Add(admin); } RaisePropertyChangedEvent("SelectedAdmin"); }
public void Update() { IEnumerable <TournamentDisplayModel> tournaments = facade.GetAll(); Tournaments.Clear(); foreach (TournamentDisplayModel tournament in tournaments) { Tournaments.Add(tournament); } RaisePropertyChangedEvent("SelectedTournament"); }
public void Update() { IEnumerable <string> sportNames = facade.GetAll(); Sports.Clear(); foreach (string sportName in sportNames) { Sports.Add(sportName); } RaisePropertyChangedEvent("SelectedSport"); }
public void Update() { IEnumerable <string> countryNames = facade.GetAll(); Countries.Clear(); foreach (string countryName in countryNames) { Countries.Add(countryName); } RaisePropertyChangedEvent("SelectedCountry"); }
public BookmakerListViewModel(ISubject subject, FacadeBase <BookmakerDisplayModel> facade) { this.subject = subject; this.facade = facade; subject.Subscribe(this); this.Bookmakers = new ObservableCollection <BookmakerDisplayModel>(facade.GetAll()); this.SortedBookmakers.Filter = FilterBookmaker; this.RefreshBookmakers = new DelegateCommand(() => SortedBookmakers.Refresh(), obj => true); RaisePropertyChangedEvent("Bookmakers"); RaisePropertyChangedEvent("SelectedBookmaker"); }
public ClientListViewModel(ISubject subject, FacadeBase <ClientDisplayModel> facade) { this.subject = subject; this.facade = facade; subject.Subscribe(this); this.Clients = new ObservableCollection <ClientDisplayModel>(facade.GetAll()); this.SortedClients.Filter = FilterClient; this.RefreshClients = new DelegateCommand(() => SortedClients.Refresh(), obj => true); RaisePropertyChangedEvent("Clients"); RaisePropertyChangedEvent("SelectedClient"); }
public EventListViewModel(ISubject subject, FacadeBase <EventDisplayModel> facade) { this.facade = facade; this.SelectEventCommand = new DelegateCommand( () => RaiseEventSelectedEvent(SelectedEvent), obj => SelectedEvent != null); this.DeleteEventCommand = new DelegateCommand( () => RaiseEventDeleteRequestEvent(SelectedEvent), obj => SelectedEvent != null); this.Events = new ObservableCollection <EventDisplayModel>(facade.GetAll()); subject.Subscribe(this); }
public ManageAdminsViewModel(ISubject subject, FacadeBase <AdminDisplayModel> facade) { this.subject = subject; this.facade = facade; this.Admins = new ObservableCollection <AdminDisplayModel>(facade.GetAll()); this.EditSelectedAdminCommand = new DelegateCommand( () => RaiseAdminEditEvent(SelectedAdmin), obj => SelectedAdmin != null); this.DeleteSelectedAdminCommand = new DelegateCommand( () => RaiseAdminDeletedEvent(SelectedAdmin), obj => SelectedAdmin != null); subject.Subscribe(this); RaisePropertyChangedEvent("Admins"); RaisePropertyChangedEvent("SelectedAdmin"); }