11using MahApps . Metro . SimpleChildWindow ;
2+ using NETworkManager . Controls ;
23using NETworkManager . Localization . Resources ;
34using NETworkManager . Models ;
45using NETworkManager . Models . Network ;
910using NETworkManager . Views ;
1011using System ;
1112using System . Collections . Generic ;
12- using System . Diagnostics ;
1313using System . Security ;
1414using System . Threading . Tasks ;
1515using System . Windows ;
16- using NETworkManager . Controls ;
1716
1817namespace NETworkManager ;
1918
@@ -23,18 +22,13 @@ public static class ProfileDialogManager
2322
2423 private static ProfileInfo ParseProfileInfo ( ProfileViewModel instance )
2524 {
26- foreach ( var tag in instance . TagsCollection )
27- {
28- Debug . WriteLine ( tag ) ;
29- }
30-
3125 return new ProfileInfo
3226 {
3327 Name = instance . Name . Trim ( ) ,
3428 Host = instance . Host . Trim ( ) ,
3529 Description = instance . Description ? . Trim ( ) ,
3630 Group = instance . Group . Trim ( ) ,
37- TagsCollection = new ObservableSetCollection < string > ( instance . TagsCollection ) ,
31+ TagsCollection = new ObservableSetCollection < string > ( instance . TagsCollection ) ,
3832
3933 // Network Interface
4034 NetworkInterface_Enabled = instance . NetworkInterface_Enabled ,
@@ -97,6 +91,7 @@ private static ProfileInfo ParseProfileInfo(ProfileViewModel instance)
9791 RemoteDesktop_Password = instance . RemoteDesktop_UseCredentials
9892 ? instance . RemoteDesktop_Password
9993 : new SecureString ( ) , // Remove sensitive info on disable
94+ RemoteDesktop_AdminSession = instance . RemoteDesktop_AdminSession ,
10095 RemoteDesktop_OverrideDisplay = instance . RemoteDesktop_OverrideDisplay ,
10196 RemoteDesktop_AdjustScreenAutomatically = instance . RemoteDesktop_AdjustScreenAutomatically ,
10297 RemoteDesktop_UseCurrentViewSize = instance . RemoteDesktop_UseCurrentViewSize ,
@@ -323,6 +318,7 @@ private static GroupInfo ParseGroupInfo(GroupViewModel instance)
323318 RemoteDesktop_Password = instance . RemoteDesktop_UseCredentials
324319 ? instance . RemoteDesktop_Password
325320 : new SecureString ( ) , // Remove sensitive info on disable
321+ RemoteDesktop_AdminSession = instance . RemoteDesktop_AdminSession ,
326322 RemoteDesktop_OverrideDisplay = instance . RemoteDesktop_OverrideDisplay ,
327323 RemoteDesktop_AdjustScreenAutomatically = instance . RemoteDesktop_AdjustScreenAutomatically ,
328324 RemoteDesktop_UseCurrentViewSize = instance . RemoteDesktop_UseCurrentViewSize ,
0 commit comments