コード例 #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());

                                                       });
                                               });
        }
コード例 #2
0
 public HomePanoramaViewModel()
     : base()
 {
     TrackingControlViewModel = new TrackingControlViewModel();
     NearYouControlViewModel = new NearYouControlViewModel();
     FastActionsControlViewModel = new FastActionsControlViewModel();
     NavigateToAccountCommand = new WGCommand(_=> this.Services().Navigation.NavigateToAccount());
 }
コード例 #3
0
 public AccountPageViewModel()
 {
     AccountName = string.Empty;
     SetAccountCommand = new WGCommand(_ =>
                                           {
                                               this.BusinessServices()
                                                   .Account
                                                   .SetAccountName(AccountName);
                                               this.Services().Navigation.NavigateBack();
                                           });
 }
コード例 #4
0
 public PlansUserControlViewModel()
 {
     GetAttendance();
     GoToEventCommand = new WGCommand(e => this.Services().Navigation.NavigateToEventDetail(e));
 }
コード例 #5
0
 public override void Charged()
 {
     Event = this.Services().Navigation.GetEventParameter();
     SearchOnBingCommand = new WGCommand(_ => SearchOnBing());
 }
コード例 #6
0
 public MyLocationsPageViewModel()
 {
     EndListCommand = new WGCommand(_ => MessageBox.Show("ITWORKS"));
 }
コード例 #7
0
 public override void Charged()
 {
     Event = this.Services().Navigation.GetEventParameter();
     SearchOnBingCommand = new WGCommand(_ => SearchOnBing());
 }
コード例 #8
0
 public TrackingControlViewModel()
     : base()
 {
     GetTrackings();
     GoToEventCommand = new WGCommand(e =>this.Services().Navigation.NavigateToEventDetail(e));
 }
コード例 #9
0
 public FastActionsControlViewModel()
 {
     GoToCalendarCommand    = new WGCommand(_ => this.Services().Navigation.NavigateToCalendar());
     GoToMyArtistsCommand   = new WGCommand(_ => this.Services().Navigation.NavigateToMyArtists());
     GoToMyLocationsCommand = new WGCommand(_ => this.Services().Navigation.NavigateToMyLocations());
 }
コード例 #10
0
 public FastActionsControlViewModel()
 {
     GoToCalendarCommand = new WGCommand(_ => this.Services().Navigation.NavigateToCalendar());
     GoToMyArtistsCommand = new WGCommand(_ => this.Services().Navigation.NavigateToMyArtists());
     GoToMyLocationsCommand = new WGCommand(_ => this.Services().Navigation.NavigateToMyLocations());
 }