Exemplo n.º 1
0
 public Card(String uniqueId, String imagePath1, String imagePath2, Category group)
     : base(uniqueId, imagePath1, imagePath2)
 {
     _group = group;
 }
Exemplo n.º 2
0
        public SampleDataSource()
        {
            var group1 = new Category("Ñoäng Vaät",
                                      "Ñoäng Vaät",
                                      "Assets/Animal/animal.jpg",
                                      "Assets/Animal/animal2.jpg");
            group1.Items.Add(new Card("Động-Vật-Item-1",
                                      "Assets/Animal/b_01.jpg",
                                      "Assets/Animal/f_01.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-2",
                                      "Assets/Animal/b_02.jpg",
                                      "Assets/Animal/f_02.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-3",
                                      "Assets/Animal/b_03.jpg",
                                      "Assets/Animal/f_03.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-4",
                                      "Assets/Animal/b_04.jpg",
                                      "Assets/Animal/f_04.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-5",
                                      "Assets/Animal/b_05.jpg",
                                      "Assets/Animal/f_05.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-6",
                                      "Assets/Animal/b_06.jpg",
                                      "Assets/Animal/f_06.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-7",
                                      "Assets/Animal/b_07.jpg",
                                      "Assets/Animal/f_07.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-8",
                                      "Assets/Animal/b_08.jpg",
                                      "Assets/Animal/f_08.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-9",
                                      "Assets/Animal/b_09.jpg",
                                      "Assets/Animal/f_09.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-10",
                                      "Assets/Animal/b_10.jpg",
                                      "Assets/Animal/f_10.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-11",
                                      "Assets/Animal/b_11.jpg",
                                      "Assets/Animal/f_11.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-12",
                                      "Assets/Animal/b_12.jpg",
                                      "Assets/Animal/f_12.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-13",
                                      "Assets/Animal/b_13.jpg",
                                      "Assets/Animal/f_13.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-14",
                                      "Assets/Animal/b_14.jpg",
                                      "Assets/Animal/f_14.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-15",
                                      "Assets/Animal/b_15.jpg",
                                      "Assets/Animal/f_15.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-16",
                                      "Assets/Animal/b_16.jpg",
                                      "Assets/Animal/f_16.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-17",
                                      "Assets/Animal/b_17.jpg",
                                      "Assets/Animal/f_17.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            AllGroups.Add(group1);

            var group2 = new Category("Ñoà ñaïc trong nhaø",
                                      "Ñoà ñaïc trong nhaø",
                                      "Assets/Funiture/funiture.jpg",
                                      "Assets/Funiture/funiture2.jpg");
            group2.Items.Add(new Card("Đồ-đạc-Item-1",
                                      "Assets/Funiture/b_01.jpg",
                                      "Assets/Funiture/f_01.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-2",
                                      "Assets/Funiture/b_02.jpg",
                                      "Assets/Funiture/f_02.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-3",
                                      "Assets/Funiture/b_03.jpg",
                                      "Assets/Funiture/f_03.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-4",
                                      "Assets/Funiture/b_04.jpg",
                                      "Assets/Funiture/f_04.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-5",
                                      "Assets/Funiture/b_05.jpg",
                                      "Assets/Funiture/f_05.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-6",
                                      "Assets/Funiture/b_06.jpg",
                                      "Assets/Funiture/f_06.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-7",
                                      "Assets/Funiture/b_07.jpg",
                                      "Assets/Funiture/f_07.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-8",
                                      "Assets/Funiture/b_08.jpg",
                                      "Assets/Funiture/f_08.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-9",
                                      "Assets/Funiture/b_09.jpg",
                                      "Assets/Funiture/f_09.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-10",
                                      "Assets/Funiture/b_10.jpg",
                                      "Assets/Funiture/f_10.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            AllGroups.Add(group2);

            var group3 = new Category("Danh lam thaéng caûnh",
                                      "Danh lam thaéng caûnh",
                                      "Assets/Landmark/landmark.jpg",
                                      "Assets/Landmark/landmark2.jpg");
            group3.Items.Add(new Card("Danh-lam-Item-1",
                                      "Assets/Landmark/b_01.jpg",
                                      "Assets/Landmark/f_01.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-2",
                                      "Assets/Landmark/b_02.jpg",
                                      "Assets/Landmark/f_02.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-3",
                                      "Assets/Landmark/b_03.jpg",
                                      "Assets/Landmark/f_03.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-4",
                                      "Assets/Landmark/b_04.jpg",
                                      "Assets/Landmark/f_04.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-5",
                                      "Assets/Landmark/b_05.jpg",
                                      "Assets/Landmark/f_05.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-6",
                                      "Assets/Landmark/b_06.jpg",
                                      "Assets/Landmark/f_06.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-7",
                                      "Assets/Landmark/b_07.jpg",
                                      "Assets/Landmark/f_07.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-8",
                                      "Assets/Landmark/b_08.jpg",
                                      "Assets/Landmark/f_08.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);
            group3.Items.Add(new Card("Danh-lam-Item-9",
                                      "Assets/Landmark/b_09.jpg",
                                      "Assets/Landmark/f_09.jpg",
                                      group3));
            AllCards.Add(group3.LastItem);

            AllCards.Add(group3.LastItem);
            AllGroups.Add(group3);

             var group4 = new Category("Rau Cuû",
                                      "Rau Cuû",
                                      "Assets/Vegetable/vegetable.jpg",
                                      "Assets/Vegetable/vegetable2.jpg");
            group4.Items.Add(new Card("Rau-cu-Item-1",
                                      "Assets/Vegetable/b_01.jpg",
                                      "Assets/Vegetable/f_01.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-2",
                                      "Assets/Vegetable/b_02.jpg",
                                      "Assets/Vegetable/f_02.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-3",
                                      "Assets/Vegetable/b_03.jpg",
                                      "Assets/Vegetable/f_03.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-4",
                                      "Assets/Vegetable/b_04.jpg",
                                      "Assets/Vegetable/f_04.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-5",
                                      "Assets/Vegetable/b_05.jpg",
                                      "Assets/Vegetable/f_05.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-6",
                                      "Assets/Vegetable/b_06.jpg",
                                      "Assets/Vegetable/f_06.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-7",
                                      "Assets/Vegetable/b_07.jpg",
                                      "Assets/Vegetable/f_07.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-8",
                                      "Assets/Vegetable/b_08.jpg",
                                      "Assets/Vegetable/f_08.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);
            group4.Items.Add(new Card("Rau-cu-Item-9",
                                      "Assets/Vegetable/b_09.jpg",
                                      "Assets/Vegetable/f_09.jpg",
                                      group4));
            AllCards.Add(group4.LastItem);

            AllCards.Add(group4.LastItem);
            AllGroups.Add(group4);
        }
Exemplo n.º 3
0
        public SampleDataSource()
        {
            var group1 = new Category("Động Vật",
                                      "Động Vật",
                                      "Assets/Animal/animal.jpg");
            group1.Items.Add(new Card("Động-Vật-Item-1",
                                      "Assets/Animal/b_01.jpg",
                                      "Assets/Animal/f_01.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-2",
                                      "Assets/Animal/b_02.jpg",
                                      "Assets/Animal/f_02.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-3",
                                      "Assets/Animal/b_03.jpg",
                                      "Assets/Animal/f_03.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-4",
                                      "Assets/Animal/b_04.jpg",
                                      "Assets/Animal/f_04.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-5",
                                      "Assets/Animal/b_05.jpg",
                                      "Assets/Animal/f_05.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-6",
                                      "Assets/Animal/b_06.jpg",
                                      "Assets/Animal/f_06.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-7",
                                      "Assets/Animal/b_07.jpg",
                                      "Assets/Animal/f_07.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-8",
                                      "Assets/Animal/b_08.jpg",
                                      "Assets/Animal/f_08.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-9",
                                      "Assets/Animal/b_09.jpg",
                                      "Assets/Animal/f_09.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-10",
                                      "Assets/Animal/b_10.jpg",
                                      "Assets/Animal/f_10.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-11",
                                      "Assets/Animal/b_11.jpg",
                                      "Assets/Animal/f_11.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-12",
                                      "Assets/Animal/b_12.jpg",
                                      "Assets/Animal/f_12.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-13",
                                      "Assets/Animal/b_13.jpg",
                                      "Assets/Animal/f_13.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-14",
                                      "Assets/Animal/b_14.jpg",
                                      "Assets/Animal/f_14.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-15",
                                      "Assets/Animal/b_15.jpg",
                                      "Assets/Animal/f_15.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-16",
                                      "Assets/Animal/b_16.jpg",
                                      "Assets/Animal/f_16.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            group1.Items.Add(new Card("Động-Vật-Item-17",
                                      "Assets/Animal/b_17.jpg",
                                      "Assets/Animal/f_17.jpg",
                                      group1));
            AllCards.Add(group1.LastItem);
            AllGroups.Add(group1);

            var group2 = new Category("Đồ đạc trong nhà",
                                      "Đồ đạc trong nhà",
                                      "Assets/Funiture/funiture.jpg");
            group2.Items.Add(new Card("Đồ-đạc-Item-1",
                                      "Assets/Funiture/b_01.jpg",
                                      "Assets/Funiture/f_01.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-2",
                                      "Assets/Funiture/b_02.jpg",
                                      "Assets/Funiture/f_02.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-3",
                                      "Assets/Funiture/b_03.jpg",
                                      "Assets/Funiture/f_03.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-4",
                                      "Assets/Funiture/b_04.jpg",
                                      "Assets/Funiture/f_04.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-5",
                                      "Assets/Funiture/b_05.jpg",
                                      "Assets/Funiture/f_05.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-6",
                                      "Assets/Funiture/b_06.jpg",
                                      "Assets/Funiture/f_06.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-7",
                                      "Assets/Funiture/b_07.jpg",
                                      "Assets/Funiture/f_07.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-8",
                                      "Assets/Funiture/b_08.jpg",
                                      "Assets/Funiture/f_08.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-9",
                                      "Assets/Funiture/b_09.jpg",
                                      "Assets/Funiture/f_09.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            group2.Items.Add(new Card("Đồ-đạc-Item-10",
                                      "Assets/Funiture/b_10.jpg",
                                      "Assets/Funiture/f_10.jpg",
                                      group2));
            AllCards.Add(group2.LastItem);
            AllGroups.Add(group2);
        }