Example #1
0
        private void ApplyValuesNoSave()
        {
            m_DisplaySettings.SpectraLineColor     = ucColorPickerReferenceStar.SelectedColor;
            m_DisplaySettings.KnownLineColor       = ucColorPickerKnownLine.SelectedColor;
            m_DisplaySettings.GridLinesColor       = ucColorPickerGridLines.SelectedColor;
            m_DisplaySettings.LegendColor          = ucColorPickerGridLegend.SelectedColor;
            m_DisplaySettings.SpectraApertureColor = ucColorPickerAperture.SelectedColor;
            m_DisplaySettings.PlotBackgroundColor  = ucColorPickerBackground.SelectedColor;

            m_DisplaySettings.Initialize();
        }
        internal SpectroscopyController(Form mainFormView, VideoController videoController)
        {
            m_MainFormView          = mainFormView;
            m_VideoController       = videoController;
            m_ViewSpectraForm       = null;
            SpectraReductionContext = new SpectraReductionContext();

            m_DisplaySettings = new TangraConfig.SpectraViewDisplaySettings();
            m_DisplaySettings.Load();
            m_DisplaySettings.Initialize();
        }
        internal SpectroscopyController(Form mainFormView, VideoController videoController)
        {
            m_MainFormView = mainFormView;
            m_VideoController = videoController;
            m_ViewSpectraForm = null;
            SpectraReductionContext = new SpectraReductionContext();

            m_DisplaySettings = new TangraConfig.SpectraViewDisplaySettings();
            m_DisplaySettings.Load();
            m_DisplaySettings.Initialize();
        }
Example #4
0
 public void SetSpectraViewFormCustomizer(ISpectraViewFormCustomizer spectraViewCustomizer)
 {
     m_SpectraViewCustomizer = spectraViewCustomizer;
     if (spectraViewCustomizer != null)
     {
         m_DisplaySettings = spectraViewCustomizer.FormDisplaySettings;
     }
     else
     {
         m_DisplaySettings = new TangraConfig.SpectraViewDisplaySettings();
         m_DisplaySettings.Load();
         m_DisplaySettings.Initialize();
     }
 }
 public void SetSpectraViewFormCustomizer(ISpectraViewFormCustomizer spectraViewCustomizer)
 {
     m_SpectraViewCustomizer = spectraViewCustomizer;
     if (spectraViewCustomizer != null)
     {
         m_DisplaySettings = spectraViewCustomizer.FormDisplaySettings;
     }
     else
     {
         m_DisplaySettings = new TangraConfig.SpectraViewDisplaySettings();
         m_DisplaySettings.Load();
         m_DisplaySettings.Initialize();
     }
 }
Example #6
0
        private void OnColourPaletteClicked(object sender, EventArgs e)
        {
            var mi = sender as ToolStripMenuItem;

            if (mi != null)
            {
                var palette = (TangraConfig.ColourPalette)Convert.ToInt32(mi.Tag);

                m_DisplaySetting.AbsFluxPlotPalette = palette;
                m_DisplaySetting.Initialize();
                PlotCalibration();

                CheckSelectedPaletteMenuItem(m_DisplaySetting.AbsFluxPlotPalette);
            }
        }