public void ShowSyncStatus() { if (this.InvokeRequired) { ShowSyncStatusDelegate dlg = new ShowSyncStatusDelegate(this.ShowSyncStatus); this.Invoke(dlg); return; } //do something with the GUI control here if (FoldersPanel.Visible) { //update the sync status stuff... FoldersPanel.UpdateSyncStatus(); } }
public void ShowSyncStatus() { if (this.InvokeRequired) { ShowSyncStatusDelegate dlg = new ShowSyncStatusDelegate(this.ShowSyncStatus); this.Invoke(dlg); return; } //do something with the GUI control here if (FoldersPanel.Visible) { //update the sync status stuff... FoldersPanel.UpdateSyncStatus(); } }