public void SetBrightness(float value) { Vector3 pos = transform.localPosition; pos.y = Mathf.Lerp(minClamp, maxClamp, value); transform.localPosition = pos; previousY = pos.y; BrightnessChanged.Invoke(GetBrightness()); }
public void OnNext(T value) { CimSubscriptionResult subscriptionResult = value as CimSubscriptionResult; if (subscriptionResult != null) { var cimInstance = subscriptionResult.Instance; foreach (var item in cimInstance.CimInstanceProperties) { Console.WriteLine(item.Name); Console.WriteLine(item.Value); int test = (byte)item.Value; BrightnessChangedEvent?.Invoke(this, test); } } }
private void trackBar1_Scroll(object sender, EventArgs e) { BrightnessChangedEvent?.Invoke(((TrackBar)sender).Value); }