public MyArtistsPageViewModel() { EndListCommand = new WGCommand(_ => { if (TrackedArtists.SelectMany(art => art.ToList()).Count() >= _totalEntries) return; this.Services().Notifications.SetProgress(""); Page++; this.ExecuteAsync(__ => { this .BusinessServices() .Tracking .GetTrackedArtists("DavidMelo", Page) .Item2 .ToList() .ForEach(element => { if (TrackedArtists.Select(e => e.Key).Contains(element.Key)) { ReorganizeGroups(element); } else { ExecuteOnDispatcher(() => TrackedArtists.Add(element)); } }); this.ExecuteOnDispatcher(()=> this.Services().Notifications.ClearProgressIndicator()); }); }); }
public HomePanoramaViewModel() : base() { TrackingControlViewModel = new TrackingControlViewModel(); NearYouControlViewModel = new NearYouControlViewModel(); FastActionsControlViewModel = new FastActionsControlViewModel(); NavigateToAccountCommand = new WGCommand(_=> this.Services().Navigation.NavigateToAccount()); }
public AccountPageViewModel() { AccountName = string.Empty; SetAccountCommand = new WGCommand(_ => { this.BusinessServices() .Account .SetAccountName(AccountName); this.Services().Navigation.NavigateBack(); }); }
public PlansUserControlViewModel() { GetAttendance(); GoToEventCommand = new WGCommand(e => this.Services().Navigation.NavigateToEventDetail(e)); }
public override void Charged() { Event = this.Services().Navigation.GetEventParameter(); SearchOnBingCommand = new WGCommand(_ => SearchOnBing()); }
public MyLocationsPageViewModel() { EndListCommand = new WGCommand(_ => MessageBox.Show("ITWORKS")); }
public TrackingControlViewModel() : base() { GetTrackings(); GoToEventCommand = new WGCommand(e =>this.Services().Navigation.NavigateToEventDetail(e)); }
public FastActionsControlViewModel() { GoToCalendarCommand = new WGCommand(_ => this.Services().Navigation.NavigateToCalendar()); GoToMyArtistsCommand = new WGCommand(_ => this.Services().Navigation.NavigateToMyArtists()); GoToMyLocationsCommand = new WGCommand(_ => this.Services().Navigation.NavigateToMyLocations()); }