private void ChangePreview() { float contrast = (float)(contrastSlider.Value / contrastSlider.Maximum * Const.Constants.MaxContrast); int brightness = (int)brightnessSlider.Value - 255; PreviewChanged?.Invoke(contrast, brightness); }
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; } }
public void OnPreviewChanged() => PreviewChanged?.Invoke();