Exemple #1
0
 // Initializes a new instance of the <see cref="SampleDataItem" /> class.
 public SampleDataItem(string uniqueId, string title, string subtitle, string image, string description, SampleDataCollection group, Type navigationPage)
     : base(uniqueId, title, subtitle, image, description)
 {
     this.group          = group;
     this.navigationPage = navigationPage;
 }
Exemple #2
0
        public SampleDataSource()
        {
            //Elementos del menú de inicio
            var menuOptions = new SampleDataCollection(
                "MenuOptions",
                "Menu",
                "Options",
                garageImage,
                "Menu Group");

            menuOptions.Items.Add(
                new SampleDataItem(
                    "Menu-PlayNow",
                    "Play Now",
                    "Play a default drum kit",
                    garageImage,
                    "Start playing whith a default drum kit.",
                    menuOptions,
                    typeof(Play)));
            menuOptions.Items.Add(
                new SampleDataItem(
                    "Menu-Customize",
                    "Customize",
                    "Customize your drum kit",
                    garageImage,
                    "Create your own drum kit and play it.",
                    menuOptions,
                    typeof(Customize)));
            menuOptions.Items.Add(
                new SampleDataItem(
                    "Menu-Help",
                    "Help",
                    "Lost? Get some help",
                    helpImage,
                    "Maybe I can lend you a hand.",
                    menuOptions,
                    typeof(Help)));
            menuOptions.Items.Add(
                new SampleDataItem(
                    "Menu-Exit",
                    "Exit",
                    "",
                    exitImage,
                    "Exit Kinect Drums.",
                    menuOptions));

            this.AllGroups.Add(menuOptions);

            //Elementos del modo customize
            var drumPieces = new SampleDataCollection(
                "DrumPieces",
                "Drum",
                "Pieces",
                garageImage,
                "Drum Pieces");

            drumPieces.Items.Add(
                new SampleDataItem(
                    "bass",
                    "Bass",
                    "",
                    "/Images/Bass.png",
                    "",
                    drumPieces));

            drumPieces.Items.Add(
                new SampleDataItem(
                    "snare",
                    "Snare",
                    "",
                    "/Images/Snare.png",
                    "",
                    drumPieces));

            drumPieces.Items.Add(
                new SampleDataItem(
                    "middleTom",
                    "Middle Tom",
                    "",
                    "/Images/MiddleTom.png",
                    "",
                    drumPieces));

            drumPieces.Items.Add(
                new SampleDataItem(
                    "floorTom",
                    "Floor Tom",
                    "",
                    "/Images/FloorTom.png",
                    "",
                    drumPieces));

            drumPieces.Items.Add(
                new SampleDataItem(
                    "crash",
                    "Crash",
                    "",
                    "/Images/Crash.png",
                    "",
                    drumPieces));

            drumPieces.Items.Add(
                new SampleDataItem(
                    "hihat",
                    "Hihat",
                    "",
                    "/Images/Hihat.png",
                    "",
                    drumPieces));

            this.AllGroups.Add(drumPieces);
        }