diff --git a/mRemoteNGTests/Connection/AbstractConnectionInfoDataTests.cs b/mRemoteNGTests/Connection/AbstractConnectionInfoDataTests.cs index 41c51c770..f2c729e19 100644 --- a/mRemoteNGTests/Connection/AbstractConnectionInfoDataTests.cs +++ b/mRemoteNGTests/Connection/AbstractConnectionInfoDataTests.cs @@ -142,7 +142,7 @@ namespace mRemoteNGTests.Connection { var wasCalled = false; _testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true; - _testAbstractConnectionInfoData.ICAEncryptionStrength = ProtocolICA.EncryptionStrength.Encr128BitLogonOnly; + _testAbstractConnectionInfoData.ICAEncryptionStrength = IcaProtocol.EncryptionStrength.Encr128BitLogonOnly; Assert.That(wasCalled, Is.True); } diff --git a/mRemoteV1/Config/Serializers/ConnectionSerializers/XmlConnectionsDeserializer.cs b/mRemoteV1/Config/Serializers/ConnectionSerializers/XmlConnectionsDeserializer.cs index 9def3f40e..354df14f3 100644 --- a/mRemoteV1/Config/Serializers/ConnectionSerializers/XmlConnectionsDeserializer.cs +++ b/mRemoteV1/Config/Serializers/ConnectionSerializers/XmlConnectionsDeserializer.cs @@ -390,7 +390,7 @@ namespace mRemoteNG.Config.Serializers if (_confVersion >= 1.6) { - connectionInfo.ICAEncryptionStrength = (ProtocolICA.EncryptionStrength)Tools.MiscTools.StringToEnum(typeof(ProtocolICA.EncryptionStrength), xmlnode.Attributes["ICAEncryptionStrength"].Value); + connectionInfo.ICAEncryptionStrength = (IcaProtocol.EncryptionStrength)Tools.MiscTools.StringToEnum(typeof(IcaProtocol.EncryptionStrength), xmlnode.Attributes["ICAEncryptionStrength"].Value); connectionInfo.Inheritance.ICAEncryptionStrength = bool.Parse(xmlnode.Attributes["InheritICAEncryptionStrength"].Value); connectionInfo.PreExtApp = xmlnode.Attributes["PreExtApp"].Value; connectionInfo.PostExtApp = xmlnode.Attributes["PostExtApp"].Value; diff --git a/mRemoteV1/Config/Serializers/DataTableDeserializer.cs b/mRemoteV1/Config/Serializers/DataTableDeserializer.cs index 878ae72c1..76da0c0f6 100644 --- a/mRemoteV1/Config/Serializers/DataTableDeserializer.cs +++ b/mRemoteV1/Config/Serializers/DataTableDeserializer.cs @@ -84,7 +84,7 @@ namespace mRemoteNG.Config.Serializers connectionInfo.UseConsoleSession = (bool)dataRow["ConnectToConsole"]; connectionInfo.UseCredSsp = (bool)dataRow["UseCredSsp"]; connectionInfo.RenderingEngine = (HTTPBase.RenderingEngine)Enum.Parse(typeof(HTTPBase.RenderingEngine), (string)dataRow["RenderingEngine"]); - connectionInfo.ICAEncryptionStrength = (ProtocolICA.EncryptionStrength)Enum.Parse(typeof(ProtocolICA.EncryptionStrength), (string)dataRow["ICAEncryptionStrength"]); + connectionInfo.ICAEncryptionStrength = (IcaProtocol.EncryptionStrength)Enum.Parse(typeof(IcaProtocol.EncryptionStrength), (string)dataRow["ICAEncryptionStrength"]); connectionInfo.RDPAuthenticationLevel = (ProtocolRDP.AuthenticationLevel)Enum.Parse(typeof(ProtocolRDP.AuthenticationLevel), (string)dataRow["RDPAuthenticationLevel"]); connectionInfo.RDPMinutesToIdleTimeout = (int)dataRow["RDPMinutesToIdleTimeout"]; connectionInfo.RDPAlertIdleTimeout = (bool)dataRow["RDPAlertIdleTimeout"]; diff --git a/mRemoteV1/Connection/AbstractConnectionRecord.cs b/mRemoteV1/Connection/AbstractConnectionRecord.cs index 34855b506..adf69693d 100644 --- a/mRemoteV1/Connection/AbstractConnectionRecord.cs +++ b/mRemoteV1/Connection/AbstractConnectionRecord.cs @@ -30,7 +30,7 @@ namespace mRemoteNG.Connection private string _extApp = ""; private int _port; private string _puttySession = ""; - private ProtocolICA.EncryptionStrength _icaEncryption; + private IcaProtocol.EncryptionStrength _icaEncryption; private bool _useConsoleSession; private ProtocolRDP.AuthenticationLevel _rdpAuthenticationLevel; private int _rdpMinutesToIdleTimeout; @@ -200,7 +200,7 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayName("strPropertyNameEncryptionStrength"), LocalizedAttributes.LocalizedDescription("strPropertyDescriptionEncryptionStrength"), TypeConverter(typeof(MiscTools.EnumTypeConverter))] - public ProtocolICA.EncryptionStrength ICAEncryptionStrength + public IcaProtocol.EncryptionStrength ICAEncryptionStrength { get { return GetPropertyValue("ICAEncryptionStrength", _icaEncryption); } set { SetField(ref _icaEncryption, value, "ICAEncryptionStrength"); } diff --git a/mRemoteV1/Connection/AbstractLegacyConnectionRecord.cs b/mRemoteV1/Connection/AbstractLegacyConnectionRecord.cs index f0a3928f4..1010d7043 100644 --- a/mRemoteV1/Connection/AbstractLegacyConnectionRecord.cs +++ b/mRemoteV1/Connection/AbstractLegacyConnectionRecord.cs @@ -29,7 +29,7 @@ namespace mRemoteNG.Connection private string _extApp; private int _port; private string _puttySession; - private ProtocolICA.EncryptionStrength _icaEncryption; + private IcaProtocol.EncryptionStrength _icaEncryption; private bool _useConsoleSession; private ProtocolRDP.AuthenticationLevel _rdpAuthenticationLevel; private int _rdpMinutesToIdleTimeout; @@ -203,7 +203,7 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayName("strPropertyNameEncryptionStrength"), LocalizedAttributes.LocalizedDescription("strPropertyDescriptionEncryptionStrength"), TypeConverter(typeof(MiscTools.EnumTypeConverter))] - public ProtocolICA.EncryptionStrength ICAEncryptionStrength + public IcaProtocol.EncryptionStrength ICAEncryptionStrength { get { return GetPropertyValue("ICAEncryptionStrength", _icaEncryption); } set { SetField(ref _icaEncryption, value, "ICAEncryptionStrength"); } diff --git a/mRemoteV1/Connection/ConnectionInfo.cs b/mRemoteV1/Connection/ConnectionInfo.cs index 79694cc2f..0e2a8ab81 100644 --- a/mRemoteV1/Connection/ConnectionInfo.cs +++ b/mRemoteV1/Connection/ConnectionInfo.cs @@ -222,7 +222,7 @@ namespace mRemoteNG.Connection case ProtocolType.HTTPS: return (int)ProtocolHTTPS.Defaults.Port; case ProtocolType.ICA: - return (int)ProtocolICA.Defaults.Port; + return (int)IcaProtocol.Defaults.Port; case ProtocolType.IntApp: return (int)IntegratedProgram.Defaults.Port; } @@ -254,7 +254,7 @@ namespace mRemoteNG.Connection ExtApp = Settings.Default.ConDefaultExtApp; Port = 0; PuttySession = Settings.Default.ConDefaultPuttySession; - ICAEncryptionStrength = (ProtocolICA.EncryptionStrength) Enum.Parse(typeof(ProtocolICA.EncryptionStrength), Settings.Default.ConDefaultICAEncryptionStrength); + ICAEncryptionStrength = (IcaProtocol.EncryptionStrength) Enum.Parse(typeof(IcaProtocol.EncryptionStrength), Settings.Default.ConDefaultICAEncryptionStrength); UseConsoleSession = Settings.Default.ConDefaultUseConsoleSession; RDPAuthenticationLevel = (ProtocolRDP.AuthenticationLevel) Enum.Parse(typeof(ProtocolRDP.AuthenticationLevel), Settings.Default.ConDefaultRDPAuthenticationLevel); RDPMinutesToIdleTimeout = Settings.Default.ConDefaultRDPMinutesToIdleTimeout; diff --git a/mRemoteV1/Connection/Protocol/ICA/Connection.Protocol.ICA.cs b/mRemoteV1/Connection/Protocol/ICA/IcaProtocol.cs similarity index 99% rename from mRemoteV1/Connection/Protocol/ICA/Connection.Protocol.ICA.cs rename to mRemoteV1/Connection/Protocol/ICA/IcaProtocol.cs index 1dbb61e6f..91378bc81 100644 --- a/mRemoteV1/Connection/Protocol/ICA/Connection.Protocol.ICA.cs +++ b/mRemoteV1/Connection/Protocol/ICA/IcaProtocol.cs @@ -1,6 +1,5 @@ using System; using AxWFICALib; -using System.Drawing; using System.Windows.Forms; using mRemoteNG.App; using System.Threading; @@ -15,14 +14,14 @@ using mRemoteNG.UI.Forms; namespace mRemoteNG.Connection.Protocol.ICA { - public class ProtocolICA : ProtocolBase + public class IcaProtocol : ProtocolBase { private AxICAClient _icaClient; private ConnectionInfo _info; private readonly FrmMain _frmMain = FrmMain.Default; #region Public Methods - public ProtocolICA() + public IcaProtocol() { try { diff --git a/mRemoteV1/Connection/Protocol/ProtocolFactory.cs b/mRemoteV1/Connection/Protocol/ProtocolFactory.cs index df91c2d38..1c9e37738 100644 --- a/mRemoteV1/Connection/Protocol/ProtocolFactory.cs +++ b/mRemoteV1/Connection/Protocol/ProtocolFactory.cs @@ -46,8 +46,8 @@ namespace mRemoteNG.Connection.Protocol newProtocol = new ProtocolHTTPS(connectionInfo.RenderingEngine); break; case ProtocolType.ICA: - newProtocol = new ProtocolICA(); - ((ProtocolICA) newProtocol).tmrReconnect.Elapsed += ((ProtocolICA) newProtocol).tmrReconnect_Elapsed; + newProtocol = new IcaProtocol(); + ((IcaProtocol) newProtocol).tmrReconnect.Elapsed += ((IcaProtocol) newProtocol).tmrReconnect_Elapsed; break; case ProtocolType.IntApp: newProtocol = new IntegratedProgram(); diff --git a/mRemoteV1/mRemoteV1.csproj b/mRemoteV1/mRemoteV1.csproj index b0e240a14..91d338262 100644 --- a/mRemoteV1/mRemoteV1.csproj +++ b/mRemoteV1/mRemoteV1.csproj @@ -553,7 +553,7 @@ - +