private void button1_Click(object sender, EventArgs e) { var result = _myCameraUrlBuilder.ShowDialog(); if (result == DialogResult.OK) { tb_cameraUrl.Text = _myCameraUrlBuilder.CameraURL; btn_Connect.Enabled = true; } }
private void btn_compose_Click(object sender, EventArgs e) { var result = _myCameraUrlBuilder.ShowDialog(); if (result != DialogResult.OK) { return; } tb_cameraUrl.Text = _myCameraUrlBuilder.CameraURL; button_Connect.Enabled = true; }
private void button3_Click(object sender, EventArgs e) { var result = boardCameraUrlBuilder.ShowDialog(); if (result != DialogResult.OK) { return; } textBox1.Text = boardCameraUrlBuilder.CameraURL; button1.Enabled = true; }
public void StartCamera() { var data = new CameraURLBuilderData { DeviceTypeFilter = DiscoverDeviceType.USB }; var myCameraBuilder = new CameraURLBuilderWF(data); var result = myCameraBuilder.ShowDialog(); if (result != System.Windows.Forms.DialogResult.OK) { return; } camera = new OzekiCamera(myCameraBuilder.CameraURL); camera.Start(); }
private void btn_btn_Compose_Click(object sender, EventArgs e) { var data = new CameraURLBuilderData { DeviceTypeFilter = DiscoverDeviceType.USB }; _myCameraUrlBuilder = new CameraURLBuilderWF(data); var result = _myCameraUrlBuilder.ShowDialog(); if (result != DialogResult.OK) { return; } textBox1.Text = _myCameraUrlBuilder.CameraURL; btn_Connect.Enabled = true; }
public bool StartCamera() { if (Instance.IsLocalCameraUsed == false) { var data = new CameraURLBuilderData { DeviceTypeFilter = DiscoverDeviceType.USB }; var myCameraBuilder = new CameraURLBuilderWF(data); var result = myCameraBuilder.ShowDialog(); if (result != System.Windows.Forms.DialogResult.OK) { return(false); } camera = new OzekiCamera(myCameraBuilder.CameraURL); camera.Start(); } return(true); }