private void setThreadedStatusLabel(String text) { if (this.statusStrip.InvokeRequired) { setThreadedStatusLabelCallback statusLabelCallback = new setThreadedStatusLabelCallback(setThreadedStatusLabel); this.obj.Invoke(statusLabelCallback, text); } else { this.toolStripStatusLabel1.Text = text; } }
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); } }