public MainForm() { InitializeComponent(); FormClosing += MainForm_FormClosing; Shown += MainForm_Shown; textBoxExtIP.Text = "192.168.0.100"; comboBoxVideo.DataSource = ManagedConductor.GetVideoDevices(); }
// IEnumerable<device> devices = Devices; //public List<Object> objectList = new List<Object>(List<string> Devices); // List<object> Obj1AsObjects = Devices.Cast<object>().ToList(); // public ConcurrentDictionary<string,new List<string>Devices> name = new ConcurrentDictionary<string,string>(); public MainForm() { InitializeComponent(); FormClosing += MainForm_FormClosing; Shown += MainForm_Shown; textBoxExtIP.Text = "192.168.0.100"; Devices = ManagedConductor.GetVideoDevices(); // we have to implemtn the GetAudioDevices() to enable the audio comboBoxVideo.DataSource = Devices; comboBox1.DataSource = ManagedConductor.GetVideoDevices(); //comboBoxVideo.SelectedIndex = 1; }