//creates a new form Update for threading support private void atmCreate_Click_1(object sender, EventArgs e) { FBank bank_ref = this; //create & define thread Thread new_atm = new Thread(() => { FAtm f = new FAtm(); f.setAtm(bank_ref); Application.Run(f); }); new_atm.Start(); }
/* * set bank main computer reference * for accessing data * */ public void setAtm(FBank point) { fPointer = point; }