Ejemplo n.º 1
0
        public override void ShowPlayer()
        {
            SoundPlayerSingletone.GetPlayerIstanse().PlayByRelPath("\\Sound\\lmfao-party.wav");
            System.Threading.Thread.Sleep(2000);
            ConsoleColor backgroundColor = Console.BackgroundColor;
            ConsoleColor forgroundColor  = Console.ForegroundColor;
            bool         flag            = true;

            for (int i = 0; i < 50; ++i)
            {
                Console.Clear();
                Console.WriteLine(strDisco);

                if (flag)
                {
                    Console.BackgroundColor = ConsoleColor.Red;
                    Console.ForegroundColor = ConsoleColor.Yellow;
                    flag = false;
                }
                else
                {
                    Console.BackgroundColor = ConsoleColor.Green;
                    Console.ForegroundColor = ConsoleColor.Cyan;
                    flag = true;
                }

                System.Threading.Thread.Sleep(10);
            }
            Console.Clear();
            Console.BackgroundColor = backgroundColor;
            Console.ForegroundColor = forgroundColor;
            base.ShowPlayer();
        }
Ejemplo n.º 2
0
 private void Disco()
 {
     SoundPlayerSingletone.GetPlayerIstanse().PlayByRelPath("\\Sound\\lmfao-party.wav");
 }