Пример #1
0
        public void inputcheck()
        {
            ConsoleKeyInfo input = Console.ReadKey();

            if (input.Key == ConsoleKey.F1)
            {
                leftclick  = true;
                rightclick = false;
                if (count == 0)
                {
                    count = genremax;
                    run   = true;
                }
                else if (count <= genremax)
                {
                    count--;
                    run = true;
                }
            }
            else if (input.Key == ConsoleKey.F2)
            {
                rightclick = true;
                leftclick  = false;
                if (count < genremax)
                {
                    count++;
                    run = true;
                }
                else if (count == genremax)
                {
                    count = 0;
                    run   = true;
                }
            }
            else if (input.Key == ConsoleKey.Enter)
            {
                Console.Clear();
                listtoname(genrelist[count]);
                submenu.choose(title);
            }
            else if (input.Key == ConsoleKey.F3)
            {
                NetflixFlow flow = new NetflixFlow();
                Console.Clear();
                flow.flow();
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            NetflixFlow startnetflix = new NetflixFlow();

            startnetflix.flow();
        }