Skip to content

Commit 7d0d98f

Browse files
committed
Configuration update for the SDK
1 parent 2e1f3a8 commit 7d0d98f

File tree

12 files changed

+65
-70
lines changed

12 files changed

+65
-70
lines changed

Src/CodeFactoryForWindows/CodeFactory.Packager.WinVs/CodeFactoryWinVsSDK.nuspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
33
<metadata>
44
<id>CodeFactory.WinVs.SDK</id>
5-
<version>2.25003.0.1-PreRelease</version>
5+
<version>2.25165.0.1-PreRelease</version>
66
<title>CodeFactory Software Development Kit for Visual Studio - Windows</title>
77
<authors>CodeFactory, LLC.</authors>
88
<owners>CodeFactory, LLC.</owners>
99
<license type="expression">MIT</license>
1010
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1111
<description>Software development kit for building CodeFactory automation in Visual Studio - Windows.</description>
1212
<releaseNotes>
13-
Release Updates for 2.25003.0.1
13+
Release Updates for 2.25165.0.1
1414

1515
Recompile Release:
1616
When you update your automation to this version of the SDK.
@@ -40,9 +40,9 @@
4040
<copyright>Copyright © 2025 CodeFactory, LLC.</copyright>
4141
<tags>Factory Automation</tags>
4242
<dependencies>
43-
<dependency id="CodeFactory" version="2.25003.0.1-PreRelease"/>
44-
<dependency id="CodeFactory.WinVs" version="2.25003.0.1-PreRelease"/>
45-
<dependency id="CodeFactory.WinVs.Wpf" version="2.25003.0.1-PreRelease"/>
43+
<dependency id="CodeFactory" version="2.25165.0.1-PreRelease"/>
44+
<dependency id="CodeFactory.WinVs" version="2.25165.0.1-PreRelease"/>
45+
<dependency id="CodeFactory.WinVs.Wpf" version="2.25165.0.1-PreRelease"/>
4646
</dependencies>
4747
<icon>CFLogo128.png</icon>
4848
</metadata>

Src/CodeFactoryForWindows/CodeFactory.Packager.WinVs/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("2.0.0.0")]
36-
[assembly: AssemblyFileVersion("2.25003.0.1")]
36+
[assembly: AssemblyFileVersion("2.25165.0.1")]

Src/CodeFactoryForWindows/CodeFactory.WinVs.Wpf/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("2.0.0.0")]
36-
[assembly: AssemblyFileVersion("2.25003.0.1")]
36+
[assembly: AssemblyFileVersion("2.25165.0.1")]

Src/CodeFactoryForWindows/CodeFactory.WinVs.Wpf/WinVsWpf.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
33
<metadata>
44
<id>CodeFactory.WinVs.Wpf</id>
5-
<version>2.25003.0.1-PreRelease</version>
5+
<version>2.25165.0.1-PreRelease</version>
66
<title>CodeFactory User Interface WPF for Visual Studio - Windows</title>
77
<authors>CodeFactory, LLC.</authors>
88
<owners>CodeFactory, LLC.</owners>
99
<license type="expression">MIT</license>
1010
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1111
<description>Library that provides custom dialog screens hosted in Visual Studio for Windows, hosted for CodeFactory automation.</description>
1212
<releaseNotes>
13-
Release Updates for 2.25003.0.1
13+
Release Updates for 2.25165.0.1
1414

1515
Recompile Release:
1616
When you update your automation to this version of the SDK.
@@ -19,8 +19,8 @@
1919
<copyright>Copyright © 2025 CodeFactory, LLC.</copyright>
2020
<tags>Factory Automation</tags>
2121
<dependencies>
22-
<dependency id="CodeFactory" version="2.25003.0.1-PreRelease"/>
23-
<dependency id="CodeFactory.WinVs" version="2.25003.0.1-PreRelease"/>
22+
<dependency id="CodeFactory" version="2.25165.0.1-PreRelease"/>
23+
<dependency id="CodeFactory.WinVs" version="2.25165.0.1-PreRelease"/>
2424
</dependencies>
2525
<icon>CFLogo128.png</icon>
2626
</metadata>

Src/CodeFactoryForWindows/CodeFactory.WinVs/CodeFactory.WinVs.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<SignAssembly>True</SignAssembly>
66
<AssemblyOriginatorKeyFile>CFSigner.snk</AssemblyOriginatorKeyFile>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8-
<Version>2.25003.0.1-PreRelease</Version>
8+
<Version>2.25165.0.1-PreRelease</Version>
99
<Authors>CodeFactory, LLC.</Authors>
1010
<Company>CodeFactory, LLC.</Company>
1111
<Product>CodeFactory Base Library</Product>
@@ -16,10 +16,10 @@
1616
<IncludeSymbols>False</IncludeSymbols>
1717
<Title>CodeFactory API for Visual Studio - Windows </Title>
1818
<AssemblyVersion>2.0.0.0</AssemblyVersion>
19-
<FileVersion>2.25003.0.1</FileVersion>
19+
<FileVersion>2.25165.0.1</FileVersion>
2020
<PackageIcon>CFLogo128.png</PackageIcon>
2121
<PackageReleaseNotes>
22-
Release Updates for 2.25003.0.1
22+
Release Updates for 2.25165.0.1
2323

2424
Recompile Release:
2525
When you update your automation to this version of the SDK.

Src/CodeFactoryForWindows/CodeFactory.WinVs/Commands/ConfigCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public string ParameterValueString(string name)
206206
/// </summary>
207207
/// <param name="name">Name of the parameter to lookup.</param>
208208
/// <returns>The parameter value or null.</returns>
209-
public ObservableCollection<string> ParameterValueList(string name)
209+
public ObservableCollection<ConfigParameterListValue> ParameterValueList(string name)
210210
{
211211
return string.IsNullOrEmpty(name)
212212
? null
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using MessagePack;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Text;
5+
6+
namespace CodeFactory.WinVs.Commands
7+
{
8+
/// <summary>
9+
/// Data class that represents a list of values for a configuration parameter.
10+
/// </summary>
11+
[MessagePackObject]
12+
public class ConfigParameterListValue:PropertyChangedBase
13+
{
14+
//Backing field for the property
15+
private string _listValue;
16+
17+
/// <summary>
18+
/// Gets or sets the value associated with the parameter list.
19+
/// </summary>
20+
[Key(0)]
21+
public string ListValue
22+
{
23+
get => _listValue;
24+
25+
set
26+
{
27+
if (_listValue != value)
28+
{
29+
_listValue = value;
30+
OnPropertyChanged();
31+
}
32+
}
33+
}
34+
}
35+
}

Src/CodeFactoryForWindows/CodeFactory.WinVs/Commands/ConfigParameterValue.cs

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ public class ConfigParameterValue: PropertyChangedBase
1717
//Backing fields for the properties
1818
private ConfigParameterValueType _valueType;
1919
private string _stringValue;
20-
private string _stringDefaultValue;
2120
private bool? _boolValue;
22-
private bool? _boolDefaultValue;
23-
private ObservableCollection<string> _listValue = new ObservableCollection<string>();
24-
private ObservableCollection<string> _listDefaultValue = new ObservableCollection<string>();
21+
private ObservableCollection<ConfigParameterListValue> _listValue = new ObservableCollection<ConfigParameterListValue>();
2522
private DateTime? _dateTimeValue;
26-
private DateTime? _dateTimeDefaultValue;
23+
2724

2825

2926
/// <summary>
@@ -46,74 +43,35 @@ public string StringValue
4643
set { _stringValue = value; OnPropertyChanged(); }
4744
}
4845

49-
/// <summary>
50-
/// The string default value that is assigned to the parameter. This will be null if the value is not a string.
51-
/// </summary>
52-
[Key(2)]
53-
public string StringDefaultValue
54-
{
55-
get => _stringDefaultValue;
56-
set { _stringDefaultValue = value; OnPropertyChanged(); }
57-
}
58-
5946
/// <summary>
6047
/// The boolean value that is assigned to the parameter. This will be null if the value is not a boolean.
6148
/// </summary>
62-
[Key(3)]
49+
[Key(2)]
6350
public bool? BoolValue
6451
{
6552
get => _boolValue;
6653
set { _boolValue = value; OnPropertyChanged(); }
6754
}
6855

69-
/// <summary>
70-
/// The boolean default value that is assigned to the parameter. This will be null if the value is not a boolean.
71-
/// </summary>
72-
[Key(4)]
73-
public bool? BoolDefaultValue
74-
{
75-
get => _boolDefaultValue;
76-
set { _boolDefaultValue = value; OnPropertyChanged(); }
77-
}
78-
7956
/// <summary>
8057
/// The list of string values that are assigned to the parameter. This will be null if the value is not a list.
8158
/// </summary>
82-
[Key(5)]
83-
public ObservableCollection<string> ListValue
59+
[Key(3)]
60+
public ObservableCollection<ConfigParameterListValue> ListValue
8461
{
8562
get => _listValue;
8663
set { _listValue = value; OnPropertyChanged(); }
8764
}
8865

89-
/// <summary>
90-
/// The list of string default values that are assigned to the parameter. This will be null if the value is not a list.
91-
/// </summary>
92-
[Key(6)]
93-
public ObservableCollection<string> ListDefaultValue
94-
{
95-
get => _listDefaultValue;
96-
set { _listDefaultValue = value; OnPropertyChanged(); }
97-
}
98-
9966
/// <summary>
10067
/// The date time value that is assigned to the parameter. This will be null if the value is not a date time.
10168
/// </summary>
102-
[Key(7)]
69+
[Key(4)]
10370
public DateTime? DateTimeValue
10471
{
10572
get => _dateTimeValue;
10673
set { _dateTimeValue = value; OnPropertyChanged(); }
10774
}
10875

109-
/// <summary>
110-
/// The date time value that is assigned to the parameter. This will be null if the value is not a date time.
111-
/// </summary>
112-
[Key(8)]
113-
public DateTime? DateTimeDefaultValue
114-
{
115-
get => _dateTimeDefaultValue;
116-
set { _dateTimeDefaultValue = value; OnPropertyChanged(); }
117-
}
11876
}
11977
}

Src/CodeFactoryForWindows/CodeFactory.WinVs/Commands/ConfigParameterValueType.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ public enum ConfigParameterValueType
3030
/// </summary>
3131
DateTime = 3
3232

33+
34+
3335
}
3436
}

Src/CodeFactoryForWindows/CodeFactory.WinVs/Commands/ConfigProject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public string ParameterValueString(string name)
163163
/// </summary>
164164
/// <param name="name">Name of the parameter to lookup.</param>
165165
/// <returns>The parameter value or null.</returns>
166-
public ObservableCollection<string> ParameterValueList(string name)
166+
public ObservableCollection<ConfigParameterListValue> ParameterValueList(string name)
167167
{
168168
return string.IsNullOrEmpty(name)
169169
? null

0 commit comments

Comments
 (0)