Пример #1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }

            m_AstrometryController.RegisterCalibrationRunner(null);

            base.Dispose(disposing);
        }
Пример #2
0
        internal ucCalibrationPanel(AstrometryController astrometryController, VideoController videoController, IPlateCalibrationTool configTool)
        {
            InitializeComponent();

            m_AstrometryController         = astrometryController;
            m_VideoController              = videoController;
            m_CalibrationTool              = configTool;
            m_CalibrationTool.AreaChanged += m_CalibrationTool_AreaChanged;

            pnlDebugFits.Visible = false;

            m_AstrometryController.RegisterCalibrationRunner(this);

            rbIdentify3Stars.Checked = true;
            UpdateEnabledStateOfScrollControls();

            m_InitialPixelmap = m_VideoController.GetCurrentAstroImage(false).Pixelmap;
            m_VideoController.ApplyDisplayModeAdjustments(m_InitialPixelmap.DisplayBitmap, false, m_InitialPixelmap);

            m_CalibrationTool.ActivateOsdAreaSizing();

            rbInclusion.Checked = TangraConfig.Settings.PlateSolve.SelectedScopeRecorderConfig.IsInclusionArea;
        }