Пример #1
0
        public virtual void hazirla()
        {
            Console.WriteLine("Pizza hazırlanıyor.");
            Console.ForegroundColor = ConsoleColor.Green;
            ConsoleProgress progress = new ConsoleProgress();

            progress.ProgressBar(60);
            for (int i = 0; i < 101; i++)
            {
                progress.Update(i);
                System.Threading.Thread.Sleep(50);
            }
        }
Пример #2
0
        public virtual void pisir()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("\nPizza pisiriliyor.");
            Console.ForegroundColor = ConsoleColor.Green;
            ConsoleProgress progress = new ConsoleProgress();

            progress.ProgressBar(60);
            for (int i = 0; i < 101; i++)
            {
                progress.Update(i);
                System.Threading.Thread.Sleep(50);
            }
        }
Пример #3
0
        public virtual void paketle()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("\nPizza paketleniyor.");
            Console.ForegroundColor = ConsoleColor.Green;
            ConsoleProgress progress = new ConsoleProgress();

            progress.ProgressBar(60);
            for (int i = 0; i < 101; i++)
            {
                progress.Update(i);
                System.Threading.Thread.Sleep(50);
            }
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("\nPizza hazır. Afiyet olsun.");
        }