/// <summary> /// 设置状态 /// </summary> /// <param name="text"></param> public void SetStatusText(string text) { if (StatusLabel.GetCurrentParent().InvokeRequired) { DelegateSet set = DelegateSetStatusText; Invoke(set, new object[] { text }); } else { if (string.IsNullOrEmpty(text)) { return; } DelegateSetStatusText(text); } }