public void readCameraValues() { frmImaging i = new frmImaging(); imagingCamExposureDurationMins = Convert.ToInt16(i.numMins.Value); imagingCamExposureDurationSecs = Convert.ToInt16(i.numSecs.Value); imagingCamExposureDurationMs = Convert.ToInt16(i.numMs.Value); imagingCamBinning = Convert.ToInt16(i.numBinning.Value); imagingCamAutoRepeat = i.chkAutoRepeat.Checked; imagingCamCoolerOn = i.chkCoolerOn.Checked; imagingCamCoolerTargetTemp = Convert.ToInt16(i.numTargetTemp.Value); if (i.rbFlatFrame.Checked) { imagingCamFrameType = "Flat"; } else if (i.rbDarkFrame.Checked) { imagingCamFrameType = "Dark"; } else if (i.rbBiasFrame.Checked) { imagingCamFrameType = "Bias"; } else { imagingCamFrameType = "Light"; } }
public void setCameraValues() { frmImaging i = new frmImaging(); ImagingCam.BinX = ImagingCam.BinY = (short)imagingCamBinning; ImagingCam.NumX = ImagingCam.CameraXSize; ImagingCam.NumY = ImagingCam.CameraYSize; if (imagingCamCoolerOn) { ImagingCam.CoolerOn = true; ImagingCam.SetCCDTemperature = (int)i.numTargetTemp.Value; } }
public clsForms(ref frmMain main, ref frmImaging imaging, ref frmConfig config, ref frmGuiding guiding, ref frmImageRun imagerun) { MainForm = main; ImagingForm = imaging; ConfigForm = config; GuidingForm = guiding; ImageRunForm = imagerun; }