void IBMDSwitcherInputCallback.Notify(_BMDSwitcherInputEventType eventType) { this._switcherInputEventArgs = new SwitcherInputEventArgs(); switch (eventType) { case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeAreNamesDefaultChanged: this.SwitcherInputEventTypeAreNamesDefaultChanged?.Invoke(this, this._switcherInputEventArgs); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeAvailableExternalPortTypesChanged: this.SwitcherInputEventTypeAvailableExternalPortTypesChanged?.Invoke(this, this._switcherInputEventArgs); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeCurrentExternalPortTypeChanged: this.SwitcherInputEventTypeCurrentExternalPortTypeChanged?.Invoke(this, this._switcherInputEventArgs); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsPreviewTalliedChanged: this.SwitcherInputEventTypeIsPreviewTalliedChanged?.Invoke(this, this._switcherInputEventArgs); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsProgramTalliedChanged: this.SwitcherInputEventTypeIsProgramTalliedChanged?.Invoke(this, this._switcherInputEventArgs); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeLongNameChanged: this.SwitcherInputEventTypeLongNameChanged?.Invoke(this, this._switcherInputEventArgs); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeShortNameChanged: this.SwitcherInputEventTypeShortNameChanged?.Invoke(this, this._switcherInputEventArgs); break; } }
public void Notify(_BMDSwitcherInputEventType eventType) { switch (eventType) { case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeShortNameChanged: break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeLongNameChanged: break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeAreNamesDefaultChanged: break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsProgramTalliedChanged: break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsPreviewTalliedChanged: break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeAvailableExternalPortTypesChanged: break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeCurrentExternalPortTypeChanged: break; default: break; } }
void IBMDSwitcherInputCallback.Notify(_BMDSwitcherInputEventType eventType) { switch (eventType) { case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeLongNameChanged: if (LongNameChanged != null) { LongNameChanged(this, null); } break; } }
void IBMDSwitcherInputCallback.Notify(_BMDSwitcherInputEventType eventType) { switch (eventType) { case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeLongNameChanged: LongNameChanged?.Invoke(this, null); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeShortNameChanged: ShortNameChanged?.Invoke(this, null); break; } }
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; } }
void IBMDSwitcherInputCallback.Notify(_BMDSwitcherInputEventType eventType) { switch (eventType) { case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsProgramTalliedChanged: InvokeHelper.Invoke(() => { ApiSource.IsProgramTallied(out int isProgramTallied); IsProgramTallied = (isProgramTallied != 0); }); break; case _BMDSwitcherInputEventType.bmdSwitcherInputEventTypeIsPreviewTalliedChanged: InvokeHelper.Invoke(() => { ApiSource.IsPreviewTallied(out int isPreviewTallied); IsPreviewTallied = (isPreviewTallied != 0); }); break; } }