Skip to content

Commit

Permalink
Merge pull request #40 from VirtualPhotonics/feature/39-november-release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Lisa Malenfant authored Nov 3, 2023
2 parents 3845f81 + 1ac87c6 commit a0601be
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 39 deletions.
8 changes: 4 additions & 4 deletions Vts.Gui.Wpf.Test/Vts.Gui.Wpf.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.4" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.5" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="VirtualPhotonics.Vts" Version="9.1.0" />
<PackageReference Include="VirtualPhotonics.Vts" Version="10.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
49 changes: 21 additions & 28 deletions Vts.Gui.Wpf/ViewModel/Controls/RangeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ public RangeViewModel(DoubleRange range, string units, IndependentVariableAxis a
_enableNumber = enableNumber;
_axisType = axisType;

// todo: does this do anything? (start, stop, number already directly modified)
_range.PropertyChanged += (s, a) =>
_range.PropertyChanged += (_, _) =>
{
OnPropertyChanged("Start");
OnPropertyChanged("Stop");
OnPropertyChanged("Number");
OnPropertyChanged(nameof(Start));
OnPropertyChanged(nameof(Stop));
OnPropertyChanged(nameof(Number));
};
}

Expand All @@ -48,11 +47,11 @@ public RangeViewModel() : this(new DoubleRange(1.0, 6.0, 60), "mm", IndependentV
/// </summary>
public double Start
{
get { return _range.Start; }
get => _range.Start;
set
{
_range.Start = value;
OnPropertyChanged("Start");
OnPropertyChanged(nameof(Start));
}
}

Expand All @@ -61,11 +60,11 @@ public double Start
/// </summary>
public double Stop
{
get { return _range.Stop; }
get => _range.Stop;
set
{
_range.Stop = value;
OnPropertyChanged("Stop");
OnPropertyChanged(nameof(Stop));
}
}

Expand All @@ -74,63 +73,57 @@ public double Stop
/// </summary>
public int Number
{
get { return _range.Count; }
get => _range.Count;
set
{
_range.Count = value;
OnPropertyChanged("Number");
OnPropertyChanged(nameof(Number));
}
}

public string Units
{
get { return _units; }
get => _units;
set
{
_units = value;
OnPropertyChanged("Units");
OnPropertyChanged(nameof(Units));
}
}

public string Title
{
get { return _title; }
get => _title;
set
{
_title = value;
OnPropertyChanged("Title");
OnPropertyChanged("ShowTitle");
OnPropertyChanged(nameof(Title));
OnPropertyChanged(nameof(ShowTitle));
}
}

public bool EnableNumber
{
get { return _enableNumber; }
get => _enableNumber;
set
{
_enableNumber = value;
OnPropertyChanged("EnableNumber");
OnPropertyChanged(nameof(EnableNumber));
}
}

public bool ShowTitle
{
get { return Title.Length > 0; }
}
public bool ShowTitle => Title.Length > 0;

public IndependentVariableAxis AxisType
{
get { return _axisType; }
get => _axisType;
set
{
_axisType = value;
OnPropertyChanged("AxisType");
OnPropertyChanged(nameof(AxisType));
}
}

public IEnumerable<double> Values
{
get { return _range.AsEnumerable(); }
}
public IEnumerable<double> Values => _range;
}
}
14 changes: 7 additions & 7 deletions Vts.Gui.Wpf/Vts.Gui.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<PackageReadmeFile>readme.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/VirtualPhotonics/Vts.Gui.Wpf</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<FileVersion>4.1.0.0</FileVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<FileVersion>4.2.0.0</FileVersion>
<PlatformTarget>AnyCPU</PlatformTarget>
<Configurations>Debug;Release;WhiteList</Configurations>
<UseWPF>True</UseWPF>
Expand Down Expand Up @@ -71,13 +71,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
<PackageReference Include="Extended.Wpf.Toolkit" Version="4.5.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.4" />
<PackageReference Include="NLog" Version="5.2.2" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="Extended.Wpf.Toolkit" Version="4.5.1" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.5" />
<PackageReference Include="NLog" Version="5.2.5" />
<PackageReference Include="OxyPlot.Core" Version="2.1.2" />
<PackageReference Include="OxyPlot.Wpf" Version="2.1.2" />
<PackageReference Include="VirtualPhotonics.Vts" Version="9.1.0" />
<PackageReference Include="VirtualPhotonics.Vts" Version="10.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit a0601be

Please sign in to comment.