Commit 98644789 authored by Francesco Carraro's avatar Francesco Carraro
Browse files

fixes to switch between lab/xml files reading

parent 1eaaf914
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.Models.Charts
            string value = settingsHelper.get(Constants.Constants.SELECTED_REF_BAND_XMAX);
            if (!string.IsNullOrEmpty(value))
            {
                xMax = value.ToDoubleInvariant();
                XMax = value.ToDoubleInvariant();
                isFound = true;
            }

@@ -105,7 +105,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.Models.Charts
            string value = settingsHelper.get(Constants.Constants.SELECTED_REF_BAND_XMIN);
            if (!string.IsNullOrEmpty(value))
            {
                xMin = value.ToDoubleInvariant();
                XMin = value.ToDoubleInvariant();
                isFound = true;
            }

+5 −0
Original line number Diff line number Diff line
@@ -274,6 +274,11 @@ namespace INAF.Apps.Uwp.SLabDataManager.Models.Containers
            Spectra = new ObservableCollection<IChartSpectrumModel>();
        }

        public void initSelectedRefBandBoundaries()
        {
            SelectedRefBand.initBoundaries();
        }

        protected void addSpectrum(IChartSpectrumModel spectrum)
        {
            Spectra.Add(spectrum);
+3 −0
Original line number Diff line number Diff line
@@ -311,6 +311,9 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels

            base.init();

            /* read again boundaries of band used for RAW spectrum alignment */
            WorkingItems.SpectraContainer.initSelectedRefBandBoundaries();

            IsAnyUserControlOpenRequired = false;
            IsHideAlignmentFlyoutRequired = false;