コード例 #1
0
    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());
    }
コード例 #2
0
        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);
                }
            }
        }
コード例 #3
0
ファイル: SettingDlg.cs プロジェクト: b-epelbaum/andronet
 private void trackBar1_Scroll(object sender, EventArgs e)
 {
     BrightnessChangedEvent?.Invoke(((TrackBar)sender).Value);
 }