Exemplo n.º 1
0
 public NavigationVM(IMainWindow mainWindow, User currentUser)
 {
     client          = new ServicePersonalAssistantClient(new System.ServiceModel.InstanceContext(this));
     _MainWindow     = mainWindow;
     CurrentUser     = currentUser;
     CurrentUserName = currentUser.Login;
     CurrentUserMail = currentUser.Mail;
 }
Exemplo n.º 2
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");
 }
Exemplo n.º 3
0
 public void RefreshContacts()
 {
     Contacts = new ObservableCollection <Contact> {
     };
     client   = new ServicePersonalAssistantClient(new System.ServiceModel.InstanceContext(this));
     Contact[] contacts_from_db = client.RefreshContacts(CurrentUser.Id);
     for (int i = 0; i < contacts_from_db.Length; i++)
     {
         Contacts.Add(contacts_from_db[i]);
     }
     OnPropertyChanged("Contacts");
 }
Exemplo n.º 4
0
 public void RefreshNotes()
 {
     Notes  = new ObservableCollection <Note> {
     };
     client = new ServicePersonalAssistantClient(new System.ServiceModel.InstanceContext(this));
     Note[] notes_from_db = client.RefreshNotes(CurrentUser.Id);
     for (int i = 0; i < notes_from_db.Length; i++)
     {
         Notes.Add(notes_from_db[i]);
     }
     OnPropertyChanged("Notes");
 }
Exemplo n.º 5
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]);
            }
        }
Exemplo n.º 6
0
        public ContactsVM(IMainWindow mainWindow, User currentUser)
        {
            _MainWindow = mainWindow;
            CurrentUser = currentUser;

            client   = new ServicePersonalAssistantClient(new System.ServiceModel.InstanceContext(this));
            Contacts = new ObservableCollection <Contact> {
            };
            Contact[] contacts_from_db = client.RefreshContacts(CurrentUser.Id);
            for (int i = 0; i < contacts_from_db.Length; i++)
            {
                Contacts.Add(contacts_from_db[i]);
            }
        }
Exemplo n.º 7
0
        public NotesVM(IMainWindow mainWindow, User currentUser)
        {
            _MainWindow = mainWindow;

            CurrentUser = currentUser;

            client = new ServicePersonalAssistantClient(new System.ServiceModel.InstanceContext(this));
            Notes  = new ObservableCollection <Note> {
            };
            Note[] notes_from_db = client.RefreshNotes(CurrentUser.Id);
            for (int i = 0; i < notes_from_db.Length; i++)
            {
                Notes.Add(notes_from_db[i]);
            }
        }