Exemple #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);
        }
Exemple #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;
            }
        }
Exemple #3
0
 public void OnPreviewChanged() => PreviewChanged?.Invoke();