protected virtual void OnLinkState(LinkArgs e) { if (URstate_Handler != null) { URstate_Handler(this, e); } }
private void OnUR_LinkInfo(object sender, LinkArgs e) { this.Invoke((MethodInvoker)(() => label_LserverState.Text = e.state)); if (e.state == "Connect") this.Invoke((MethodInvoker)(() => panel_Larm.BackColor = Color.YellowGreen)); else this.Invoke((MethodInvoker)(() => panel_Larm.BackColor = Color.Salmon)); }