示例#1
0
        public Bank(Bank bank)
        {
            this.manager = new OperationManager(bank.manager);
            this.listBankWindows = new List<BankWindow>();
            for (int i = 0; i < bank.countBankWindows; i++)
            {
                BankWindow bw = new BankWindow(bank.listBankWindows[i]);
                bw.setManager(this.manager);
                this.listBankWindows.Add(bw);
            }

            this.clientQueue = new ClientQueue(bank.clientQueue);
            this.timer = new Timer(bank.periodTimer);
            this.periodTimer = bank.periodTimer;

            this.timer.Elapsed += OnTimedEvent;
            this.numberOfNewClients = bank.numberOfNewClients;
            this.countBankWindows = bank.countBankWindows;
            this.nameClients = bank.nameClients;
            //this.timerActive = bank.timerActive;
        }