Example #1
0
 public void RefreshMeetups()
 {
     Meetups = new ObservableCollection <Meetup> {
     };
     client  = new ServicePersonalAssistantClient(new System.ServiceModel.InstanceContext(this));
     Meetup[] meetups_from_db = client.RefreshMeetups(CurrentUser.Id);
     for (int i = 0; i < meetups_from_db.Length; i++)
     {
         Meetups.Add(meetups_from_db[i]);
     }
     OnPropertyChanged("Meetups");
 }
Example #2
0
        public MeetingsVM(IMainWindow mainWindow, User currentUser)
        {
            _MainWindow = mainWindow;
            CurrentUser = currentUser;

            client  = new ServicePersonalAssistantClient(new System.ServiceModel.InstanceContext(this));
            Meetups = new ObservableCollection <Meetup> {
            };
            Meetup[] meetups_from_db = client.RefreshMeetups(CurrentUser.Id);
            for (int i = 0; i < meetups_from_db.Length; i++)
            {
                Meetups.Add(meetups_from_db[i]);
            }
        }