1- using System . Security ;
2- using System . Xml . Serialization ;
1+ using NETworkManager . Controls ;
32using NETworkManager . Models . Network ;
43using NETworkManager . Models . PowerShell ;
54using NETworkManager . Models . PuTTY ;
65using NETworkManager . Models . RemoteDesktop ;
76using NETworkManager . Settings ;
7+ using System . Security ;
8+ using System . Xml . Serialization ;
89
910// ReSharper disable InconsistentNaming
1011// ReSharper disable PropertyCanBeMadeInitOnly.Global
@@ -33,7 +34,7 @@ public ProfileInfo(ProfileInfo profile)
3334 Host = profile . Host ;
3435 Description = profile . Description ;
3536 Group = profile . Group ;
36- Tags = profile . Tags ;
37+ TagsCollection = profile . TagsCollection ;
3738
3839 IsDynamic = profile . IsDynamic ;
3940
@@ -42,7 +43,6 @@ public ProfileInfo(ProfileInfo profile)
4243 NetworkInterface_EnableStaticIPAddress = profile . NetworkInterface_EnableStaticIPAddress ;
4344 NetworkInterface_IPAddress = profile . NetworkInterface_IPAddress ;
4445 NetworkInterface_Subnetmask = profile . NetworkInterface_Subnetmask ;
45- NetworkInterface_SubnetmaskOrCidr = profile . NetworkInterface_SubnetmaskOrCidr ;
4646 NetworkInterface_Gateway = profile . NetworkInterface_Gateway ;
4747 NetworkInterface_EnableStaticDNS = profile . NetworkInterface_EnableStaticDNS ;
4848 NetworkInterface_PrimaryDNSServer = profile . NetworkInterface_PrimaryDNSServer ;
@@ -253,17 +253,23 @@ public ProfileInfo(ProfileInfo profile)
253253 /// Description of the profile.
254254 /// </summary>
255255 public string Description { get ; set ; }
256-
256+
257257 /// <summary>
258258 /// Name of the group. Profiles are grouped based on the name.
259259 /// </summary>
260260 public string Group { get ; set ; }
261-
261+
262262 /// <summary>
263263 /// Tags to classify the profiles and to filter by it.
264264 /// </summary>
265+ //[Obsolete("Replaced with TagsList")]
265266 public string Tags { get ; set ; }
266267
268+ /// <summary>
269+ /// Tags collection to classify the profiles and to filter by it.
270+ /// </summary>
271+ public ObservableSetCollection < string > TagsCollection { get ; set ; } = [ ] ;
272+
267273 /// <summary>
268274 /// Dynamic profiles (e.g. AWS) are not save to file.
269275 /// </summary>
@@ -273,9 +279,6 @@ public ProfileInfo(ProfileInfo profile)
273279 public bool NetworkInterface_Enabled { get ; set ; }
274280 public bool NetworkInterface_EnableStaticIPAddress { get ; set ; }
275281 public string NetworkInterface_IPAddress { get ; set ; }
276-
277- //[Obsolete("Replaced by NetworkInterface_Subnetmask")]
278- public string NetworkInterface_SubnetmaskOrCidr { get ; set ; }
279282 public string NetworkInterface_Subnetmask { get ; set ; }
280283 public string NetworkInterface_Gateway { get ; set ; }
281284 public bool NetworkInterface_EnableStaticDNS { get ; set ; }
0 commit comments