private void setThreadedStatusLabel(String text) { if (this.statusStrip.InvokeRequired) { setThreadedStatusLabelCallback statusLabelCallback = new setThreadedStatusLabelCallback(setThreadedStatusLabel); this.obj.Invoke(statusLabelCallback, text); } else { this.toolStripStatusLabel1.Text = text; } }
void setThreadedStatusLabel(String info) { if (this.statusStripInfo.InvokeRequired) { setThreadedStatusLabelCallback StatusLabel = new setThreadedStatusLabelCallback(setThreadedStatusLabel); try { this.obj.Invoke(StatusLabel, info); } catch { } } else { statusGlowne.Text = info; } }
public void setThreadedErrorLabel(String text) { if (this.ErrorLabel.InvokeRequired) { setThreadedStatusLabelCallback statusLabelCallback = new setThreadedStatusLabelCallback(setThreadedErrorLabel); this.obj.Invoke(statusLabelCallback, text); } else { this.ErrorLabel.Text = text; this.ErrorLabel.Visible = true; this.changeEnabledAllItems(true); } }