private void ShowHideProgress(bool ShowHide) { if (ShowHide) { PnlProg.Invoke(new MethodInvoker(() => { PnlProg.Show(); layoutControlItemPnlProg.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; })); } else { PnlProg.Invoke(new MethodInvoker(() => { PnlProg.Hide(); layoutControlItemPnlProg.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; })); } Application.DoEvents(); }
private void ChangeProgressCaption(string Caption) { PnlProg.Invoke(new MethodInvoker(() => { PnlProg.Caption = Caption; })); Application.DoEvents(); }