Esempio n. 1
0
 private void OnValueChange(QsysControl control, float newValue, string stringValue)
 {
     try
     {
         var handler = ValueChange;
         var args    = new QsysControlValueChangeEventArgs(newValue, stringValue);
         Component.OnControlChange(this, args);
         if (handler != null)
         {
             handler(control, args);
         }
     }
     catch (Exception e)
     {
         CloudLog.Exception("Error in QsysControl.OnValueChange()", e);
     }
 }
Esempio n. 2
0
        public QsysChangeGroup Add(QsysControl control)
        {
            var args = new
            {
                Id,
                Component = new
                {
                    control.Component.Name,
                    Controls = new[]
                    {
                        new { control.Name }
                    }
                }
            };

            Core.RequestAsync(OnRequestResponse, "ChangeGroup.AddComponentControl", args);

            return(this);
        }