Ejemplo 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;
        }
Ejemplo n.º 2
0
 //constructor
 public BankSys()
 {
     InitializeComponent();
     bankSystem = new BankSystem();
     updateAccountsDisplay();
 }
Ejemplo n.º 3
0
 public WithdrawThreadWithState(int number, ref BankSystem banksys, int index)
 {
     this.num        = number;
     this.bankSystem = banksys;
     accountIndex    = index;
 }