public CrossThreadHelper(Control form) { TheControl = form; _delegateSetProperty = new DelegateSetProperty(this.SetObjectProperty); _delegateGetProperty = new DelegateGetProperty(this.GetObjectProperty); _delegateCallMethod = new DelegateCallMethod(this.CallObjectMethod); }
public CrossThreadHelper(Control form) { TheControl = form; _delegateSetProperty = new DelegateSetProperty(this.SetObjectProperty); _delegateGetProperty = new DelegateGetProperty(this.GetObjectProperty); _delegateCallMethod = new DelegateCallMethod(this.CallObjectMethod); }
/// <summary> /// 构造函数 /// </summary> public BusyTipOperator(Form tipDialog) { FrmTip = tipDialog; FrmTip.ShowInTaskbar = false; FrmTip.Load += new EventHandler(FrmTip_FormLoad); ShowTipEvent = new AutoResetEvent(false); FrmOpCompletedEvent = new AutoResetEvent(false); DelegateSetProperty = new DelegateSetProperty(this.SetProperty); TipThread = new Thread(new ThreadStart(this.TipThreadRun)); TipThread.Start(); }