private void btnCamera_Click(object sender, EventArgs e) { //#if _USE_BASLER_PYLON AFrmCamera setup = new AFrmCamera(false); setup.SetParentCenter(this.Left, this.Right, this.Top, this.Bottom); setup.Show(this); //#endif }
private void btnSelectCamera_Click(object sender, EventArgs e) { AFrmCamera select = new AFrmCamera(true); select.SetParentCenter(this.Left, this.Right, this.Top, this.Bottom); select.ShowDialog(this); if (select.SerialNumber != null && select.SerialNumber.Length > 0) { txtSerialNumber.Text = select.SerialNumber; } }