예제 #1
0
        private void ChangePreview()
        {
            float contrast   = (float)(contrastSlider.Value / contrastSlider.Maximum * Const.Constants.MaxContrast);
            int   brightness = (int)brightnessSlider.Value - 255;

            PreviewChanged?.Invoke(contrast, brightness);
        }
예제 #2
0
        void IBMDSwitcherInputCallback.Notify(_BMDSwitcherInputEventType eventType)
        {
            switch (eventType)
            {
            case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeLongNameChanged:
                NameChanged?.Invoke(this, null);
                break;

            case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsProgramTalliedChanged:
                ProgramChanged?.Invoke(this, null);
                break;

            case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsPreviewTalliedChanged:
                PreviewChanged?.Invoke(this, null);
                break;
            }
        }
예제 #3
0
 public void OnPreviewChanged() => PreviewChanged?.Invoke();