public void OnValueChanged(int index, object value, bool user)
 {
     if (index == 2)
     {
         GXDLMSDisconnectControl target = Target as GXDLMSDisconnectControl;
         this.OutputStateCB.Checked = target.OutputState;
     }
     else if (index != 0)
     {
         throw new IndexOutOfRangeException("index");
     }
 }
 public void OnValueChanged(int attributeID, object value)
 {
     if (attributeID == 2)
     {
         GXDLMSDisconnectControl target = Target as GXDLMSDisconnectControl;
         this.OutputStateCB.Checked = target.OutputState;
     }
     else if (attributeID != 0)
     {
         throw new IndexOutOfRangeException("attributeID");
     }
 }
 public void OnValueChanged(int index, object value, bool user, bool connected)
 {
     if (index == 2)
     {
         OutputStateCB.CheckedChanged -= new System.EventHandler(OutputStateCB_CheckedChanged);
         GXDLMSDisconnectControl target = Target as GXDLMSDisconnectControl;
         this.OutputStateCB.Checked    = target.OutputState;
         OutputStateCB.CheckedChanged += new System.EventHandler(OutputStateCB_CheckedChanged);
     }
     else if (index != 0)
     {
         throw new IndexOutOfRangeException("index");
     }
 }
 public void OnValueChanged(GXDLMSViewArguments arg)
 {
     if (arg.Index == 2)
     {
         OutputStateCB.CheckedChanged -= new System.EventHandler(OutputStateCB_CheckedChanged);
         GXDLMSDisconnectControl target = Target as GXDLMSDisconnectControl;
         this.OutputStateCB.Checked    = target.OutputState;
         OutputStateCB.CheckedChanged += new System.EventHandler(OutputStateCB_CheckedChanged);
     }
     else if (arg.Index != 0)
     {
         throw new IndexOutOfRangeException("index");
     }
 }