Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            GetCameraInfo TestGet = new GetCameraInfo();

            TestGet.TryGetConnect(DeviceType.GigE, out DeviceNum, out AllCameraInfo, out ErrorMessage);
            textBox1.Text = DeviceNum.ToString();
            textBox2.Text = ErrorMessage;
            for (int i = 0; i < DeviceNum; i++)
            {
                comboBox1.Items.Insert(i, AllCameraInfo[i].ToString());
            }
            if (DeviceNum > 0)
            {
                comboBox1.SelectedIndex = 0;
            }
        }
Example #2
0
        //public static ICameraInfo ChosenCameraInfo;

        public void GetCameraNum()
        {
            GetCameraInfo TestGet = new GetCameraInfo();

            TestGet.TryGetConnect(DeviceType.GigE, out CameraNum, out AllCameraInfo, out ErrorMessage);
        }