Commit 1cfd973e authored by Francesco Carraro's avatar Francesco Carraro
Browse files

adding saving singleAcquisitionsFiles

parent 4580de5f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -236,7 +236,6 @@
    <Compile Include="Models\Chart\SpectraFactory.cs" />
    <Compile Include="Models\Chart\SpectrumColorModel.cs" />
    <Compile Include="Models\Containers\SpectraSummariesContainer.cs" />
    <Compile Include="Models\FolderSelection\InputFileModel.cs" />
    <Compile Include="Models\Logbook\LogBookItem.cs" />
    <Compile Include="Models\Logbook\LogBookItemAdding.cs" />
    <Compile Include="Models\Logbook\LogBookItemFix.cs" />
+0 −47
Original line number Diff line number Diff line
using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.Generic;

namespace INAF.Apps.Uwp.SLabDataManager.Models.FolderSelection
{
    public sealed class InputFileModel : ObservableObject
    {
        public InputFileModel()
        { }

        public InputFileModel(string path, string name)
        {
            Path = path;
            Name = name;
            IsChecked = false;
        }

        private bool isChecked;
        public bool IsChecked
        {
            get { return isChecked; }
            set { SetProperty(ref isChecked, value); }
        }

        private string name;
        public string Name
        {
            get { return name; }
            set { SetProperty(ref name, value); }
        }

        public string Path { get; set; }
    }

    public sealed class InputFileModelEqualityComparer : IEqualityComparer<InputFileModel>
    {
        bool IEqualityComparer<InputFileModel>.Equals(InputFileModel x, InputFileModel y)
        {
            return x.Path == y.Path && x.Name == y.Name;
        }

        int IEqualityComparer<InputFileModel>.GetHashCode(InputFileModel obj)
        {
            return obj.Name.GetHashCode() * obj.Path.GetHashCode();
        }
    }
}
+1 −1
Original line number Diff line number Diff line
using INAF.Apps.Uwp.SLabDataManager.Models.FolderSelection;
using INAF.Libraries.NetStandard.SLabCommonModels.Models.Files;
using System.Collections.Generic;
using Windows.Storage;

+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
  <Identity
    Name="INAF.Apps.Uwp.SLabDataManager"
    Publisher="CN=INAF-IAPS, O=INAF, C=IT"
    Version="1.0.11.0" />
    Version="1.0.13.0" />

  <mp:PhoneIdentity PhoneProductId="07F38165-05DE-4ED7-8514-60D1E8CDCBFE" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

+1 −0
Original line number Diff line number Diff line
@@ -197,6 +197,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels
                IncidenceAngle = InfoMeasurementInfoViewModel.IncidenceAngle,
                NumOfAcquiredSpectra = InfoMeasurementInfoViewModel.NumOfAcquiredSpectra,
                NumOfAcquisitionsForSpectrum = InfoMeasurementInfoViewModel.NumOfAcquisitionsForSpectrum,
                InputSpectra = InfoMeasurementInfoViewModel.Files.ToList()
            };

            string spectrumFilename = WorkingItems.SpectraContainer.tryGetSpectrumOfType(SpectrumType.Raw).Filename;
Loading