Exemple #1
0
 protected virtual void OnLinkState(LinkArgs e)
 {
     if (URstate_Handler != null)
     {
         URstate_Handler(this, e);
     }
 }
Exemple #2
0
        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));
        }