public TWindowController() { this.bll = new TWindowBLL(this.AreaNo); this.winBusiBll = new TWindowBusinessBLL(this.AreaNo); this.dicBll = new TDictionaryBLL(this.AreaNo); this.areaBll = new TWindowAreaBLL(this.AreaNo); this.unitBll = new TUnitBLL(this.AreaNo); this.busiBll = new TBusinessBLL(this.AreaNo); this.userBll = new TUserBLL(this.AreaNo); }
private void button2_Click(object sender, EventArgs e) { richTextBox1.Text = ""; TWindowBLL dal = new TWindowBLL(); for (int i = 0; i < 100; i++) { new Thread(() => { var id = dal.GetMaxId(); Thread.Sleep(5000); this.Invoke(new Action(() => { this.richTextBox1.Text += id + "\r\n"; })); }) { IsBackground = true }.Start(); } }
public TLedWindowController() { windowBll = new TWindowBLL(this.AreaNo); lcBll = new TLedControllerBLL(this.AreaNo); ledWinBll = new TLedWindowBLL(this.AreaNo); }