Exemplo n.º 1
0
        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());

                                                       });
                                               });
        }
Exemplo n.º 2
0
 public HomePanoramaViewModel()
     : base()
 {
     TrackingControlViewModel = new TrackingControlViewModel();
     NearYouControlViewModel = new NearYouControlViewModel();
     FastActionsControlViewModel = new FastActionsControlViewModel();
     NavigateToAccountCommand = new WGCommand(_=> this.Services().Navigation.NavigateToAccount());
 }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 5
0
 public override void Charged()
 {
     Event = this.Services().Navigation.GetEventParameter();
     SearchOnBingCommand = new WGCommand(_ => SearchOnBing());
 }
Exemplo n.º 6
0
 public MyLocationsPageViewModel()
 {
     EndListCommand = new WGCommand(_ => MessageBox.Show("ITWORKS"));
 }
Exemplo n.º 7
0
 public override void Charged()
 {
     Event = this.Services().Navigation.GetEventParameter();
     SearchOnBingCommand = new WGCommand(_ => SearchOnBing());
 }
Exemplo n.º 8
0
 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());
 }
 public FastActionsControlViewModel()
 {
     GoToCalendarCommand = new WGCommand(_ => this.Services().Navigation.NavigateToCalendar());
     GoToMyArtistsCommand = new WGCommand(_ => this.Services().Navigation.NavigateToMyArtists());
     GoToMyLocationsCommand = new WGCommand(_ => this.Services().Navigation.NavigateToMyLocations());
 }