public void SetLoadIcon(bool bStatus) { if (this.InvokeRequired) { SetLoadIconCallback stDelegeate = new SetLoadIconCallback(SetLoadIcon); this.BeginInvoke(stDelegeate, new object[] { bStatus }); } else { this.toolBtnOpen.Enabled = bStatus; } }
public void DisableOtherIcon(bool bEnable) { if (this.InvokeRequired) { SetLoadIconCallback stDelegeate = new SetLoadIconCallback(DisableOtherIcon); this.BeginInvoke(stDelegeate, new object[] { bEnable }); } else { this.SetDisableIcon(bEnable); } }
public void SetWaitStatus(bool bEnable) { if (this.InvokeRequired) { SetLoadIconCallback stDelegeate = new SetLoadIconCallback(SetWaitStatus); this.BeginInvoke(stDelegeate, new object[] { bEnable }); } else { if (bEnable) { this.SetCursor(Cursors.WaitCursor); this.tslblWorking.Visible = true; } else { this.SetCursor(Cursors.Default); this.tslblWorking.Visible = false; } } }