Esempio n. 1
0
        void AddDevice(IDeckLink decklinkInputDevice)
        {
            DeckLinkInputDevice deckLink = new DeckLinkInputDevice(decklinkInputDevice);


            if (deckLink.deckLinkInput != null)
            {
                comboBoxInputDevice.BeginUpdate();
                comboBoxInputDevice.Items.Add(new StringObjectPair <DeckLinkInputDevice>(deckLink.deviceName, deckLink));
                comboBoxInputDevice.EndUpdate();
                deckLink.SetID(m_mainWindow, m_number);


                if (comboBoxInputDevice.Items.Count == m_number)
                {
                    comboBoxInputDevice.SelectedIndex = m_number - 1;
                    EnableInterface(true);
                    buttonStartStop.Enabled = true;
//                    StartCapture();
                }
            }
        }