Exemplo n.º 1
0
        static void Main(string[] args)
        {
            DummyOffice off = new DummyOffice("Branch-123", 5, 8, 5);

            off.MaximumServingTime = TimeSpan.FromSeconds(10d);


            off.Open();

            Console.WriteLine("(press any key to start draw.)");
            Console.ReadKey();

            while (true)
            {
                var r = new DummyOfficeTextPresenter(off)
                {
                    RowWidth = 80
                };
                Console.Clear();
                Console.WriteLine(r.ToString());
                Thread.Sleep(100);
                if (Console.KeyAvailable && Console.ReadKey().Key == ConsoleKey.Escape)
                {
                    break;
                }
            }

            off.Close();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            DummyOffice off = new DummyOffice("Branch-123", 5, 8, 5);
            off.MaximumServingTime = TimeSpan.FromSeconds(10d);

            off.Open();

            Console.WriteLine("(press any key to start draw.)");
            Console.ReadKey();

            while (true)
            {
                var r = new DummyOfficeTextPresenter(off) { RowWidth = 80 };
                Console.Clear();
                Console.WriteLine(r.ToString());
                Thread.Sleep(100);
                if (Console.KeyAvailable && Console.ReadKey().Key == ConsoleKey.Escape)
                    break;
            }

            off.Close();
        }
 public DummyOfficeTextPresenter(DummyOffice office)
 {
     this.office = office;
 }
 public DummyOfficeTextPresenter(DummyOffice office)
 {
     this.office = office;
 }