Esempio n. 1
0
        //static System.Windows.Forms.Timer timer;

        // constructor with reference to a bank system
        public ATMForm(ref BankSystem bankSys)
        {
            InitializeComponent();
            initializeButtons();
            displayPrompt();
            bankSystem  = bankSys;
            staticLabel = new Label();
            Controls.Add(staticLabel);
            staticLabel.Hide();
            //staticLabel.ForeColor = Window;
            staticLabel.Location = new System.Drawing.Point(131, 220);
            staticLabel.Size     = new System.Drawing.Size(89, 28);
            staticLabel.Text     = "Continue";
            staticLabel.Font     = new System.Drawing.Font("Microsoft Sans Serif", 13.8f);
            staticLabel.BringToFront();
            timerTicks = 0;
        }
Esempio n. 2
0
 //constructor
 public BankSys()
 {
     InitializeComponent();
     bankSystem = new BankSystem();
     updateAccountsDisplay();
 }
Esempio n. 3
0
 public WithdrawThreadWithState(int number, ref BankSystem banksys, int index)
 {
     this.num        = number;
     this.bankSystem = banksys;
     accountIndex    = index;
 }