Esempio n. 1
0
 private void widget_PointEventChanged(object sender, PointColorEvent e)
 {
     this.UpDateData(delegate
     {
         IColorValue colorValue = this._propertyItem.Instance as IColorValue;
         if (e.Type == 0)
         {
             this._propertyItem.SetValue("ColorAngle", (float)e.Value, null);
         }
         else
         {
             this._propertyItem.SetValue("BackColorAlpha", (int)e.Value, null);
         }
     });
 }
 private void widget_PointEventChanged(object sender, PointColorEvent e)
 {
     this.UpDateData((System.Action)(() =>
     {
         IColorValue instance = this._propertyItem.Instance as IColorValue;
         if (e.Type == 0)
         {
             this._propertyItem.SetValue("ColorAngle", (object)(float)e.Value, (object[])null);
         }
         else
         {
             this._propertyItem.SetValue("BackColorAlpha", (object)(int)e.Value, (object[])null);
         }
     }));
 }