Exemplo n.º 1
0
 public DesignDeviceViewModel()
 {
     List<DesignDeviceItem> collection = new List<DesignDeviceItem>();
     DesignDeviceItem item = new DesignDeviceItem {
         Name = "Open arms",
         Album = "Frontiers",
         Artist = "Journey",
         Duration = "3:20",
         Size = "35 kB"
     };
     collection.Add(item);
     DesignDeviceItem item2 = new DesignDeviceItem {
         Name = "Faithfully",
         Album = "Frontiers",
         Artist = "Journey",
         Duration = "3:43",
         Size = "38 kB"
     };
     collection.Add(item2);
     DesignDeviceItem item3 = new DesignDeviceItem {
         Name = "Send Her My Love",
         Album = "Frontiers",
         Artist = "Journey",
         Duration = "4:23",
         Size = "43 kB"
     };
     collection.Add(item3);
     DesignDeviceItem item4 = new DesignDeviceItem {
         Name = "Thriller",
         Album = "Thriller",
         Artist = "Michael Jackson",
         Duration = "6:03",
         Size = "56 kB"
     };
     collection.Add(item4);
     this.Music = AddCollectionViewSource(collection);
     collection = new List<DesignDeviceItem>();
     DesignDeviceItem item5 = new DesignDeviceItem {
         Name = "baby pic 1",
         Album = "New baby - Month 1"
     };
     collection.Add(item5);
     DesignDeviceItem item6 = new DesignDeviceItem {
         Name = "baby pic 2",
         Album = "New baby - Month 1"
     };
     collection.Add(item6);
     DesignDeviceItem item7 = new DesignDeviceItem {
         Name = "baby pic 3",
         Album = "New baby - Month 1"
     };
     collection.Add(item7);
     DesignDeviceItem item8 = new DesignDeviceItem {
         Name = "baby pic 4",
         Album = "New baby - Month 1"
     };
     collection.Add(item8);
     DesignDeviceItem item9 = new DesignDeviceItem {
         Name = "baby pic 5",
         Album = "New baby - Month 1"
     };
     collection.Add(item9);
     this.PhotoVideoAlbums = AddCollectionViewSource(collection);
     collection = new List<DesignDeviceItem>();
     DesignDeviceItem item10 = new DesignDeviceItem {
         Name = "Toy Story",
         Duration = "1:15",
         Size = "23 MB"
     };
     collection.Add(item10);
     DesignDeviceItem item11 = new DesignDeviceItem {
         Name = "Toy Story 2",
         Duration = "1:23",
         Size = "24 MB"
     };
     collection.Add(item11);
     DesignDeviceItem item12 = new DesignDeviceItem {
         Name = "Toy Story 3",
         Duration = "1:05",
         Size = "21 MB"
     };
     collection.Add(item12);
     this.MoviesTVShows = AddCollectionViewSource(collection);
     collection = new List<DesignDeviceItem>();
     DesignDeviceItem item13 = new DesignDeviceItem {
         Name = "Wait Wait Don't Tell Me",
         Duration = "1:15",
         Size = "23 MB"
     };
     collection.Add(item13);
     DesignDeviceItem item14 = new DesignDeviceItem {
         Name = "Wait Wait Don't Tell Me",
         Duration = "1:23",
         Size = "24 MB"
     };
     collection.Add(item14);
     this.Podcasts = AddCollectionViewSource(collection);
 }
Exemplo n.º 2
0
        public DesignDeviceViewModel()
        {
            List <DesignDeviceItem> collection = new List <DesignDeviceItem>();
            DesignDeviceItem        item       = new DesignDeviceItem {
                Name     = "Open arms",
                Album    = "Frontiers",
                Artist   = "Journey",
                Duration = "3:20",
                Size     = "35 kB"
            };

            collection.Add(item);
            DesignDeviceItem item2 = new DesignDeviceItem {
                Name     = "Faithfully",
                Album    = "Frontiers",
                Artist   = "Journey",
                Duration = "3:43",
                Size     = "38 kB"
            };

            collection.Add(item2);
            DesignDeviceItem item3 = new DesignDeviceItem {
                Name     = "Send Her My Love",
                Album    = "Frontiers",
                Artist   = "Journey",
                Duration = "4:23",
                Size     = "43 kB"
            };

            collection.Add(item3);
            DesignDeviceItem item4 = new DesignDeviceItem {
                Name     = "Thriller",
                Album    = "Thriller",
                Artist   = "Michael Jackson",
                Duration = "6:03",
                Size     = "56 kB"
            };

            collection.Add(item4);
            this.Music = AddCollectionViewSource(collection);
            collection = new List <DesignDeviceItem>();
            DesignDeviceItem item5 = new DesignDeviceItem {
                Name  = "baby pic 1",
                Album = "New baby - Month 1"
            };

            collection.Add(item5);
            DesignDeviceItem item6 = new DesignDeviceItem {
                Name  = "baby pic 2",
                Album = "New baby - Month 1"
            };

            collection.Add(item6);
            DesignDeviceItem item7 = new DesignDeviceItem {
                Name  = "baby pic 3",
                Album = "New baby - Month 1"
            };

            collection.Add(item7);
            DesignDeviceItem item8 = new DesignDeviceItem {
                Name  = "baby pic 4",
                Album = "New baby - Month 1"
            };

            collection.Add(item8);
            DesignDeviceItem item9 = new DesignDeviceItem {
                Name  = "baby pic 5",
                Album = "New baby - Month 1"
            };

            collection.Add(item9);
            this.PhotoVideoAlbums = AddCollectionViewSource(collection);
            collection            = new List <DesignDeviceItem>();
            DesignDeviceItem item10 = new DesignDeviceItem {
                Name     = "Toy Story",
                Duration = "1:15",
                Size     = "23 MB"
            };

            collection.Add(item10);
            DesignDeviceItem item11 = new DesignDeviceItem {
                Name     = "Toy Story 2",
                Duration = "1:23",
                Size     = "24 MB"
            };

            collection.Add(item11);
            DesignDeviceItem item12 = new DesignDeviceItem {
                Name     = "Toy Story 3",
                Duration = "1:05",
                Size     = "21 MB"
            };

            collection.Add(item12);
            this.MoviesTVShows = AddCollectionViewSource(collection);
            collection         = new List <DesignDeviceItem>();
            DesignDeviceItem item13 = new DesignDeviceItem {
                Name     = "Wait Wait Don't Tell Me",
                Duration = "1:15",
                Size     = "23 MB"
            };

            collection.Add(item13);
            DesignDeviceItem item14 = new DesignDeviceItem {
                Name     = "Wait Wait Don't Tell Me",
                Duration = "1:23",
                Size     = "24 MB"
            };

            collection.Add(item14);
            this.Podcasts = AddCollectionViewSource(collection);
        }