Beispiel #1
0
        private static void ShowMediaCommands(Pebble pebble)
        {
            Console.WriteLine("Listening for media commands");
            pebble.RegisterCallback <MusicControlResponse>(result =>
                                                           DisplayResult(result, x => string.Format("Media Control Response " + x.Command)));

            var menu = new Menu("Return to menu");

            while (true)
            {
                switch (menu.ShowMenu())
                {
                case 0:
                    return;
                }
            }
        }