Exemplo n.º 1
0
 public frmImageRun(ref clsSharedData d, ref clsForms f)
 {
     InitializeComponent();
     sd   = d;
     form = f;
     chkArrayFileDirExists();
 }
Exemplo n.º 2
0
 public frmImaging(ref clsSharedData d, ref clsTargetObject t, ref clsForms f)
 {
     InitializeComponent();
     sd   = d;
     to   = t;
     form = f;
 }
Exemplo n.º 3
0
 public frmConfig(ref clsSharedData d, ref clsForms f)
 {
     InitializeComponent();
     sd   = d;
     form = f;
     //loadSharedData();
     writeConfigValuesToScreen();
 }
Exemplo n.º 4
0
 public ASCOMCamera(string CamID, ref clsSharedData d, ref clsForms f)
     : base(CamID)
 {
     this.ExposureTimer.Elapsed += new ElapsedEventHandler(this.ExposureTimerTick);
     ExposureTimer.Interval      = 100;
     ExposureTimer.Enabled       = false;
     sd   = d;
     form = f;
 }
Exemplo n.º 5
0
        //User_Profile Prof = new User_Profile();


        public ParentForm()
        {
            InitializeComponent();
            forms = new clsForms(ref MainForm, ref ImagingForm, ref ConfigForm, ref GuidingForm, ref ImageRunForm);

            forms.MainForm               = new frmMain(ref sharedData, ref targetObject, ref forms);
            forms.ImagingForm            = new frmImaging(ref sharedData, ref targetObject, ref forms);
            forms.GuidingForm            = new frmGuiding(ref sharedData, ref forms);
            forms.ConfigForm             = new frmConfig(ref sharedData, ref forms);
            forms.ImageRunForm           = new frmImageRun(ref sharedData, ref forms);
            forms.MainForm.MdiParent     = this;
            forms.ImagingForm.MdiParent  = this;
            forms.GuidingForm.MdiParent  = this;
            forms.ConfigForm.MdiParent   = this;
            forms.ImageRunForm.MdiParent = this;
        }
Exemplo n.º 6
0
        public void displayImage(clsSharedData sharedData, clsForms form)
        {
            sharedData.F = new fitsHeader();
            Graphics g = form.ImagingForm.pictureBox1.CreateGraphics();

            if (form.ImagingForm.InvokeRequired)
            {
                form.ImagingForm.Invoke(new Action <clsSharedData, clsForms>(displayImage), new object[] { sharedData, form });
                return;
            }

            if (!sharedData.ImagingCam.ImageReady)
            {
                System.Threading.Thread.Sleep(500);
            }
            System.Threading.Thread.Sleep(500);
            try
            {
                sharedData.theImage.LastExposureDuration = sharedData.ImagingCam.LastExposureDuration;
            }
            catch
            {
                //Used to handle exception raised if there is no LastExposureDuration (ie, this is the first image)
            }

            sharedData.theImage.LastExposureStartTime = sharedData.ImagingCam.LastExposureStartTime;
            form.ImagingForm.pictureBox1.Size         = new System.Drawing.Size(sharedData.ImagingCam.ExposureWidth, sharedData.ImagingCam.ExposureHeight);


            g.DrawImage(sharedData.theImage.bmp, new Rectangle(0, 0, sharedData.ImagingCam.ExposureWidth, sharedData.ImagingCam.ExposureHeight));
            form.ImagingForm.ImageFromCam = true;


            form.ImagingForm.btnStop.Enabled       = false;
            form.ImagingForm.btnAbort.Enabled      = false;
            form.ImagingForm.btnStart.Enabled      = true;
            form.ImagingForm.chkAutoRepeat.Enabled = true;


            if (form.ImagingForm.isAutoRepeat)
            {
                form.ImagingForm.autoRepeatImageTaken = true;
            }
            sharedData.imagecomplete = true;
            clsStatics.imageComplete = true;
        }
Exemplo n.º 7
0
 public ASCOMFilterWheel(string FWID, ref clsSharedData d, ref clsForms f)
     : base(FWID)
 {
     sd   = d;
     form = f;
 }
Exemplo n.º 8
0
 public frmGuiding(ref clsSharedData d, ref clsForms f)
 {
     InitializeComponent();
     sd   = d;
     form = f;
 }