/// <summary> /// 显示账号 /// </summary> /// <param name="account">账号</param> private void ShowAccount(string account) { if (this.statusStrip.InvokeRequired == false) { this.ToolStatuAccount.Text = account; } else { ShowAccountInfo accountDelegate = new ShowAccountInfo(this.ShowAccount); this.BeginInvoke(accountDelegate, account); } }
/// <summary> /// 显示IP /// </summary> /// <param name="ip">ip</param> private void ShowIP(string ip) { if (this.statusStrip.InvokeRequired == false) { this.ToolStatuIP.Text = ip; } else { ShowAccountInfo accountDelegate = new ShowAccountInfo(this.ShowIP); this.BeginInvoke(accountDelegate, ip); } }
/// <summary> /// 显示连接状态 /// </summary> /// <param name="linkStatu">linkStatu</param> private void ShowLinkStatu(string linkStatu) { if (this.statusStrip.InvokeRequired == false) { this.ToolStatuLink.Text = linkStatu; } else { ShowAccountInfo accountDelegate = new ShowAccountInfo(this.ShowLinkStatu); this.BeginInvoke(accountDelegate, linkStatu); } }