Beispiel #1
0
        internal Input(AtemSwitcher switcher, IBMDSwitcherInput input)
        {
            inputMonitor                 = new InputMonitor();
            inputMonitor.NameChanged    += (s, e) => UpdateFields();
            inputMonitor.ProgramChanged += (s, e) => UpdateFields();
            inputMonitor.PreviewChanged += (s, e) => UpdateFields();
            this.input = input;
            this.input.AddCallback(inputMonitor);

            long id;

            this.input.GetInputId(out id);
            Id = (int)id;
            UpdateFields();
        }
Beispiel #2
0
 public void Dispose()
 {
     input.RemoveCallback(inputMonitor);
     inputMonitor = null;
     input        = null;
 }