void mainWindowViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "LiveOperatingEnvironment")
     {
         this.liveOperatingEnvironment = mainWindowViewModel.LiveOperatingEnvironment;
         this.liveContacts             = GetAllContacts(this.liveOperatingEnvironment);
         OnPropertyChanged("LiveContacts");
         OnPropertyChanged("ChatDisclaimerVisibility");
     }
     if (e.PropertyName == "LibraryItems")
     {
         this.libraryItems = mainWindowViewModel.LibraryItems;
         GetImageLibraryItems();
         GetXpsLibraryItems();
         OnPropertyChanged("ImageLibraryItems");
         OnPropertyChanged("XpsLibraryItems");
     }
 }
Ejemplo n.º 2
0
 private void LibraryCommand_Complete(DiagnosisLibraryItemCollection libraryItems)
 {
     this.libraryItems = libraryItems;
     this.OnPropertyChanged("LibraryItems");
 }
        private void GetXpsLibraryItems()
        {
            var xpsLibraryItems = (from item in this.libraryItems where item.ContentType == "xps" select item);

            this.xpsLibraryItems = new DiagnosisLibraryItemCollection(xpsLibraryItems);
        }
        private void GetImageLibraryItems()
        {
            var imageLibraryItems = (from item in this.libraryItems where item.ContentType == "png" select item);

            this.imageLibraryItems = new DiagnosisLibraryItemCollection(imageLibraryItems);
        }