diff --git a/mRemoteV1.v12.suo b/mRemoteV1.v12.suo index 5b25db4b2..3bb4ebae2 100644 Binary files a/mRemoteV1.v12.suo and b/mRemoteV1.v12.suo differ diff --git a/mRemoteV1/CS/App/App.Info.cs b/mRemoteV1/CS/App/App.Info.cs index 71243db85..d289b6ec4 100644 --- a/mRemoteV1/CS/App/App.Info.cs +++ b/mRemoteV1/CS/App/App.Info.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,9 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - -//using System.Environment; using System.Threading; @@ -27,7 +23,7 @@ namespace mRemoteNG.App.Info public static string EncryptionKey = "mR3m"; public static string ReportingFilePath = ""; public static readonly string PuttyPath = (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.DirectoryPath + "\\PuTTYNG.exe"; -public static string UserAgent + public static string UserAgent { get { @@ -46,7 +42,7 @@ public static string UserAgent details.Add("WOW64"); } details.Add(Thread.CurrentThread.CurrentUICulture.Name); - details.Add(string.Format(".NET CLR {0}", Version.ToString())); + details.Add(string.Format(".NET CLR {0}", System.Environment.Version)); string detailsString = string.Join("; ", details.ToArray()); return string.Format("Mozilla/4.0 ({0}) {1}/{2}", detailsString, System.Windows.Forms.Application.ProductName, System.Windows.Forms.Application.ProductVersion); @@ -56,11 +52,11 @@ public static string UserAgent public class Settings { -#if !PORTABLE + #if !PORTABLE public static readonly string SettingsPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData) + "\\" + (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName; -#else + #else public static readonly string SettingsPath = (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.DirectoryPath; -#endif + #endif public static readonly string LayoutFileName = "pnlLayout.xml"; public static readonly string ExtAppsFilesName = "extApps.xml"; public const string ThemesFileName = "Themes.xml"; @@ -68,29 +64,25 @@ public static string UserAgent public class Update { -public static string FileName + public static string FileName { get { -#if DEBUG + #if DEBUG return "update-debug.txt"; -#endif -// -// if ((string) (My.Settings.Default.UpdateChannel.ToLowerInvariant()) == "beta") -// { -// return "update-beta.txt"; -// } -// else if ((string) (My.Settings.Default.UpdateChannel.ToLowerInvariant()) == "debug") -// { -// return "update-debug.txt"; -// } -// else -// { -// return "update.txt"; -// } - } - } + #else + if ((string) (My.Settings.Default.UpdateChannel.ToLowerInvariant()) == "debug") + { + return "update-debug.txt"; } + else + { + return "update.txt"; + } + #endif + } + } + } public class Connections { diff --git a/mRemoteV1/CS/App/App.Runtime.cs b/mRemoteV1/CS/App/App.Runtime.cs index ff511f9ea..a3bd87740 100644 --- a/mRemoteV1/CS/App/App.Runtime.cs +++ b/mRemoteV1/CS/App/App.Runtime.cs @@ -297,13 +297,13 @@ namespace mRemoteNG.App public static DockContent exportPanel = new DockContent(); public static UI.Window.About aboutForm; public static DockContent aboutPanel = new DockContent(); - public static Update updateForm; + public static UI.Window.Update updateForm; public static DockContent updatePanel = new DockContent(); public static UI.Window.SSHTransfer sshtransferForm; public static DockContent sshtransferPanel = new DockContent(); public static UI.Window.ActiveDirectoryImport adimportForm; public static DockContent adimportPanel = new DockContent(); - public static Help helpForm; + public static UI.Window.Help helpForm; public static DockContent helpPanel = new DockContent(); public static UI.Window.ExternalTools externalappsForm; public static DockContent externalappsPanel = new DockContent(); @@ -316,7 +316,7 @@ namespace mRemoteNG.App public static UI.Window.Announcement AnnouncementForm; public static DockContent AnnouncementPanel = new DockContent(); - public static void Show(Type windowType, bool portScanImport = false) + public static void Show(UI.Window.Type windowType, bool portScanImport = false) { try { @@ -516,8 +516,8 @@ namespace mRemoteNG.App { return ; } - - cTaskDialog.MessageBox(System.Windows.Forms.Application.ProductName, My.Language.strCompatibilityProblemDetected, string.Format(My.Language.strCompatibilityLenovoAutoScrollUtilityDetected, System.Windows.Forms.Application.ProductName), "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.OK, eSysIcons.Warning, null); + + cTaskDialog.MessageBox(System.Windows.Forms.Application.ProductName, My.Language.strCompatibilityProblemDetected, string.Format(My.Language.strCompatibilityLenovoAutoScrollUtilityDetected, System.Windows.Forms.Application.ProductName), "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.OK, eSysIcons.Warning, eSysIcons.Warning); if (cTaskDialog.VerificationChecked) { My.Settings.Default.CompatibilityWarnLenovoAutoScrollUtility = false; @@ -628,7 +628,7 @@ namespace mRemoteNG.App { foreach (ManagementObject managementObject in new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem WHERE Primary=True").Get()) { - osVersion = System.Convert.ToString(managementObject.GetPropertyValue("Caption").Trim()); + osVersion = System.Convert.ToString(managementObject.GetPropertyValue("Caption")).Trim(); int servicePackNumber = System.Convert.ToInt32(managementObject.GetPropertyValue("ServicePackMajorVersion")); if (!(servicePackNumber == 0)) { @@ -894,7 +894,7 @@ namespace mRemoteNG.App { try { - LastSqlUpdate = null; + //LastSqlUpdate = null; Tools.Misc.SQLUpdateCheckFinished -= SQLUpdateCheckFinished; if (TimerSqlWatcher != null) { @@ -1124,13 +1124,13 @@ namespace mRemoteNG.App //create rename item ToolStripMenuItem cMenRen = new ToolStripMenuItem(); cMenRen.Text = My.Language.strRename; - cMenRen.Image = global::My.Resources.Rename; + cMenRen.Image = My.Resources.Rename; cMenRen.Tag = pnlcForm; cMenRen.Click += cMenConnectionPanelRename_Click; ToolStripMenuItem cMenScreens = new ToolStripMenuItem(); cMenScreens.Text = My.Language.strSendTo; - cMenScreens.Image = global::My.Resources.Monitor; + cMenScreens.Image = My.Resources.Monitor; cMenScreens.Tag = pnlcForm; cMenScreens.DropDownItems.Add("Dummy"); cMenScreens.DropDownOpening += cMenConnectionPanelScreens_DropDownOpening; @@ -1166,9 +1166,9 @@ namespace mRemoteNG.App try { UI.Window.Connection conW = default(UI.Window.Connection); - conW = sender.Tag; - - string nTitle = Interaction.InputBox(Prompt: My.Language.strNewTitle + ":", DefaultResponse: System.Convert.ToString(sender.Tag.Text.Replace("&&", "&"))); + conW = (UI.Window.Connection)((System.Windows.Forms.Control)sender).Tag; + + string nTitle = Interaction.InputBox(Prompt: My.Language.strNewTitle + ":", DefaultResponse: System.Convert.ToString(((System.Windows.Forms.Control)((System.Windows.Forms.Control)sender).Tag).Text.Replace("&&", "&"))); if (!string.IsNullOrEmpty(nTitle)) { @@ -1185,18 +1185,17 @@ namespace mRemoteNG.App { try { - ToolStripMenuItem cMenScreens = sender; + ToolStripMenuItem cMenScreens = (ToolStripMenuItem)sender; cMenScreens.DropDownItems.Clear(); for (int i = 0; i <= Screen.AllScreens.Length - 1; i++) { ToolStripMenuItem cMenScreen = new ToolStripMenuItem(My.Language.strScreen + " " + System.Convert.ToString(i + 1)); cMenScreen.Tag = new ArrayList(); - cMenScreen.Image = global::My.Resources.Monitor_GoTo; + cMenScreen.Image = My.Resources.Monitor_GoTo; (cMenScreen.Tag as ArrayList).Add(Screen.AllScreens[i]); (cMenScreen.Tag as ArrayList).Add(cMenScreens.Tag); cMenScreen.Click += cMenConnectionPanelScreen_Click; - cMenScreens.DropDownItems.Add(cMenScreen); } } @@ -1210,8 +1209,8 @@ namespace mRemoteNG.App { try { - Screen screen = (sender as ToolStripMenuItem).Tag(0); - DockContent panel = (sender as ToolStripMenuItem).Tag(1); + Screen screen = ((ToolStripMenuItem)sender).Tag(0); + DockContent panel = ((ToolStripMenuItem)sender).Tag(1); Screens.SendPanelToScreen(panel, screen); } catch (Exception) @@ -1235,7 +1234,7 @@ namespace mRemoteNG.App ConnectionList = new Connection.List(); ContainerList = new Container.List(); - Config.Connections.Load connectionsLoad = new Config.Connections.Load(); + mRemoteNG.Config.Connections.Load connectionsLoad = new Config.Connections.Load(); if (filename == GetDefaultStartupConnectionFileName()) { @@ -1312,7 +1311,7 @@ namespace mRemoteNG.App public static void LoadConnections(bool withDialog = false, bool update = false) { - Connections.Load connectionsLoad = new Connections.Load(); + mRemoteNG.Config.Connections.Load connectionsLoad = new mRemoteNG.Config.Connections.Load(); try { @@ -1414,7 +1413,7 @@ namespace mRemoteNG.App { Runtime.MessageCollector.AddExceptionMessage(My.Language.strLoadFromSqlFailed, ex); string commandButtons = string.Join("|", new[] {My.Language.strCommandTryAgain, My.Language.strCommandOpenConnectionFile, string.Format(My.Language.strCommandExitProgram, System.Windows.Forms.Application.ProductName)}); - cTaskDialog.ShowCommandBox(System.Windows.Forms.Application.ProductName, My.Language.strLoadFromSqlFailed, My.Language.strLoadFromSqlFailedContent, Misc.GetExceptionMessageRecursive(ex), "", "", commandButtons, false, eSysIcons.Error, null); + cTaskDialog.ShowCommandBox(System.Windows.Forms.Application.ProductName, My.Language.strLoadFromSqlFailed, My.Language.strLoadFromSqlFailedContent, Misc.GetExceptionMessageRecursive(ex), "", "", commandButtons, false, eSysIcons.Error, eSysIcons.Error); switch (cTaskDialog.CommandButtonResult) { case 0: @@ -1589,7 +1588,7 @@ namespace mRemoteNG.App conS.SQLPassword = Security.Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.SQLPass), App.Info.General.EncryptionKey); } - conS.Save_Renamed(); + conS.Save(); if (My.Settings.Default.UseSQLServer == true) { @@ -1612,7 +1611,7 @@ namespace mRemoteNG.App public static void SaveConnectionsAs() { bool previousTimerState = false; - Connections.Save connectionsSave = new Connections.Save(); + mRemoteNG.Config.Connections.Save connectionsSave = new mRemoteNG.Config.Connections.Save(); try { @@ -1639,8 +1638,8 @@ namespace mRemoteNG.App { return ; } - - connectionsSave.SaveFormat = Connections.Save.Format.mRXML; + + connectionsSave.SaveFormat = mRemoteNG.Config.Connections.Save.Format.mRXML; connectionsSave.ConnectionFileName = saveFileDialog.FileName; connectionsSave.Export = false; connectionsSave.SaveSecurity = new Security.Save(); @@ -1743,7 +1742,7 @@ namespace mRemoteNG.App if (Tree.Node.GetNodeType(Tree.Node.SelectedNode) == Tree.Node.Type.Connection | Tree.Node.GetNodeType(Tree.Node.SelectedNode) == Tree.Node.Type.PuttySession) { - OpenConnection(Windows.treeForm.tvConnections.SelectedNode.Tag, Force); + OpenConnection((mRemoteNG.Connection.Info)Windows.treeForm.tvConnections.SelectedNode.Tag, Force); } else if (Tree.Node.GetNodeType(Tree.Node.SelectedNode) == Tree.Node.Type.Container) { @@ -1753,7 +1752,7 @@ namespace mRemoteNG.App { if (tNode.Tag != null) { - OpenConnection(tNode.Tag, Force); + OpenConnection((mRemoteNG.Connection.Info)tNode.Tag, Force); } } } @@ -2019,14 +2018,14 @@ namespace mRemoteNG.App try { Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, string.Format(My.Language.strProtocolEventDisconnected, DisconnectedMessage), true); - - Connection.Protocol.Base Prot = sender; + + Connection.Protocol.Base Prot = (Connection.Protocol.Base)sender; if (Prot.InterfaceControl.Info.Protocol == Connection.Protocol.Protocols.RDP) { - string[] Reason = DisconnectedMessage.Split("\r\n"); + string[] Reason = DisconnectedMessage.Split("\r\n".ToCharArray()); string ReasonCode = Reason[0]; string ReasonDescription = Reason[1]; - if (ReasonCode > 3) + if (System.Convert.ToInt32(ReasonCode) > 3) { if (!string.IsNullOrEmpty(ReasonDescription)) { @@ -2049,7 +2048,7 @@ namespace mRemoteNG.App { try { - Connection.Protocol.Base Prot = sender; + Connection.Protocol.Base Prot = (Connection.Protocol.Base)sender; Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, My.Language.strConnenctionCloseEvent, true); @@ -2079,7 +2078,7 @@ namespace mRemoteNG.App public static void Prot_Event_Connected(object sender) { - mRemoteNG.Connection.Protocol.Base prot = sender; + mRemoteNG.Connection.Protocol.Base prot = (Connection.Protocol.Base)sender; Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, My.Language.strConnectionEventConnected, true); Runtime.MessageCollector.AddMessage(Messages.MessageClass.ReportMsg, string.Format(My.Language.strConnectionEventConnectedDetail, prot.InterfaceControl.Info.Hostname, prot.InterfaceControl.Info.Protocol.ToString(), (new Microsoft.VisualBasic.ApplicationServices.User()).Name, prot.InterfaceControl.Info.Description, prot.InterfaceControl.Info.UserField)); @@ -2090,12 +2089,12 @@ namespace mRemoteNG.App try { Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, My.Language.strConnectionEventErrorOccured, true); - - Connection.Protocol.Base Prot = sender; + + Connection.Protocol.Base Prot = (Connection.Protocol.Base)sender; if (Prot.InterfaceControl.Info.Protocol == Connection.Protocol.Protocols.RDP) { - if (ErrorMessage > -1) + if (System.Convert.ToInt32(ErrorMessage) > -1) { Runtime.MessageCollector.AddMessage(Messages.MessageClass.WarningMsg, string.Format(My.Language.strConnectionRdpErrorDetail, ErrorMessage, Connection.Protocol.RDP.FatalErrors.GetError(ErrorMessage))); } @@ -2221,7 +2220,7 @@ namespace mRemoteNG.App { if (WindowList[i] is UI.Window.Connection) { - UI.Window.Connection conW = WindowList[i]; + UI.Window.Connection conW = (UI.Window.Connection)WindowList[i]; if (conW.TabController != null) { @@ -2231,7 +2230,7 @@ namespace mRemoteNG.App { if (t.Controls[0] is Connection.InterfaceControl) { - Connection.InterfaceControl IC = t.Controls[0]; + Connection.InterfaceControl IC = (Connection.InterfaceControl)t.Controls[0]; if (IC.Info == ConI) { return IC; diff --git a/mRemoteV1/CS/App/App.SupportedCultures.cs b/mRemoteV1/CS/App/App.SupportedCultures.cs index 4304381c3..a0195b822 100644 --- a/mRemoteV1/CS/App/App.SupportedCultures.cs +++ b/mRemoteV1/CS/App/App.SupportedCultures.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,85 +8,84 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.App { public class SupportedCultures : System.Collections.Generic.Dictionary + { + + private SupportedCultures() { - - private SupportedCultures() + System.Globalization.CultureInfo CultureInfo = default(System.Globalization.CultureInfo); + foreach (string CultureName in My.Settings.Default.SupportedUICultures.Split(',')) { - System.Globalization.CultureInfo CultureInfo = default(System.Globalization.CultureInfo); - foreach (string CultureName in My.Settings.Default.SupportedUICultures.Split(",")) + try { - try - { - CultureInfo = new System.Globalization.CultureInfo(CultureName.Trim()); - Add(CultureInfo.Name, CultureInfo.TextInfo.ToTitleCase(CultureInfo.NativeName)); - } - catch (Exception ex) - { - Debug.Print(string.Format("An exception occurred while adding the culture \'{0}\' to the list of supported cultures. {1}", CultureName, ex.ToString())); - } + CultureInfo = new System.Globalization.CultureInfo(CultureName.Trim()); + Add(CultureInfo.Name, CultureInfo.TextInfo.ToTitleCase(CultureInfo.NativeName)); } - } - - private static SupportedCultures _Instance = null; - public static void InstantiateSingleton() - { - if (_Instance == null) + catch (Exception ex) { - _Instance = new SupportedCultures(); - } - } - - public static bool IsNameSupported(string CultureName) - { - return _Instance.ContainsKey(CultureName); - } - - public static bool IsNativeNameSupported(string CultureNativeName) - { - return _Instance.ContainsValue(CultureNativeName); - } - - public static string get_CultureName(string CultureNativeName) - { - string[] Names = new string[_Instance.Count + 1]; - string[] NativeNames = new string[_Instance.Count + 1]; - - _Instance.Keys.CopyTo(Names, 0); - _Instance.Values.CopyTo(NativeNames, 0); - - for (int Index = 0; Index <= _Instance.Count; Index++) - { - if (NativeNames[Index] == CultureNativeName) - { - return Names[Index]; - } - } - - throw (new System.Collections.Generic.KeyNotFoundException()); - } - - public static string get_CultureNativeName(string CultureName) - { - return _Instance[CultureName]; - } - -public static List CultureNativeNames - { - get - { - List ValueList = new List(); - foreach (string Value in _Instance.Values) - { - ValueList.Add(Value); - } - return ValueList; + Debug.Print(string.Format("An exception occurred while adding the culture \'{0}\' to the list of supported cultures. {1}", CultureName, ex.ToString())); } } } + + private static SupportedCultures _Instance = null; + public static void InstantiateSingleton() + { + if (_Instance == null) + { + _Instance = new SupportedCultures(); + } + } + + public static bool IsNameSupported(string CultureName) + { + return _Instance.ContainsKey(CultureName); + } + + public static bool IsNativeNameSupported(string CultureNativeName) + { + return _Instance.ContainsValue(CultureNativeName); + } + + public static string get_CultureName(string CultureNativeName) + { + string[] Names = new string[_Instance.Count + 1]; + string[] NativeNames = new string[_Instance.Count + 1]; + + _Instance.Keys.CopyTo(Names, 0); + _Instance.Values.CopyTo(NativeNames, 0); + + for (int Index = 0; Index <= _Instance.Count; Index++) + { + if (NativeNames[Index] == CultureNativeName) + { + return Names[Index]; + } + } + + throw (new System.Collections.Generic.KeyNotFoundException()); + } + + public static string get_CultureNativeName(string CultureName) + { + return _Instance[CultureName]; + } + + public static List CultureNativeNames + { + get + { + List ValueList = new List(); + foreach (string Value in _Instance.Values) + { + ValueList.Add(Value); + } + return ValueList; + } + } + } } diff --git a/mRemoteV1/CS/App/App.Update.cs b/mRemoteV1/CS/App/App.Update.cs index fd7475379..6cbedfdcc 100644 --- a/mRemoteV1/CS/App/App.Update.cs +++ b/mRemoteV1/CS/App/App.Update.cs @@ -329,12 +329,12 @@ namespace mRemoteNG.App private static DownloadStringCompletedEventArgs NewDownloadStringCompletedEventArgs(string result, Exception exception, bool cancelled, object userToken) { Type type = typeof(DownloadStringCompletedEventArgs); - const BindingFlags bindingFlags = bindingFlags.NonPublic | bindingFlags.Instance; + const BindingFlags bindingFlags = BindingFlags.NonPublic | BindingFlags.Instance; Type[] argumentTypes = new Type[] {typeof(string), typeof(Exception), typeof(bool), typeof(object)}; ConstructorInfo constructor = type.GetConstructor(bindingFlags, null, argumentTypes, null); object[] arguments = new object[] {result, exception, cancelled, userToken}; - - return constructor.Invoke(arguments); + + return (DownloadStringCompletedEventArgs)constructor.Invoke(arguments); } private DownloadStringCompletedEventArgs DownloadString(Uri address) @@ -430,7 +430,7 @@ namespace mRemoteNG.App updateAuthenticode.RequireThumbprintMatch = true; updateAuthenticode.ThumbprintToMatch = _currentUpdateInfo.CertificateThumbprint; - if (!(updateAuthenticode.Verify() == (int) Authenticode.StatusValue.Verified)) + if (!(updateAuthenticode.Verify() == Authenticode.StatusValue.Verified)) { if (updateAuthenticode.Status == Authenticode.StatusValue.UnhandledException) { @@ -566,17 +566,17 @@ namespace mRemoteNG.App string[] lines = content.Split(lineSeparators.ToString().ToCharArray(), StringSplitOptions.RemoveEmptyEntries); foreach (string line in lines) { - line = line.Trim(); - if (line.Length == 0) + string trimmedLine = line.Trim(); + if (trimmedLine.Length == 0) { continue; } - if (!(line.Substring(0, 1).IndexOfAny(commentCharacters.ToString().ToCharArray()) == -1)) + if (!(trimmedLine.Substring(0, 1).IndexOfAny(commentCharacters.ToString().ToCharArray()) == -1)) { continue; } - - string[] parts = line.Split(keyValueSeparators.ToString().ToCharArray(), 2); + + string[] parts = trimmedLine.Split(keyValueSeparators.ToString().ToCharArray(), 2); if (!(parts.Length == 2)) { continue; @@ -597,7 +597,7 @@ namespace mRemoteNG.App { return string.Empty; } - return this[key]; + return this._items[key]; } public Version GetVersion(string key) diff --git a/mRemoteV1/CS/App/Export.cs b/mRemoteV1/CS/App/Export.cs index 4fbb53761..9273359c6 100644 --- a/mRemoteV1/CS/App/Export.cs +++ b/mRemoteV1/CS/App/Export.cs @@ -45,10 +45,10 @@ namespace mRemoteNG.App switch (exportForm.Scope) { - case exportForm.ExportScope.SelectedFolder: + case mRemoteNG.Forms.ExportForm.ExportScope.SelectedFolder: exportTreeNode = exportForm.SelectedFolder; break; - case exportForm.ExportScope.SelectedConnection: + case mRemoteNG.Forms.ExportForm.ExportScope.SelectedConnection: exportTreeNode = exportForm.SelectedConnection; break; default: @@ -77,19 +77,19 @@ namespace mRemoteNG.App try { - if (TimerSqlWatcher != null) + if (Runtime.TimerSqlWatcher != null) { - previousTimerEnabled = TimerSqlWatcher.Enabled; - TimerSqlWatcher.Enabled = false; + previousTimerEnabled = Runtime.TimerSqlWatcher.Enabled; + Runtime.TimerSqlWatcher.Enabled = false; } Config.Connections.Save connectionsSave = new Config.Connections.Save(); connectionsSave.Export = true; connectionsSave.ConnectionFileName = fileName; connectionsSave.SaveFormat = saveFormat; - - connectionsSave.ConnectionList = ConnectionList; - connectionsSave.ContainerList = ContainerList; + + connectionsSave.ConnectionList = Runtime.ConnectionList; + connectionsSave.ContainerList = Runtime.ContainerList; connectionsSave.RootTreeNode = rootNode; connectionsSave.SaveSecurity = saveSecurity; @@ -102,9 +102,9 @@ namespace mRemoteNG.App } finally { - if (TimerSqlWatcher != null) + if (Runtime.TimerSqlWatcher != null) { - TimerSqlWatcher.Enabled = previousTimerEnabled; + Runtime.TimerSqlWatcher.Enabled = previousTimerEnabled; } } } diff --git a/mRemoteV1/CS/App/Import.cs b/mRemoteV1/CS/App/Import.cs index 3c30cc4ce..7044536d2 100644 --- a/mRemoteV1/CS/App/Import.cs +++ b/mRemoteV1/CS/App/Import.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,240 +8,238 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.IO; using mRemoteNG.My; -//using mRemoteNG.App.Runtime; +using mRemoteNG.App; using PSTaskDialog; namespace mRemoteNG.App { public class Import + { + #region Public Methods + public static void ImportFromFile(TreeNode rootTreeNode, TreeNode selectedTreeNode, bool alwaysUseSelectedTreeNode = false) { -#region Public Methods - public static void ImportFromFile(TreeNode rootTreeNode, TreeNode selectedTreeNode, bool alwaysUseSelectedTreeNode = false) + try { - try + using (OpenFileDialog openFileDialog = new OpenFileDialog()) { - using (OpenFileDialog openFileDialog = new OpenFileDialog()) + openFileDialog.CheckFileExists = true; + openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal); + openFileDialog.Multiselect = true; + + List fileTypes = new List(); + fileTypes.AddRange(new[] {Language.strFilterAllImportable, "*.xml;*.rdp;*.rdg;*.dat"}); + fileTypes.AddRange(new[] {Language.strFiltermRemoteXML, "*.xml"}); + fileTypes.AddRange(new[] {Language.strFilterRDP, "*.rdp"}); + fileTypes.AddRange(new[] {Language.strFilterRdgFiles, "*.rdg"}); + fileTypes.AddRange(new[] {Language.strFilterPuttyConnectionManager, "*.dat"}); + fileTypes.AddRange(new[] {Language.strFilterAll, "*.*"}); + + openFileDialog.Filter = string.Join("|", fileTypes.ToArray()); + + if (!(openFileDialog.ShowDialog() == DialogResult.OK)) { - openFileDialog.CheckFileExists = true; - openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal); - openFileDialog.Multiselect = true; - - List fileTypes = new List(); - fileTypes.AddRange(new[] {Language.strFilterAllImportable, "*.xml;*.rdp;*.rdg;*.dat"}); - fileTypes.AddRange(new[] {Language.strFiltermRemoteXML, "*.xml"}); - fileTypes.AddRange(new[] {Language.strFilterRDP, "*.rdp"}); - fileTypes.AddRange(new[] {Language.strFilterRdgFiles, "*.rdg"}); - fileTypes.AddRange(new[] {Language.strFilterPuttyConnectionManager, "*.dat"}); - fileTypes.AddRange(new[] {Language.strFilterAll, "*.*"}); - - openFileDialog.Filter = string.Join("|", fileTypes.ToArray()); - - if (!(openFileDialog.ShowDialog() == DialogResult.OK)) - { - return ; - } - - TreeNode parentTreeNode = GetParentTreeNode(rootTreeNode, selectedTreeNode, alwaysUseSelectedTreeNode); - if (parentTreeNode == null) - { - return ; - } - - foreach (string fileName in openFileDialog.FileNames) - { - try - { - switch (DetermineFileType(fileName)) - { - case FileType.mRemoteXml: - Config.Import.mRemoteNG.Import(fileName, parentTreeNode); - break; - case FileType.RemoteDesktopConnection: - Config.Import.RemoteDesktopConnection.Import(fileName, parentTreeNode); - break; - case FileType.RemoteDesktopConnectionManager: - Config.Import.RemoteDesktopConnectionManager.Import(fileName, parentTreeNode); - break; - case FileType.PuttyConnectionManager: - Config.Import.PuttyConnectionManager.Import(fileName, parentTreeNode); - break; - default: - throw (new FileFormatException("Unrecognized file format.")); - break; - } - } - catch (Exception ex) - { - cTaskDialog.ShowTaskDialogBox(System.Windows.Forms.Application.ProductName, Language.strImportFileFailedMainInstruction, string.Format(Language.strImportFileFailedContent, fileName), Tools.Misc.GetExceptionMessageRecursive(ex), "", "", "", "", eTaskDialogButtons.OK, eSysIcons.Error, null); - } - } - - parentTreeNode.Expand(); - Container.Info parentContainer = parentTreeNode.Tag as Container.Info; - if (parentContainer != null) - { - parentContainer.IsExpanded = true; - } - - SaveConnectionsBG(); + return ; } - - } - catch (Exception ex) - { - Runtime.MessageCollector.AddExceptionMessage(message: "App.Import.ImportFromFile() failed.", ex: ex, logOnly: true); - } - } - - public static void ImportFromActiveDirectory(string ldapPath) - { - try - { - TreeNode rootTreeNode = Tree.Node.TreeView.Nodes[0]; - TreeNode selectedTreeNode = Tree.Node.TreeView.SelectedNode; - - TreeNode parentTreeNode = GetParentTreeNode(rootTreeNode, selectedTreeNode); + + TreeNode parentTreeNode = GetParentTreeNode(rootTreeNode, selectedTreeNode, alwaysUseSelectedTreeNode); if (parentTreeNode == null) { return ; } - - Config.Import.ActiveDirectory.Import(ldapPath, parentTreeNode); - + + foreach (string fileName in openFileDialog.FileNames) + { + try + { + switch (DetermineFileType(fileName)) + { + case FileType.mRemoteXml: + Config.Import.mRemoteNG.Import(fileName, parentTreeNode); + break; + case FileType.RemoteDesktopConnection: + Config.Import.RemoteDesktopConnection.Import(fileName, parentTreeNode); + break; + case FileType.RemoteDesktopConnectionManager: + Config.Import.RemoteDesktopConnectionManager.Import(fileName, parentTreeNode); + break; + case FileType.PuttyConnectionManager: + Config.Import.PuttyConnectionManager.Import(fileName, parentTreeNode); + break; + default: + throw (new FileFormatException("Unrecognized file format.")); + break; + } + } + catch (Exception ex) + { + cTaskDialog.ShowTaskDialogBox(System.Windows.Forms.Application.ProductName, Language.strImportFileFailedMainInstruction, string.Format(Language.strImportFileFailedContent, fileName), Tools.Misc.GetExceptionMessageRecursive(ex), "", "", "", "", eTaskDialogButtons.OK, eSysIcons.Error, eSysIcons.Error); + } + } + parentTreeNode.Expand(); Container.Info parentContainer = parentTreeNode.Tag as Container.Info; if (parentContainer != null) { parentContainer.IsExpanded = true; } + + Runtime.SaveConnectionsBG(); + } - SaveConnectionsBG(); - } - catch (Exception ex) - { - Runtime.MessageCollector.AddExceptionMessage(message: "App.Import.ImportFromActiveDirectory() failed.", ex: ex, logOnly: true); - } } - - public static void ImportFromPortScan(IEnumerable hosts, Connection.Protocol.Protocols protocol) + catch (Exception ex) { - try - { - TreeNode rootTreeNode = Tree.Node.TreeView.Nodes[0]; - TreeNode selectedTreeNode = Tree.Node.TreeView.SelectedNode; - - TreeNode parentTreeNode = GetParentTreeNode(rootTreeNode, selectedTreeNode); - if (parentTreeNode == null) - { - return ; - } - - Config.import.PortScan.Import(hosts, protocol, parentTreeNode); - - parentTreeNode.Expand(); - Container.Info parentContainer = parentTreeNode.Tag as Container.Info; - if (parentContainer != null) - { - parentContainer.IsExpanded = true; - } - - SaveConnectionsBG(); - } - catch (Exception ex) - { - Runtime.MessageCollector.AddExceptionMessage(message: "App.Import.ImportFromPortScan() failed.", ex: ex, logOnly: true); - } + Runtime.MessageCollector.AddExceptionMessage(message: "App.Import.ImportFromFile() failed.", ex: ex, logOnly: true); } -#endregion - -#region Private Methods - private static TreeNode GetParentTreeNode(TreeNode rootTreeNode, TreeNode selectedTreeNode, bool alwaysUseSelectedTreeNode = false) - { - TreeNode parentTreeNode = default(TreeNode); - - selectedTreeNode = GetContainerTreeNode(selectedTreeNode); - if (selectedTreeNode == null || selectedTreeNode == rootTreeNode) - { - parentTreeNode = rootTreeNode; - } - else - { - if (alwaysUseSelectedTreeNode) - { - parentTreeNode = GetContainerTreeNode(selectedTreeNode); - } - else - { - cTaskDialog.ShowCommandBox(System.Windows.Forms.Application.ProductName, Language.strImportLocationMainInstruction, Language.strImportLocationContent, "", "", "", string.Format(Language.strImportLocationCommandButtons, Constants.vbLf, rootTreeNode.Text, selectedTreeNode.Text), true, eSysIcons.Question, (PSTaskDialog.eSysIcons) 0); - switch (cTaskDialog.CommandButtonResult) - { - case 0: // Root - parentTreeNode = rootTreeNode; - break; - case 1: // Selected Folder - parentTreeNode = GetContainerTreeNode(selectedTreeNode); - break; - default: // Cancel - parentTreeNode = null; - break; - } - } - } - - return parentTreeNode; - } - - private static TreeNode GetContainerTreeNode(TreeNode treeNode) - { - if ((Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Root) || (Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Container)) - { - return treeNode; - } - else if (Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Connection) - { - return treeNode.Parent; - } - else - { - return null; - } - } - - private static FileType DetermineFileType(string fileName) - { - // TODO: Use the file contents to determine the file type instead of trusting the extension - string fileExtension = System.Convert.ToString(Path.GetExtension(fileName).ToLowerInvariant()); - switch (fileExtension) - { - case ".xml": - return FileType.mRemoteXml; - case ".rdp": - return FileType.RemoteDesktopConnection; - case ".rdg": - return FileType.RemoteDesktopConnectionManager; - case ".dat": - return FileType.PuttyConnectionManager; - default: - return FileType.Unknown; - } - } -#endregion - -#region Private Enumerations - private enum FileType - { - Unknown = 0, - // ReSharper disable once InconsistentNaming - mRemoteXml, - RemoteDesktopConnection, - RemoteDesktopConnectionManager, - PuttyConnectionManager - } -#endregion } + + public static void ImportFromActiveDirectory(string ldapPath) + { + try + { + TreeNode rootTreeNode = Tree.Node.TreeView.Nodes[0]; + TreeNode selectedTreeNode = Tree.Node.TreeView.SelectedNode; + + TreeNode parentTreeNode = GetParentTreeNode(rootTreeNode, selectedTreeNode); + if (parentTreeNode == null) + { + return ; + } + + Config.Import.ActiveDirectory.Import(ldapPath, parentTreeNode); + + parentTreeNode.Expand(); + Container.Info parentContainer = parentTreeNode.Tag as Container.Info; + if (parentContainer != null) + { + parentContainer.IsExpanded = true; + } + + Runtime.SaveConnectionsBG(); + } + catch (Exception ex) + { + Runtime.MessageCollector.AddExceptionMessage(message: "App.Import.ImportFromActiveDirectory() failed.", ex: ex, logOnly: true); + } + } + + public static void ImportFromPortScan(IEnumerable hosts, Connection.Protocol.Protocols protocol) + { + try + { + TreeNode rootTreeNode = Tree.Node.TreeView.Nodes[0]; + TreeNode selectedTreeNode = Tree.Node.TreeView.SelectedNode; + + TreeNode parentTreeNode = GetParentTreeNode(rootTreeNode, selectedTreeNode); + if (parentTreeNode == null) + { + return ; + } + + Config.Import.PortScan.Import(hosts, protocol, parentTreeNode); + + parentTreeNode.Expand(); + Container.Info parentContainer = parentTreeNode.Tag as Container.Info; + if (parentContainer != null) + { + parentContainer.IsExpanded = true; + } + + Runtime.SaveConnectionsBG(); + } + catch (Exception ex) + { + Runtime.MessageCollector.AddExceptionMessage(message: "App.Import.ImportFromPortScan() failed.", ex: ex, logOnly: true); + } + } + #endregion + + #region Private Methods + private static TreeNode GetParentTreeNode(TreeNode rootTreeNode, TreeNode selectedTreeNode, bool alwaysUseSelectedTreeNode = false) + { + TreeNode parentTreeNode = default(TreeNode); + + selectedTreeNode = GetContainerTreeNode(selectedTreeNode); + if (selectedTreeNode == null || selectedTreeNode == rootTreeNode) + { + parentTreeNode = rootTreeNode; + } + else + { + if (alwaysUseSelectedTreeNode) + { + parentTreeNode = GetContainerTreeNode(selectedTreeNode); + } + else + { + cTaskDialog.ShowCommandBox(System.Windows.Forms.Application.ProductName, Language.strImportLocationMainInstruction, Language.strImportLocationContent, "", "", "", string.Format(Language.strImportLocationCommandButtons, Constants.vbLf, rootTreeNode.Text, selectedTreeNode.Text), true, eSysIcons.Question, (PSTaskDialog.eSysIcons) 0); + switch (cTaskDialog.CommandButtonResult) + { + case 0: // Root + parentTreeNode = rootTreeNode; + break; + case 1: // Selected Folder + parentTreeNode = GetContainerTreeNode(selectedTreeNode); + break; + default: // Cancel + parentTreeNode = null; + break; + } + } + } + + return parentTreeNode; + } + + private static TreeNode GetContainerTreeNode(TreeNode treeNode) + { + if ((Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Root) || (Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Container)) + { + return treeNode; + } + else if (Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Connection) + { + return treeNode.Parent; + } + else + { + return null; + } + } + + private static FileType DetermineFileType(string fileName) + { + // TODO: Use the file contents to determine the file type instead of trusting the extension + string fileExtension = System.Convert.ToString(Path.GetExtension(fileName).ToLowerInvariant()); + switch (fileExtension) + { + case ".xml": + return FileType.mRemoteXml; + case ".rdp": + return FileType.RemoteDesktopConnection; + case ".rdg": + return FileType.RemoteDesktopConnectionManager; + case ".dat": + return FileType.PuttyConnectionManager; + default: + return FileType.Unknown; + } + } + #endregion + + #region Private Enumerations + private enum FileType + { + Unknown = 0, + // ReSharper disable once InconsistentNaming + mRemoteXml, + RemoteDesktopConnection, + RemoteDesktopConnectionManager, + PuttyConnectionManager + } + #endregion + } } diff --git a/mRemoteV1/CS/ApplicationEvents.cs b/mRemoteV1/CS/ApplicationEvents.cs index da37319e9..df2ea1814 100644 --- a/mRemoteV1/CS/ApplicationEvents.cs +++ b/mRemoteV1/CS/ApplicationEvents.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using Microsoft.VisualBasic.CompilerServices; namespace mRemoteNG.My @@ -23,75 +20,75 @@ namespace mRemoteNG.My // StartupNextInstance: Raised when launching a single-instance application and the application is already active. // NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected. partial class MyApplication : global::Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase + { + public System.Threading.Mutex mutex; + + private void MyApplication_Startup(object sender, Microsoft.VisualBasic.ApplicationServices.StartupEventArgs e) { - public System.Threading.Mutex mutex; - - private void MyApplication_Startup(object sender, Microsoft.VisualBasic.ApplicationServices.StartupEventArgs e) + if (My.Settings.Default.SingleInstance) { - if (My.Settings.Default.SingleInstance) + string mutexID = "mRemoteNG_SingleInstanceMutex"; + + mutex = new System.Threading.Mutex(false, mutexID); + + if (!mutex.WaitOne(0, false)) { - string mutexID = "mRemoteNG_SingleInstanceMutex"; - - mutex = new System.Threading.Mutex(false, mutexID); - - if (!mutex.WaitOne(0, false)) + try { - try - { - SwitchToCurrentInstance(); - } - catch (Exception) - { - } + SwitchToCurrentInstance(); + } + catch (Exception) + { + } - ProjectData.EndApp(); - } + ProjectData.EndApp(); + } - GC.KeepAlive(mutex); - } - } - - private IntPtr GetCurrentInstanceWindowHandle() - { - IntPtr hWnd = IntPtr.Zero; - Process curProc = Process.GetCurrentProcess(); - - foreach (Process proc in Process.GetProcessesByName(curProc.ProcessName)) - { - if (proc.Id != curProc.Id && proc.MainModule.FileName == curProc.MainModule.FileName && proc.MainWindowHandle != IntPtr.Zero) - { - hWnd = proc.MainWindowHandle; - break; - } - } - - return hWnd; - } - - private void SwitchToCurrentInstance() - { - IntPtr hWnd = GetCurrentInstanceWindowHandle(); - - if (hWnd != IntPtr.Zero) - { - //Restore window if minimized. Do not restore if already in - //normal or maximised window state, since we don't want to - //change the current state of the window. - if (App.Native.IsIconic(hWnd) != 0) - { - App.Native.ShowWindow(hWnd, App.Native.SW_RESTORE); - } - - App.Native.SetForegroundWindow(hWnd); - } - } - - private void MyApplication_Shutdown(object sender, System.EventArgs e) - { - if (mutex != null) - { - mutex.Close(); - } + GC.KeepAlive(mutex); } } + + private IntPtr GetCurrentInstanceWindowHandle() + { + IntPtr hWnd = IntPtr.Zero; + Process curProc = Process.GetCurrentProcess(); + + foreach (Process proc in Process.GetProcessesByName(curProc.ProcessName)) + { + if (proc.Id != curProc.Id && proc.MainModule.FileName == curProc.MainModule.FileName && proc.MainWindowHandle != IntPtr.Zero) + { + hWnd = proc.MainWindowHandle; + break; + } + } + + return hWnd; + } + + private void SwitchToCurrentInstance() + { + IntPtr hWnd = GetCurrentInstanceWindowHandle(); + + if (hWnd != IntPtr.Zero) + { + //Restore window if minimized. Do not restore if already in + //normal or maximised window state, since we don't want to + //change the current state of the window. + if (App.Native.IsIconic(hWnd) != 0) + { + App.Native.ShowWindow(hWnd, App.Native.SW_RESTORE); + } + + App.Native.SetForegroundWindow(hWnd); + } + } + + private void MyApplication_Shutdown(object sender, System.EventArgs e) + { + if (mutex != null) + { + mutex.Close(); + } + } + } } diff --git a/mRemoteV1/CS/Config/Config.Connections.Load.cs b/mRemoteV1/CS/Config/Config.Connections.Load.cs index 89fcfd678..fe3ed617d 100644 --- a/mRemoteV1/CS/Config/Config.Connections.Load.cs +++ b/mRemoteV1/CS/Config/Config.Connections.Load.cs @@ -115,7 +115,7 @@ namespace mRemoteNG.Config.Connections #endregion #region Public Methods - public void Load_Renamed(bool import) + public void Load(bool import) { if (UseSQL) { diff --git a/mRemoteV1/CS/Config/Config.Connections.Save.cs b/mRemoteV1/CS/Config/Config.Connections.Save.cs index fa8d5a598..180524bbf 100644 --- a/mRemoteV1/CS/Config/Config.Connections.Save.cs +++ b/mRemoteV1/CS/Config/Config.Connections.Save.cs @@ -13,7 +13,7 @@ using System.IO; using System.Globalization; using mRemoteNG.App; using System.Data.SqlClient; -//using mRemoteNG.Tools.Misc; +using mRemoteNG.Tools; namespace mRemoteNG.Config.Connections @@ -59,7 +59,7 @@ namespace mRemoteNG.Config.Connections #endregion #region Public Methods - public void Save_Renamed() + public void Save() { switch (SaveFormat) { @@ -182,7 +182,7 @@ namespace mRemoteNG.Config.Connections } TreeNode tN = default(TreeNode); - tN = RootTreeNode.Clone(); + tN = (TreeNode)RootTreeNode.Clone(); string strProtected = ""; if (tN.Tag != null) @@ -204,8 +204,8 @@ namespace mRemoteNG.Config.Connections _sqlQuery = new SqlCommand("DELETE FROM tblRoot", _sqlConnection); _sqlQuery.ExecuteNonQuery(); - - _sqlQuery = new SqlCommand("INSERT INTO tblRoot (Name, Export, Protected, ConfVersion) VALUES(\'" + PrepareValueForDB(tN.Text) + "\', 0, \'" + strProtected + "\'," + App.Info.Connections.ConnectionFileVersion.ToString(CultureInfo.InvariantCulture) + ")", _sqlConnection); + + _sqlQuery = new SqlCommand("INSERT INTO tblRoot (Name, Export, Protected, ConfVersion) VALUES(\'" + Misc.PrepareValueForDB(tN.Text) + "\', 0, \'" + strProtected + "\'," + App.Info.Connections.ConnectionFileVersion.ToString(CultureInfo.InvariantCulture) + ")", _sqlConnection); _sqlQuery.ExecuteNonQuery(); _sqlQuery = new SqlCommand("DELETE FROM tblCons", _sqlConnection); @@ -238,14 +238,14 @@ namespace mRemoteNG.Config.Connections if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Connection | Tree.Node.GetNodeType(node) == Tree.Node.Type.Container) { //_xmlTextWriter.WriteStartElement("Node") - _sqlQuery.CommandText += "\'" + PrepareValueForDB(node.Text) + "\',"; //Name + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(node.Text) + "\',"; //Name _sqlQuery.CommandText += "\'" + Tree.Node.GetNodeType(node).ToString() + "\',"; //Type } if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Container) //container { - _sqlQuery.CommandText += "\'" + this._ContainerList[node.Tag].IsExpanded + "\',"; //Expanded - curConI = this._ContainerList[node.Tag].ConnectionInfo; + _sqlQuery.CommandText += "\'" + this.ContainerList[node.Tag].IsExpanded + "\',"; //Expanded + curConI = this.ContainerList[node.Tag].ConnectionInfo; SaveConnectionFieldsSQL(curConI); _sqlQuery.CommandText = Tools.Misc.PrepareForDB(_sqlQuery.CommandText); @@ -258,7 +258,7 @@ namespace mRemoteNG.Config.Connections if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Connection) { _sqlQuery.CommandText += "\'" + System.Convert.ToString(false) + "\',"; - curConI = this._ConnectionList[node.Tag]; + curConI = this.ConnectionList[node.Tag]; SaveConnectionFieldsSQL(curConI); //_xmlTextWriter.WriteEndElement() _sqlQuery.CommandText = Tools.Misc.PrepareForDB(_sqlQuery.CommandText); @@ -272,40 +272,40 @@ namespace mRemoteNG.Config.Connections private void SaveConnectionFieldsSQL(Connection.Info curConI) { Connection.Info with_1 = curConI; - _sqlQuery.CommandText += "\'" + PrepareValueForDB(with_1.Description) + "\',"; - _sqlQuery.CommandText += "\'" + PrepareValueForDB(with_1.Icon) + "\',"; - _sqlQuery.CommandText += "\'" + PrepareValueForDB(with_1.Panel) + "\',"; + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(with_1.Description) + "\',"; + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(with_1.Icon) + "\',"; + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(with_1.Panel) + "\',"; - if (this._SaveSecurity.Username == true) + if (this.SaveSecurity.Username == true) { - _sqlQuery.CommandText += "\'" + PrepareValueForDB(with_1.Username) + "\',"; + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(with_1.Username) + "\',"; } else { _sqlQuery.CommandText += "\'" + "" + "\',"; } - if (this._SaveSecurity.Domain == true) + if (this.SaveSecurity.Domain == true) { - _sqlQuery.CommandText += "\'" + PrepareValueForDB(with_1.Domain) + "\',"; + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(with_1.Domain) + "\',"; } else { _sqlQuery.CommandText += "\'" + "" + "\',"; } - if (this._SaveSecurity.Password == true) + if (this.SaveSecurity.Password == true) { - _sqlQuery.CommandText += "\'" + PrepareValueForDB(Security.Crypt.Encrypt(with_1.Password, _password)) + "\',"; + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(Security.Crypt.Encrypt(with_1.Password, _password)) + "\',"; } else { _sqlQuery.CommandText += "\'" + "" + "\',"; } - - _sqlQuery.CommandText += "\'" + PrepareValueForDB(with_1.Hostname) + "\',"; + + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(with_1.Hostname) + "\',"; _sqlQuery.CommandText += "\'" + with_1.Protocol.ToString() + "\',"; - _sqlQuery.CommandText += "\'" + PrepareValueForDB(with_1.PuttySession) + "\',"; + _sqlQuery.CommandText += "\'" + Misc.PrepareValueForDB(with_1.PuttySession) + "\',"; _sqlQuery.CommandText += "\'" + System.Convert.ToString(with_1.Port) + "\',"; _sqlQuery.CommandText += "\'" + System.Convert.ToString(with_1.UseConsoleSession) + "\',"; _sqlQuery.CommandText += "\'" + with_1.RenderingEngine.ToString() + "\',"; @@ -358,7 +358,7 @@ namespace mRemoteNG.Config.Connections _sqlQuery.CommandText += "\'" + with_1.RDGatewayHostname + "\',"; _sqlQuery.CommandText += "\'" + with_1.RDGatewayUseConnectionCredentials.ToString() + "\',"; - if (this._SaveSecurity.Username == true) + if (this.SaveSecurity.Username == true) { _sqlQuery.CommandText += "\'" + with_1.RDGatewayUsername + "\',"; } @@ -367,7 +367,7 @@ namespace mRemoteNG.Config.Connections _sqlQuery.CommandText += "\'" + "" + "\',"; } - if (this._SaveSecurity.Password == true) + if (this.SaveSecurity.Password == true) { _sqlQuery.CommandText += "\'" + Security.Crypt.Encrypt(with_1.RDGatewayPassword, _password) + "\',"; } @@ -376,7 +376,7 @@ namespace mRemoteNG.Config.Connections _sqlQuery.CommandText += "\'" + "" + "\',"; } - if (this._SaveSecurity.Domain == true) + if (this.SaveSecurity.Domain == true) { _sqlQuery.CommandText += "\'" + with_1.RDGatewayDomain + "\',"; } @@ -387,7 +387,7 @@ namespace mRemoteNG.Config.Connections _sqlQuery.CommandText += "\'" + System.Convert.ToString(with_1.UseCredSsp) + "\',"; - if (this._SaveSecurity.Inheritance == true) + if (this.SaveSecurity.Inheritance == true) { _sqlQuery.CommandText += "\'" + System.Convert.ToString(with_1.Inherit.CacheBitmaps) + "\',"; _sqlQuery.CommandText += "\'" + System.Convert.ToString(with_1.Inherit.Colors) + "\',"; @@ -552,7 +552,7 @@ namespace mRemoteNG.Config.Connections { try { - if (!IsConnectionsFileLoaded) + if (!Runtime.IsConnectionsFileLoaded) { return; } @@ -561,7 +561,7 @@ namespace mRemoteNG.Config.Connections if (Tree.Node.GetNodeType(RootTreeNode) == Tree.Node.Type.Root) { - treeNode = RootTreeNode.Clone(); + treeNode = (TreeNode)RootTreeNode.Clone(); } else { @@ -646,8 +646,8 @@ namespace mRemoteNG.Config.Connections if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Container) //container { - _xmlTextWriter.WriteAttributeString("Expanded", "", System.Convert.ToString(this._ContainerList[node.Tag].TreeNode.IsExpanded)); - curConI = this._ContainerList[node.Tag].ConnectionInfo; + _xmlTextWriter.WriteAttributeString("Expanded", "", System.Convert.ToString(this.ContainerList[node.Tag].TreeNode.IsExpanded)); + curConI = this.ContainerList[node.Tag].ConnectionInfo; SaveConnectionFields(curConI); SaveNode(node.Nodes); _xmlTextWriter.WriteEndElement(); @@ -655,7 +655,7 @@ namespace mRemoteNG.Config.Connections if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Connection) { - curConI = this._ConnectionList[node.Tag]; + curConI = this.ConnectionList[node.Tag]; SaveConnectionFields(curConI); _xmlTextWriter.WriteEndElement(); } @@ -677,7 +677,7 @@ namespace mRemoteNG.Config.Connections _xmlTextWriter.WriteAttributeString("Panel", "", curConI.Panel); - if (this._SaveSecurity.Username == true) + if (this.SaveSecurity.Username == true) { _xmlTextWriter.WriteAttributeString("Username", "", curConI.Username); } @@ -686,7 +686,7 @@ namespace mRemoteNG.Config.Connections _xmlTextWriter.WriteAttributeString("Username", "", ""); } - if (this._SaveSecurity.Domain == true) + if (this.SaveSecurity.Domain == true) { _xmlTextWriter.WriteAttributeString("Domain", "", curConI.Domain); } @@ -695,7 +695,7 @@ namespace mRemoteNG.Config.Connections _xmlTextWriter.WriteAttributeString("Domain", "", ""); } - if (this._SaveSecurity.Password == true) + if (this.SaveSecurity.Password == true) { _xmlTextWriter.WriteAttributeString("Password", "", Security.Crypt.Encrypt(curConI.Password, _password)); } @@ -784,7 +784,7 @@ namespace mRemoteNG.Config.Connections _xmlTextWriter.WriteAttributeString("RDGatewayUseConnectionCredentials", "", curConI.RDGatewayUseConnectionCredentials.ToString()); - if (this._SaveSecurity.Username == true) + if (this.SaveSecurity.Username == true) { _xmlTextWriter.WriteAttributeString("RDGatewayUsername", "", curConI.RDGatewayUsername); } @@ -793,7 +793,7 @@ namespace mRemoteNG.Config.Connections _xmlTextWriter.WriteAttributeString("RDGatewayUsername", "", ""); } - if (this._SaveSecurity.Password == true) + if (this.SaveSecurity.Password == true) { _xmlTextWriter.WriteAttributeString("RDGatewayPassword", "", Security.Crypt.Encrypt(curConI.RDGatewayPassword, _password)); } @@ -802,7 +802,7 @@ namespace mRemoteNG.Config.Connections _xmlTextWriter.WriteAttributeString("RDGatewayPassword", "", ""); } - if (this._SaveSecurity.Domain == true) + if (this.SaveSecurity.Domain == true) { _xmlTextWriter.WriteAttributeString("RDGatewayDomain", "", curConI.RDGatewayDomain); } @@ -811,7 +811,7 @@ namespace mRemoteNG.Config.Connections _xmlTextWriter.WriteAttributeString("RDGatewayDomain", "", ""); } - if (this._SaveSecurity.Inheritance == true) + if (this.SaveSecurity.Inheritance == true) { _xmlTextWriter.WriteAttributeString("InheritCacheBitmaps", "", System.Convert.ToString(curConI.Inherit.CacheBitmaps)); _xmlTextWriter.WriteAttributeString("InheritColors", "", System.Convert.ToString(curConI.Inherit.Colors)); @@ -937,7 +937,7 @@ namespace mRemoteNG.Config.Connections } TreeNode tN = default(TreeNode); - tN = RootTreeNode.Clone(); + tN = (TreeNode)RootTreeNode.Clone(); TreeNodeCollection tNC = default(TreeNodeCollection); tNC = tN.Nodes; @@ -984,7 +984,7 @@ namespace mRemoteNG.Config.Connections { if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Connection) { - Connection.Info curConI = node.Tag; + Connection.Info curConI = (Connection.Info)node.Tag; WritemRCSVLine(curConI); } @@ -1052,7 +1052,7 @@ namespace mRemoteNG.Config.Connections } TreeNode tN = default(TreeNode); - tN = RootTreeNode.Clone(); + tN = (TreeNode)RootTreeNode.Clone(); TreeNodeCollection tNC = default(TreeNodeCollection); tNC = tN.Nodes; @@ -1070,7 +1070,7 @@ namespace mRemoteNG.Config.Connections { if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Connection) { - Connection.Info curConI = node.Tag; + Connection.Info curConI = (Connection.Info)node.Tag; if (curConI.Protocol == Connection.Protocol.Protocols.RDP) { @@ -1114,7 +1114,7 @@ namespace mRemoteNG.Config.Connections } TreeNode tN = default(TreeNode); - tN = RootTreeNode.Clone(); + tN = (TreeNode)RootTreeNode.Clone(); TreeNodeCollection tNC = default(TreeNodeCollection); tNC = tN.Nodes; @@ -1143,7 +1143,7 @@ namespace mRemoteNG.Config.Connections { if (Tree.Node.GetNodeType(node) == Tree.Node.Type.Connection) { - Connection.Info curConI = node.Tag; + Connection.Info curConI = (Connection.Info)node.Tag; if (curConI.Protocol == Connection.Protocol.Protocols.RDP) { diff --git a/mRemoteV1/CS/Config/Config.Settings.Load.cs b/mRemoteV1/CS/Config/Config.Settings.Load.cs index 4df4a4a2f..8ba76b0b1 100644 --- a/mRemoteV1/CS/Config/Config.Settings.Load.cs +++ b/mRemoteV1/CS/Config/Config.Settings.Load.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,357 +8,354 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.IO; using WeifenLuo.WinFormsUI.Docking; -//using mRemoteNG.App.Runtime; +using mRemoteNG.App; using System.Xml; -//using System.Environment; namespace mRemoteNG.Config.Settings { public class Load + { + #region Public Properties + private frmMain _MainForm; + public frmMain MainForm + { + get { -#region Public Properties - private frmMain _MainForm; -public frmMain MainForm - { - get - { - return this._MainForm; - } - set - { - this._MainForm = value; - } - } -#endregion - -#region Public Methods - public Load(frmMain MainForm) - { - this._MainForm = MainForm; - } - - public void Load_Renamed() - { - try - { - // Migrate settings from previous version - if (My.Settings.Default.DoUpgrade) - { - try - { - My.Settings.Default.Upgrade(); - } - catch (Exception ex) - { - Log.Error("My.Settings.Upgrade() failed" + Constants.vbNewLine + ex.Message); - } - My.Settings.Default.DoUpgrade = false; - - // Clear pending update flag - // This is used for automatic updates, not for settings migration, but it - // needs to be cleared here because we know that we just updated. - My.Settings.Default.UpdatePending = false; - } - - App.SupportedCultures.InstantiateSingleton(); - if (!(My.Settings.Default.OverrideUICulture == "") && App.SupportedCultures.IsNameSupported(System.Convert.ToString(My.Settings.Default.OverrideUICulture))) - { - System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(System.Convert.ToString(My.Settings.Default.OverrideUICulture)); - Log.InfoFormat("Override Culture: {0}/{1}", System.Threading.Thread.CurrentThread.CurrentUICulture.Name, System.Threading.Thread.CurrentThread.CurrentUICulture.NativeName); - } - - Themes.ThemeManager.LoadTheme(System.Convert.ToString(My.Settings.Default.ThemeName)); - - this._MainForm.WindowState = FormWindowState.Normal; - if (My.Settings.Default.MainFormState == FormWindowState.Normal) - { - if (!My.Settings.Default.MainFormLocation.IsEmpty) - { - this._MainForm.Location = My.Settings.Default.MainFormLocation; - } - if (!My.Settings.Default.MainFormSize.IsEmpty) - { - this._MainForm.Size = My.Settings.Default.MainFormSize; - } - } - else - { - if (!My.Settings.Default.MainFormRestoreLocation.IsEmpty) - { - this._MainForm.Location = My.Settings.Default.MainFormRestoreLocation; - } - if (!My.Settings.Default.MainFormRestoreSize.IsEmpty) - { - this._MainForm.Size = My.Settings.Default.MainFormRestoreSize; - } - } - if (My.Settings.Default.MainFormState == FormWindowState.Maximized) - { - this._MainForm.WindowState = FormWindowState.Maximized; - } - - // Make sure the form is visible on the screen - const int minHorizontal = 300; - const int minVertical = 150; - System.Drawing.Rectangle screenBounds = Screen.FromHandle(this._MainForm.Handle).Bounds; - System.Drawing.Rectangle newBounds = this._MainForm.Bounds; - - if (newBounds.Right < screenBounds.Left + minHorizontal) - { - newBounds.X = screenBounds.Left + minHorizontal - newBounds.Width; - } - if (newBounds.Left > screenBounds.Right - minHorizontal) - { - newBounds.X = screenBounds.Right - minHorizontal; - } - if (newBounds.Bottom < screenBounds.Top + minVertical) - { - newBounds.Y = screenBounds.Top + minVertical - newBounds.Height; - } - if (newBounds.Top > screenBounds.Bottom - minVertical) - { - newBounds.Y = screenBounds.Bottom - minVertical; - } - - this._MainForm.Location = newBounds.Location; - - if (My.Settings.Default.MainFormKiosk == true) - { - this._MainForm.Fullscreen.Value = true; - this._MainForm.mMenViewFullscreen.Checked = true; - } - - if (My.Settings.Default.UseCustomPuttyPath) - { - Connection.Protocol.PuttyBase.PuttyPath = System.Convert.ToString(My.Settings.Default.CustomPuttyPath); - } - else - { - Connection.Protocol.PuttyBase.PuttyPath = App.Info.General.PuttyPath; - } - - if (My.Settings.Default.ShowSystemTrayIcon) - { - App.Runtime.NotificationAreaIcon = new Tools.Controls.NotificationAreaIcon(); - } - - if (My.Settings.Default.AutoSaveEveryMinutes > 0) - { - this._MainForm.tmrAutoSave.Interval = System.Convert.ToInt32(My.Settings.Default.AutoSaveEveryMinutes * 60000); - this._MainForm.tmrAutoSave.Enabled = true; - } - - My.Settings.Default.ConDefaultPassword = Security.Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.ConDefaultPassword), App.Info.General.EncryptionKey); - - this.LoadPanelsFromXML(); - this.LoadExternalAppsFromXML(); - - if (My.Settings.Default.AlwaysShowPanelTabs) - { - frmMain.Default.pnlDock.DocumentStyle = DocumentStyle.DockingWindow; - } - - if (My.Settings.Default.ResetToolbars == false) - { - LoadToolbarsFromSettings(); - } - else - { - SetToolbarsDefault(); - } - } - catch (Exception ex) - { - Log.Error("Loading settings failed" + Constants.vbNewLine + ex.Message); - } - } - - public void SetToolbarsDefault() - { - ToolStripPanelFromString("top").Join(MainForm.tsQuickConnect, new Point(300, 0)); - MainForm.tsQuickConnect.Visible = true; - ToolStripPanelFromString("bottom").Join(MainForm.tsExternalTools, new Point(3, 0)); - MainForm.tsExternalTools.Visible = false; - } - - public void LoadToolbarsFromSettings() - { - if (My.Settings.Default.QuickyTBLocation.X > My.Settings.Default.ExtAppsTBLocation.X) - { - AddDynamicPanels(); - AddStaticPanels(); - } - else - { - AddStaticPanels(); - AddDynamicPanels(); - } - } - - private void AddStaticPanels() - { - ToolStripPanelFromString(System.Convert.ToString(My.Settings.Default.QuickyTBParentDock)).Join(MainForm.tsQuickConnect, My.Settings.Default.QuickyTBLocation); - MainForm.tsQuickConnect.Visible = System.Convert.ToBoolean(My.Settings.Default.QuickyTBVisible); - } - - private void AddDynamicPanels() - { - ToolStripPanelFromString(System.Convert.ToString(My.Settings.Default.ExtAppsTBParentDock)).Join(MainForm.tsExternalTools, My.Settings.Default.ExtAppsTBLocation); - MainForm.tsExternalTools.Visible = System.Convert.ToBoolean(My.Settings.Default.ExtAppsTBVisible); - } - - private ToolStripPanel ToolStripPanelFromString(string Panel) - { - switch (Panel.ToLower()) - { - case "top": - return MainForm.tsContainer.TopToolStripPanel; - case "bottom": - return MainForm.tsContainer.BottomToolStripPanel; - case "left": - return MainForm.tsContainer.LeftToolStripPanel; - case "right": - return MainForm.tsContainer.RightToolStripPanel; - default: - return MainForm.tsContainer.TopToolStripPanel; - } - } - - public void LoadPanelsFromXML() - { - try - { - Windows.treePanel = null; - Windows.configPanel = null; - Windows.errorsPanel = null; - - while (MainForm.pnlDock.Contents.Count > 0) - { - WeifenLuo.WinFormsUI.Docking.DockContent dc = MainForm.pnlDock.Contents[0]; - dc.Close(); - } - - Startup.CreatePanels(); - - string oldPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData) + "\\" + (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName + "\\" + App.Info.Settings.LayoutFileName; - string newPath = App.Info.Settings.SettingsPath + "\\" + App.Info.Settings.LayoutFileName; - if (File.Exists(newPath)) - { - MainForm.pnlDock.LoadFromXml(newPath, GetContentFromPersistString); -#if !PORTABLE - } - else if (File.Exists(oldPath)) - { - MainForm.pnlDock.LoadFromXml(oldPath, GetContentFromPersistString); -#endif - } - else - { - Startup.SetDefaultLayout(); - } - } - catch (Exception ex) - { - Log.Error("LoadPanelsFromXML failed" + Constants.vbNewLine + ex.Message); - } - } - - public void LoadExternalAppsFromXML() - { - string oldPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData) + "\\" + (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName + "\\" + App.Info.Settings.ExtAppsFilesName; - string newPath = App.Info.Settings.SettingsPath + "\\" + App.Info.Settings.ExtAppsFilesName; - XmlDocument xDom = new XmlDocument(); - if (File.Exists(newPath)) - { - xDom.Load(newPath); -#if !PORTABLE - } - else if (File.Exists(oldPath)) - { - xDom.Load(oldPath); -#endif - } - else - { - return; - } - - foreach (XmlElement xEl in xDom.DocumentElement.ChildNodes) - { - Tools.ExternalTool extA = new Tools.ExternalTool(); - extA.DisplayName = xEl.Attributes["DisplayName"].Value; - extA.FileName = xEl.Attributes["FileName"].Value; - extA.Arguments = xEl.Attributes["Arguments"].Value; - - if (xEl.HasAttribute("WaitForExit")) - { - extA.WaitForExit = bool.Parse(xEl.Attributes["WaitForExit"].Value); - } - - if (xEl.HasAttribute("TryToIntegrate")) - { - extA.TryIntegrate = bool.Parse(xEl.Attributes["TryToIntegrate"].Value); - } - - ExternalTools.Add(extA); - } - - MainForm.SwitchToolBarText(System.Convert.ToBoolean(My.Settings.Default.ExtAppsTBShowText)); - - xDom = null; - - frmMain.Default.AddExternalToolsToToolBar(); - } -#endregion - -#region Private Methods - private IDockContent GetContentFromPersistString(string persistString) - { - // pnlLayout.xml persistence XML fix for refactoring to mRemoteNG - if (persistString.StartsWith("mRemote.")) - { - persistString = persistString.Replace("mRemote.", "mRemoteNG."); - } - - try - { - if (persistString == typeof(UI.Window.Config).ToString()) - { - return Windows.configPanel; - } - - if (persistString == typeof(UI.Window.Tree).ToString()) - { - return Windows.treePanel; - } - - if (persistString == typeof(UI.Window.ErrorsAndInfos).ToString()) - { - return Windows.errorsPanel; - } - - if (persistString == typeof(UI.Window.Sessions).ToString()) - { - return Windows.sessionsPanel; - } - - if (persistString == typeof(UI.Window.ScreenshotManager).ToString()) - { - return Windows.screenshotPanel; - } - } - catch (Exception ex) - { - Log.Error("GetContentFromPersistString failed" + Constants.vbNewLine + ex.Message); - } - - return null; - } -#endregion + return this._MainForm; } + set + { + this._MainForm = value; + } + } + #endregion + + #region Public Methods + public Load(frmMain MainForm) + { + this._MainForm = MainForm; + } + + public void Load_Renamed() + { + try + { + // Migrate settings from previous version + if (My.Settings.Default.DoUpgrade) + { + try + { + My.Settings.Default.Upgrade(); + } + catch (Exception ex) + { + Runtime.Log.Error("My.Settings.Upgrade() failed" + Constants.vbNewLine + ex.Message); + } + My.Settings.Default.DoUpgrade = false; + + // Clear pending update flag + // This is used for automatic updates, not for settings migration, but it + // needs to be cleared here because we know that we just updated. + My.Settings.Default.UpdatePending = false; + } + + App.SupportedCultures.InstantiateSingleton(); + if (!(My.Settings.Default.OverrideUICulture == "") && App.SupportedCultures.IsNameSupported(System.Convert.ToString(My.Settings.Default.OverrideUICulture))) + { + System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(System.Convert.ToString(My.Settings.Default.OverrideUICulture)); + Runtime.Log.InfoFormat("Override Culture: {0}/{1}", System.Threading.Thread.CurrentThread.CurrentUICulture.Name, System.Threading.Thread.CurrentThread.CurrentUICulture.NativeName); + } + + Themes.ThemeManager.LoadTheme(System.Convert.ToString(My.Settings.Default.ThemeName)); + + this._MainForm.WindowState = FormWindowState.Normal; + if (My.Settings.Default.MainFormState == FormWindowState.Normal) + { + if (!My.Settings.Default.MainFormLocation.IsEmpty) + { + this._MainForm.Location = My.Settings.Default.MainFormLocation; + } + if (!My.Settings.Default.MainFormSize.IsEmpty) + { + this._MainForm.Size = My.Settings.Default.MainFormSize; + } + } + else + { + if (!My.Settings.Default.MainFormRestoreLocation.IsEmpty) + { + this._MainForm.Location = My.Settings.Default.MainFormRestoreLocation; + } + if (!My.Settings.Default.MainFormRestoreSize.IsEmpty) + { + this._MainForm.Size = My.Settings.Default.MainFormRestoreSize; + } + } + if (My.Settings.Default.MainFormState == FormWindowState.Maximized) + { + this._MainForm.WindowState = FormWindowState.Maximized; + } + + // Make sure the form is visible on the screen + const int minHorizontal = 300; + const int minVertical = 150; + System.Drawing.Rectangle screenBounds = Screen.FromHandle(this._MainForm.Handle).Bounds; + System.Drawing.Rectangle newBounds = this._MainForm.Bounds; + + if (newBounds.Right < screenBounds.Left + minHorizontal) + { + newBounds.X = screenBounds.Left + minHorizontal - newBounds.Width; + } + if (newBounds.Left > screenBounds.Right - minHorizontal) + { + newBounds.X = screenBounds.Right - minHorizontal; + } + if (newBounds.Bottom < screenBounds.Top + minVertical) + { + newBounds.Y = screenBounds.Top + minVertical - newBounds.Height; + } + if (newBounds.Top > screenBounds.Bottom - minVertical) + { + newBounds.Y = screenBounds.Bottom - minVertical; + } + + this._MainForm.Location = newBounds.Location; + + if (My.Settings.Default.MainFormKiosk == true) + { + this._MainForm.Fullscreen.Value = true; + this._MainForm.mMenViewFullscreen.Checked = true; + } + + if (My.Settings.Default.UseCustomPuttyPath) + { + Connection.Protocol.PuttyBase.PuttyPath = System.Convert.ToString(My.Settings.Default.CustomPuttyPath); + } + else + { + Connection.Protocol.PuttyBase.PuttyPath = App.Info.General.PuttyPath; + } + + if (My.Settings.Default.ShowSystemTrayIcon) + { + App.Runtime.NotificationAreaIcon = new Tools.Controls.NotificationAreaIcon(); + } + + if (My.Settings.Default.AutoSaveEveryMinutes > 0) + { + this._MainForm.tmrAutoSave.Interval = System.Convert.ToInt32(My.Settings.Default.AutoSaveEveryMinutes * 60000); + this._MainForm.tmrAutoSave.Enabled = true; + } + + My.Settings.Default.ConDefaultPassword = Security.Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.ConDefaultPassword), App.Info.General.EncryptionKey); + + this.LoadPanelsFromXML(); + this.LoadExternalAppsFromXML(); + + if (My.Settings.Default.AlwaysShowPanelTabs) + { + frmMain.Default.pnlDock.DocumentStyle = DocumentStyle.DockingWindow; + } + + if (My.Settings.Default.ResetToolbars == false) + { + LoadToolbarsFromSettings(); + } + else + { + SetToolbarsDefault(); + } + } + catch (Exception ex) + { + Runtime.Log.Error("Loading settings failed" + Constants.vbNewLine + ex.Message); + } + } + + public void SetToolbarsDefault() + { + ToolStripPanelFromString("top").Join(MainForm.tsQuickConnect, new Point(300, 0)); + MainForm.tsQuickConnect.Visible = true; + ToolStripPanelFromString("bottom").Join(MainForm.tsExternalTools, new Point(3, 0)); + MainForm.tsExternalTools.Visible = false; + } + + public void LoadToolbarsFromSettings() + { + if (My.Settings.Default.QuickyTBLocation.X > My.Settings.Default.ExtAppsTBLocation.X) + { + AddDynamicPanels(); + AddStaticPanels(); + } + else + { + AddStaticPanels(); + AddDynamicPanels(); + } + } + + private void AddStaticPanels() + { + ToolStripPanelFromString(System.Convert.ToString(My.Settings.Default.QuickyTBParentDock)).Join(MainForm.tsQuickConnect, My.Settings.Default.QuickyTBLocation); + MainForm.tsQuickConnect.Visible = System.Convert.ToBoolean(My.Settings.Default.QuickyTBVisible); + } + + private void AddDynamicPanels() + { + ToolStripPanelFromString(System.Convert.ToString(My.Settings.Default.ExtAppsTBParentDock)).Join(MainForm.tsExternalTools, My.Settings.Default.ExtAppsTBLocation); + MainForm.tsExternalTools.Visible = System.Convert.ToBoolean(My.Settings.Default.ExtAppsTBVisible); + } + + private ToolStripPanel ToolStripPanelFromString(string Panel) + { + switch (Panel.ToLower()) + { + case "top": + return MainForm.tsContainer.TopToolStripPanel; + case "bottom": + return MainForm.tsContainer.BottomToolStripPanel; + case "left": + return MainForm.tsContainer.LeftToolStripPanel; + case "right": + return MainForm.tsContainer.RightToolStripPanel; + default: + return MainForm.tsContainer.TopToolStripPanel; + } + } + + public void LoadPanelsFromXML() + { + try + { + Runtime.Windows.treePanel = null; + Runtime.Windows.configPanel = null; + Runtime.Windows.errorsPanel = null; + + while (MainForm.pnlDock.Contents.Count > 0) + { + WeifenLuo.WinFormsUI.Docking.DockContent dc = (WeifenLuo.WinFormsUI.Docking.DockContent)MainForm.pnlDock.Contents[0]; + dc.Close(); + } + + Runtime.Startup.CreatePanels(); + + string oldPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData) + "\\" + (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName + "\\" + App.Info.Settings.LayoutFileName; + string newPath = App.Info.Settings.SettingsPath + "\\" + App.Info.Settings.LayoutFileName; + if (File.Exists(newPath)) + { + MainForm.pnlDock.LoadFromXml(newPath, GetContentFromPersistString); + #if !PORTABLE + } + else if (File.Exists(oldPath)) + { + MainForm.pnlDock.LoadFromXml(oldPath, GetContentFromPersistString); + #endif + } + else + { + Runtime.Startup.SetDefaultLayout(); + } + } + catch (Exception ex) + { + Runtime.Log.Error("LoadPanelsFromXML failed" + Constants.vbNewLine + ex.Message); + } + } + + public void LoadExternalAppsFromXML() + { + string oldPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData) + "\\" + (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName + "\\" + App.Info.Settings.ExtAppsFilesName; + string newPath = App.Info.Settings.SettingsPath + "\\" + App.Info.Settings.ExtAppsFilesName; + XmlDocument xDom = new XmlDocument(); + if (File.Exists(newPath)) + { + xDom.Load(newPath); + #if !PORTABLE + } + else if (File.Exists(oldPath)) + { + xDom.Load(oldPath); + #endif + } + else + { + return; + } + + foreach (XmlElement xEl in xDom.DocumentElement.ChildNodes) + { + Tools.ExternalTool extA = new Tools.ExternalTool(); + extA.DisplayName = xEl.Attributes["DisplayName"].Value; + extA.FileName = xEl.Attributes["FileName"].Value; + extA.Arguments = xEl.Attributes["Arguments"].Value; + + if (xEl.HasAttribute("WaitForExit")) + { + extA.WaitForExit = bool.Parse(xEl.Attributes["WaitForExit"].Value); + } + + if (xEl.HasAttribute("TryToIntegrate")) + { + extA.TryIntegrate = bool.Parse(xEl.Attributes["TryToIntegrate"].Value); + } + + Runtime.ExternalTools.Add(extA); + } + + MainForm.SwitchToolBarText(System.Convert.ToBoolean(My.Settings.Default.ExtAppsTBShowText)); + + xDom = null; + + frmMain.Default.AddExternalToolsToToolBar(); + } + #endregion + + #region Private Methods + private IDockContent GetContentFromPersistString(string persistString) + { + // pnlLayout.xml persistence XML fix for refactoring to mRemoteNG + if (persistString.StartsWith("mRemote.")) + { + persistString = persistString.Replace("mRemote.", "mRemoteNG."); + } + + try + { + if (persistString == typeof(UI.Window.Config).ToString()) + { + return Runtime.Windows.configPanel; + } + + if (persistString == typeof(UI.Window.Tree).ToString()) + { + return Runtime.Windows.treePanel; + } + + if (persistString == typeof(UI.Window.ErrorsAndInfos).ToString()) + { + return Runtime.Windows.errorsPanel; + } + + if (persistString == typeof(UI.Window.Sessions).ToString()) + { + return Runtime.Windows.sessionsPanel; + } + + if (persistString == typeof(UI.Window.ScreenshotManager).ToString()) + { + return Runtime.Windows.screenshotPanel; + } + } + catch (Exception ex) + { + Runtime.Log.Error("GetContentFromPersistString failed" + Constants.vbNewLine + ex.Message); + } + + return null; + } + #endregion + } } diff --git a/mRemoteV1/CS/Config/Config.Settings.Save.cs b/mRemoteV1/CS/Config/Config.Settings.Save.cs index 72ec58df7..65e80f7ab 100644 --- a/mRemoteV1/CS/Config/Config.Settings.Save.cs +++ b/mRemoteV1/CS/Config/Config.Settings.Save.cs @@ -109,7 +109,7 @@ namespace mRemoteNG.Config.Settings xmlTextWriter.WriteStartDocument(); xmlTextWriter.WriteStartElement("Apps"); - foreach (Tools.ExternalTool extA in ExternalTools) + foreach (Tools.ExternalTool extA in Runtime.ExternalTools) { xmlTextWriter.WriteStartElement("App"); xmlTextWriter.WriteAttributeString("DisplayName", "", extA.DisplayName); diff --git a/mRemoteV1/CS/Config/ConfirmClose.cs b/mRemoteV1/CS/Config/ConfirmClose.cs index 6329665b2..53bd2a526 100644 --- a/mRemoteV1/CS/Config/ConfirmClose.cs +++ b/mRemoteV1/CS/Config/ConfirmClose.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,7 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Config diff --git a/mRemoteV1/CS/Config/Import/ActiveDirectory.cs b/mRemoteV1/CS/Config/Import/ActiveDirectory.cs index f4b4341bc..a4766415d 100644 --- a/mRemoteV1/CS/Config/Import/ActiveDirectory.cs +++ b/mRemoteV1/CS/Config/Import/ActiveDirectory.cs @@ -54,7 +54,7 @@ namespace mRemoteNG.Config.Import treeNode.Text = name; treeNode.Name = name; treeNode.Tag = containerInfo; - ContainerList.Add(containerInfo); + Runtime.ContainerList.Add(containerInfo); ImportComputers(ldapPath, treeNode); @@ -102,7 +102,7 @@ namespace mRemoteNG.Config.Import inheritanceInfo.Description = false; if (parentTreeNode.Tag is Container.Info) { - connectionInfo.Parent = parentTreeNode.Tag; + connectionInfo.Parent = (Container.Info)parentTreeNode.Tag; } connectionInfo.Inherit = inheritanceInfo; connectionInfo.Name = strDisplayName; @@ -112,7 +112,7 @@ namespace mRemoteNG.Config.Import treeNode.Name = strDisplayName; treeNode.Tag = connectionInfo; //set the nodes tag to the conI //add connection to connections - ConnectionList.Add(connectionInfo); + Runtime.ConnectionList.Add(connectionInfo); parentTreeNode.Nodes.Add(treeNode); } diff --git a/mRemoteV1/CS/Config/Import/PortScan.cs b/mRemoteV1/CS/Config/Import/PortScan.cs index febb106fe..fb11a7751 100644 --- a/mRemoteV1/CS/Config/Import/PortScan.cs +++ b/mRemoteV1/CS/Config/Import/PortScan.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,99 +8,97 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - -//using mRemoteNG.App.Runtime; +using mRemoteNG.App; namespace mRemoteNG.Config.Import { public class PortScan + { + public static void Import(IEnumerable hosts, Connection.Protocol.Protocols protocol, TreeNode parentTreeNode) { - public static void Import(IEnumerable hosts, Connection.Protocol.Protocols protocol, TreeNode parentTreeNode) + foreach (Tools.PortScan.ScanHost host in hosts) { - foreach (Tools.PortScan.ScanHost host in hosts) + Connection.Protocol.Protocols finalProtocol = default(Connection.Protocol.Protocols); + bool protocolValid = false; + + TreeNode treeNode = Tree.Node.AddNode(Tree.Node.Type.Connection, host.HostNameWithoutDomain); + + Connection.Info connectionInfo = new Connection.Info(); + connectionInfo.Inherit = new Connection.Info.Inheritance(connectionInfo); + + connectionInfo.Name = host.HostNameWithoutDomain; + connectionInfo.Hostname = host.HostName; + + switch (protocol) { - Connection.Protocol.Protocols finalProtocol = default(Connection.Protocol.Protocols); - bool protocolValid = false; - - TreeNode treeNode = Tree.Node.AddNode(Tree.Node.Type.Connection, host.HostNameWithoutDomain); - - Connection.Info connectionInfo = new Connection.Info(); - connectionInfo.Inherit = new Connection.Info.Inheritance(connectionInfo); - - connectionInfo.Name = host.HostNameWithoutDomain; - connectionInfo.Hostname = host.HostName; - - switch (protocol) - { - case Connection.Protocol.Protocols.SSH2: - if (host.SSH) - { - finalProtocol = Connection.Protocol.Protocols.SSH2; - protocolValid = true; - } - break; - case Connection.Protocol.Protocols.Telnet: - if (host.Telnet) - { - finalProtocol = Connection.Protocol.Protocols.Telnet; - protocolValid = true; - } - break; - case Connection.Protocol.Protocols.HTTP: - if (host.HTTP) - { - finalProtocol = Connection.Protocol.Protocols.HTTP; - protocolValid = true; - } - break; - case Connection.Protocol.Protocols.HTTPS: - if (host.HTTPS) - { - finalProtocol = Connection.Protocol.Protocols.HTTPS; - protocolValid = true; - } - break; - case Connection.Protocol.Protocols.Rlogin: - if (host.Rlogin) - { - finalProtocol = Connection.Protocol.Protocols.Rlogin; - protocolValid = true; - } - break; - case Connection.Protocol.Protocols.RDP: - if (host.RDP) - { - finalProtocol = Connection.Protocol.Protocols.RDP; - protocolValid = true; - } - break; - case Connection.Protocol.Protocols.VNC: - if (host.VNC) - { - finalProtocol = Connection.Protocol.Protocols.VNC; - protocolValid = true; - } - break; - } - - if (protocolValid) - { - connectionInfo.Protocol = finalProtocol; - connectionInfo.SetDefaultPort(); - - treeNode.Tag = connectionInfo; - parentTreeNode.Nodes.Add(treeNode); - - if (parentTreeNode.Tag is Container.Info) + case Connection.Protocol.Protocols.SSH2: + if (host.SSH) { - connectionInfo.Parent = parentTreeNode.Tag; + finalProtocol = Connection.Protocol.Protocols.SSH2; + protocolValid = true; } + break; + case Connection.Protocol.Protocols.Telnet: + if (host.Telnet) + { + finalProtocol = Connection.Protocol.Protocols.Telnet; + protocolValid = true; + } + break; + case Connection.Protocol.Protocols.HTTP: + if (host.HTTP) + { + finalProtocol = Connection.Protocol.Protocols.HTTP; + protocolValid = true; + } + break; + case Connection.Protocol.Protocols.HTTPS: + if (host.HTTPS) + { + finalProtocol = Connection.Protocol.Protocols.HTTPS; + protocolValid = true; + } + break; + case Connection.Protocol.Protocols.Rlogin: + if (host.Rlogin) + { + finalProtocol = Connection.Protocol.Protocols.Rlogin; + protocolValid = true; + } + break; + case Connection.Protocol.Protocols.RDP: + if (host.RDP) + { + finalProtocol = Connection.Protocol.Protocols.RDP; + protocolValid = true; + } + break; + case Connection.Protocol.Protocols.VNC: + if (host.VNC) + { + finalProtocol = Connection.Protocol.Protocols.VNC; + protocolValid = true; + } + break; + } + + if (protocolValid) + { + connectionInfo.Protocol = finalProtocol; + connectionInfo.SetDefaultPort(); - ConnectionList.Add(connectionInfo); + treeNode.Tag = connectionInfo; + parentTreeNode.Nodes.Add(treeNode); + + if (parentTreeNode.Tag is Container.Info) + { + connectionInfo.Parent = (Container.Info)parentTreeNode.Tag; } + + Runtime.ConnectionList.Add(connectionInfo); } } } + } } diff --git a/mRemoteV1/CS/Config/Import/PuttyConnectionManager.cs b/mRemoteV1/CS/Config/Import/PuttyConnectionManager.cs index b25d3d90e..b5a64b07c 100644 --- a/mRemoteV1/CS/Config/Import/PuttyConnectionManager.cs +++ b/mRemoteV1/CS/Config/Import/PuttyConnectionManager.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,197 +8,195 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.Xml; using System.IO; -//using mRemoteNG.App.Runtime; +using mRemoteNG.App; using mRemoteNG.Connection.Protocol; namespace mRemoteNG.Config.Import { public class PuttyConnectionManager + { + public static void Import(string fileName, TreeNode parentTreeNode) { - public static void Import(string fileName, TreeNode parentTreeNode) + XmlDocument xmlDocument = new XmlDocument(); + xmlDocument.Load(fileName); + + XmlNode configurationNode = xmlDocument.SelectSingleNode("/configuration"); + //Dim version As New Version(configurationNode.Attributes("version").Value) + //If Not version = New Version(0, 7, 1, 136) Then + // Throw New FileFormatException(String.Format("Unsupported file version ({0}).", version)) + //End If + + foreach (XmlNode rootNode in configurationNode.SelectNodes("./root")) { - XmlDocument xmlDocument = new XmlDocument(); - xmlDocument.Load(fileName); - - XmlNode configurationNode = xmlDocument.SelectSingleNode("/configuration"); - //Dim version As New Version(configurationNode.Attributes("version").Value) - //If Not version = New Version(0, 7, 1, 136) Then - // Throw New FileFormatException(String.Format("Unsupported file version ({0}).", version)) - //End If - - foreach (XmlNode rootNode in configurationNode.SelectNodes("./root")) - { - ImportRootOrContainer(rootNode, parentTreeNode); - } - } - - private static void ImportRootOrContainer(XmlNode xmlNode, TreeNode parentTreeNode) - { - string xmlNodeType = xmlNode.Attributes["type"].Value; - switch (xmlNode.Name) - { - case "root": - if (!(string.Compare(strA: ref xmlNodeType, strB: "database", ignoreCase: true) == 0)) - { - throw (new FileFormatException(string.Format("Unrecognized root node type ({0}).", xmlNodeType))); - } - break; - case "container": - if (!(string.Compare(strA: ref xmlNodeType, strB: "folder", ignoreCase: true) == 0)) - { - throw (new FileFormatException(string.Format("Unrecognized root node type ({0}).", xmlNodeType))); - } - break; - default: - // ReSharper disable once LocalizableElement - throw (new ArgumentException("Argument must be either a root or a container node.", "xmlNode")); - break; - } - - if (parentTreeNode == null) - { - throw (new InvalidOperationException("parentInfo.TreeNode must not be null.")); - } - - string name = xmlNode.Attributes["name"].Value; - - TreeNode treeNode = new TreeNode(name); - parentTreeNode.Nodes.Add(treeNode); - - Container.Info containerInfo = new Container.Info(); - containerInfo.TreeNode = treeNode; - containerInfo.Name = name; - - Connection.Info connectionInfo = CreateConnectionInfo(name); - connectionInfo.Parent = containerInfo; - connectionInfo.IsContainer = true; - containerInfo.ConnectionInfo = connectionInfo; - - // We can only inherit from a container node, not the root node or connection nodes - if (Tree.Node.GetNodeType(parentTreeNode) == Tree.Node.Type.Container) - { - containerInfo.Parent = parentTreeNode.Tag; - } - else - { - connectionInfo.Inherit.TurnOffInheritanceCompletely(); - } - - treeNode.Name = name; - treeNode.Tag = containerInfo; - treeNode.ImageIndex = Images.Enums.TreeImage.Container; - treeNode.SelectedImageIndex = Images.Enums.TreeImage.Container; - - foreach (XmlNode childNode in xmlNode.SelectNodes("./*")) - { - switch (childNode.Name) - { - case "container": - ImportRootOrContainer(childNode, treeNode); - break; - case "connection": - ImportConnection(childNode, treeNode); - break; - default: - throw (new FileFormatException(string.Format("Unrecognized child node ({0}).", childNode.Name))); - break; - } - } - - containerInfo.IsExpanded = bool.Parse(xmlNode.Attributes["expanded"].InnerText); - if (containerInfo.IsExpanded) - { - treeNode.Expand(); - } - - ContainerList.Add(containerInfo); - } - - private static void ImportConnection(XmlNode connectionNode, TreeNode parentTreeNode) - { - string connectionNodeType = connectionNode.Attributes["type"].Value; - if (!(string.Compare(strA: ref connectionNodeType, strB: "PuTTY", ignoreCase: true) == 0)) - { - throw (new FileFormatException(string.Format("Unrecognized connection node type ({0}).", connectionNodeType))); - } - - string name = connectionNode.Attributes["name"].Value; - TreeNode treeNode = new TreeNode(name); - parentTreeNode.Nodes.Add(treeNode); - - Connection.Info connectionInfo = ConnectionInfoFromXml(connectionNode); - connectionInfo.TreeNode = treeNode; - connectionInfo.Parent = parentTreeNode.Tag; - - treeNode.Name = name; - treeNode.Tag = connectionInfo; - treeNode.ImageIndex = Images.Enums.TreeImage.ConnectionClosed; - treeNode.SelectedImageIndex = Images.Enums.TreeImage.ConnectionClosed; - - ConnectionList.Add(connectionInfo); - } - - private static Connection.Info CreateConnectionInfo(string name) - { - Connection.Info connectionInfo = new Connection.Info(); - connectionInfo.Inherit = new Connection.Info.Inheritance(connectionInfo); - connectionInfo.Name = name; - return connectionInfo; - } - - private static Connection.Info ConnectionInfoFromXml(XmlNode xmlNode) - { - XmlNode connectionInfoNode = xmlNode.SelectSingleNode("./connection_info"); - - string name = connectionInfoNode.SelectSingleNode("./name").InnerText; - Connection.Info connectionInfo = CreateConnectionInfo(name); - - string protocol = connectionInfoNode.SelectSingleNode("./protocol").InnerText; - switch (protocol.ToLowerInvariant()) - { - case "telnet": - connectionInfo.Protocol = Protocols.Telnet; - break; - case "ssh": - connectionInfo.Protocol = Protocols.SSH2; - break; - default: - throw (new FileFormatException(string.Format("Unrecognized protocol ({0}).", protocol))); - break; - } - - connectionInfo.Hostname = connectionInfoNode.SelectSingleNode("./host").InnerText; - connectionInfo.Port = (int) (connectionInfoNode.SelectSingleNode("./port").InnerText); - connectionInfo.PuttySession = connectionInfoNode.SelectSingleNode("./session").InnerText; - // ./commandline - connectionInfo.Description = connectionInfoNode.SelectSingleNode("./description").InnerText; - - XmlNode loginNode = xmlNode.SelectSingleNode("./login"); - connectionInfo.Username = loginNode.SelectSingleNode("login").InnerText; - connectionInfo.Password = loginNode.SelectSingleNode("password").InnerText; - // ./prompt - - // ./timeout/connectiontimeout - // ./timeout/logintimeout - // ./timeout/passwordtimeout - // ./timeout/commandtimeout - - // ./command/command1 - // ./command/command2 - // ./command/command3 - // ./command/command4 - // ./command/command5 - - // ./options/loginmacro - // ./options/postcommands - // ./options/endlinechar - - return connectionInfo; + ImportRootOrContainer(rootNode, parentTreeNode); } } + + private static void ImportRootOrContainer(XmlNode xmlNode, TreeNode parentTreeNode) + { + string xmlNodeType = xmlNode.Attributes["type"].Value; + switch (xmlNode.Name) + { + case "root": + if (!(string.Compare(xmlNodeType, "database", ignoreCase: true) == 0)) + { + throw (new FileFormatException(string.Format("Unrecognized root node type ({0}).", xmlNodeType))); + } + break; + case "container": + if (!(string.Compare(xmlNodeType, "folder", ignoreCase: true) == 0)) + { + throw (new FileFormatException(string.Format("Unrecognized root node type ({0}).", xmlNodeType))); + } + break; + default: + // ReSharper disable once LocalizableElement + throw (new ArgumentException("Argument must be either a root or a container node.", "xmlNode")); + break; + } + + if (parentTreeNode == null) + { + throw (new InvalidOperationException("parentInfo.TreeNode must not be null.")); + } + + string name = xmlNode.Attributes["name"].Value; + + TreeNode treeNode = new TreeNode(name); + parentTreeNode.Nodes.Add(treeNode); + + Container.Info containerInfo = new Container.Info(); + containerInfo.TreeNode = treeNode; + containerInfo.Name = name; + + Connection.Info connectionInfo = CreateConnectionInfo(name); + connectionInfo.Parent = containerInfo; + connectionInfo.IsContainer = true; + containerInfo.ConnectionInfo = connectionInfo; + + // We can only inherit from a container node, not the root node or connection nodes + if (Tree.Node.GetNodeType(parentTreeNode) == Tree.Node.Type.Container) + { + containerInfo.Parent = parentTreeNode.Tag; + } + else + { + connectionInfo.Inherit.TurnOffInheritanceCompletely(); + } + + treeNode.Name = name; + treeNode.Tag = containerInfo; + treeNode.ImageIndex = (int)Images.Enums.TreeImage.Container; + treeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.Container; + + foreach (XmlNode childNode in xmlNode.SelectNodes("./*")) + { + switch (childNode.Name) + { + case "container": + ImportRootOrContainer(childNode, treeNode); + break; + case "connection": + ImportConnection(childNode, treeNode); + break; + default: + throw (new FileFormatException(string.Format("Unrecognized child node ({0}).", childNode.Name))); + break; + } + } + + containerInfo.IsExpanded = bool.Parse(xmlNode.Attributes["expanded"].InnerText); + if (containerInfo.IsExpanded) + { + treeNode.Expand(); + } + + Runtime.ContainerList.Add(containerInfo); + } + + private static void ImportConnection(XmlNode connectionNode, TreeNode parentTreeNode) + { + string connectionNodeType = connectionNode.Attributes["type"].Value; + if (!(string.Compare(connectionNodeType, "PuTTY", ignoreCase: true) == 0)) + { + throw (new FileFormatException(string.Format("Unrecognized connection node type ({0}).", connectionNodeType))); + } + + string name = connectionNode.Attributes["name"].Value; + TreeNode treeNode = new TreeNode(name); + parentTreeNode.Nodes.Add(treeNode); + + Connection.Info connectionInfo = ConnectionInfoFromXml(connectionNode); + connectionInfo.TreeNode = treeNode; + connectionInfo.Parent = (Container.Info)parentTreeNode.Tag; + + treeNode.Name = name; + treeNode.Tag = connectionInfo; + treeNode.ImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; + treeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; + + Runtime.ConnectionList.Add(connectionInfo); + } + + private static Connection.Info CreateConnectionInfo(string name) + { + Connection.Info connectionInfo = new Connection.Info(); + connectionInfo.Inherit = new Connection.Info.Inheritance(connectionInfo); + connectionInfo.Name = name; + return connectionInfo; + } + + private static Connection.Info ConnectionInfoFromXml(XmlNode xmlNode) + { + XmlNode connectionInfoNode = xmlNode.SelectSingleNode("./connection_info"); + + string name = connectionInfoNode.SelectSingleNode("./name").InnerText; + Connection.Info connectionInfo = CreateConnectionInfo(name); + + string protocol = connectionInfoNode.SelectSingleNode("./protocol").InnerText; + switch (protocol.ToLowerInvariant()) + { + case "telnet": + connectionInfo.Protocol = Protocols.Telnet; + break; + case "ssh": + connectionInfo.Protocol = Protocols.SSH2; + break; + default: + throw (new FileFormatException(string.Format("Unrecognized protocol ({0}).", protocol))); + break; + } + + connectionInfo.Hostname = connectionInfoNode.SelectSingleNode("./host").InnerText; + connectionInfo.Port = System.Convert.ToInt32(connectionInfoNode.SelectSingleNode("./port").InnerText); + connectionInfo.PuttySession = connectionInfoNode.SelectSingleNode("./session").InnerText; + // ./commandline + connectionInfo.Description = connectionInfoNode.SelectSingleNode("./description").InnerText; + + XmlNode loginNode = xmlNode.SelectSingleNode("./login"); + connectionInfo.Username = loginNode.SelectSingleNode("login").InnerText; + connectionInfo.Password = loginNode.SelectSingleNode("password").InnerText; + // ./prompt + + // ./timeout/connectiontimeout + // ./timeout/logintimeout + // ./timeout/passwordtimeout + // ./timeout/commandtimeout + + // ./command/command1 + // ./command/command2 + // ./command/command3 + // ./command/command4 + // ./command/command5 + + // ./options/loginmacro + // ./options/postcommands + // ./options/endlinechar + + return connectionInfo; + } + } } diff --git a/mRemoteV1/CS/Config/Import/RemoteDesktopConnection.cs b/mRemoteV1/CS/Config/Import/RemoteDesktopConnection.cs index b781e3696..06ed3d6ef 100644 --- a/mRemoteV1/CS/Config/Import/RemoteDesktopConnection.cs +++ b/mRemoteV1/CS/Config/Import/RemoteDesktopConnection.cs @@ -31,13 +31,13 @@ namespace mRemoteNG.Config.Import if (treeNode.Parent.Tag is Container.Info) { - connectionInfo.Parent = treeNode.Parent.Tag; + connectionInfo.Parent = (Container.Info)treeNode.Parent.Tag; } treeNode.Name = name; treeNode.Tag = connectionInfo; - treeNode.ImageIndex = Images.Enums.TreeImage.ConnectionClosed; - treeNode.SelectedImageIndex = Images.Enums.TreeImage.ConnectionClosed; + treeNode.ImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; + treeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; foreach (string line in lines) { @@ -53,7 +53,7 @@ namespace mRemoteNG.Config.Import SetConnectionInfoParameter(connectionInfo, key, value); } - ConnectionList.Add(connectionInfo); + Runtime.ConnectionList.Add(connectionInfo); } private static void SetConnectionInfoParameter(Connection.Info connectionInfo, string key, string value) @@ -72,7 +72,7 @@ namespace mRemoteNG.Config.Import } break; case "server port": - connectionInfo.Port = value; + connectionInfo.Port = System.Convert.ToInt32(value); break; case "username": connectionInfo.Username = value; diff --git a/mRemoteV1/CS/Config/Import/RemoteDesktopConnectionManager.cs b/mRemoteV1/CS/Config/Import/RemoteDesktopConnectionManager.cs index 5747e5c82..396f4dcb8 100644 --- a/mRemoteV1/CS/Config/Import/RemoteDesktopConnectionManager.cs +++ b/mRemoteV1/CS/Config/Import/RemoteDesktopConnectionManager.cs @@ -25,7 +25,7 @@ namespace mRemoteNG.Config.Import xmlDocument.Load(fileName); XmlNode rdcManNode = xmlDocument.SelectSingleNode("/RDCMan"); - int schemaVersion = (int) (rdcManNode.Attributes["schemaVersion"].Value); + int schemaVersion = System.Convert.ToInt32(rdcManNode.Attributes["schemaVersion"].Value); if (!(schemaVersion == 1)) { throw (new FileFormatException(string.Format("Unsupported schema version ({0}).", schemaVersion))); @@ -71,8 +71,8 @@ namespace mRemoteNG.Config.Import treeNode.Name = name; treeNode.Tag = containerInfo; - treeNode.ImageIndex = Images.Enums.TreeImage.Container; - treeNode.SelectedImageIndex = Images.Enums.TreeImage.Container; + treeNode.ImageIndex = (int)Images.Enums.TreeImage.Container; + treeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.Container; foreach (XmlNode childNode in xmlNode.SelectNodes("./group|./server")) { @@ -104,12 +104,12 @@ namespace mRemoteNG.Config.Import Connection.Info connectionInfo = ConnectionInfoFromXml(serverNode); connectionInfo.TreeNode = treeNode; - connectionInfo.Parent = parentTreeNode.Tag; + connectionInfo.Parent = (Container.Info)parentTreeNode.Tag; treeNode.Name = name; treeNode.Tag = connectionInfo; - treeNode.ImageIndex = Images.Enums.TreeImage.ConnectionClosed; - treeNode.SelectedImageIndex = Images.Enums.TreeImage.ConnectionClosed; + treeNode.ImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; + treeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; Runtime.ConnectionList.Add(connectionInfo); } @@ -166,7 +166,7 @@ namespace mRemoteNG.Config.Import connectionInfo.UseConsoleSession = bool.Parse(connectionSettingsNode.SelectSingleNode("./connectToConsole").InnerText); // ./startProgram // ./workingDir - connectionInfo.Port = (int) (connectionSettingsNode.SelectSingleNode("./port").InnerText); + connectionInfo.Port = System.Convert.ToInt32(connectionSettingsNode.SelectSingleNode("./port").InnerText); } else { @@ -219,7 +219,7 @@ namespace mRemoteNG.Config.Import string resolutionString = System.Convert.ToString(remoteDesktopNode.SelectSingleNode("./size").InnerText.Replace(" ", "")); try { - connectionInfo.Resolution = "Res" + System.Convert.ToString(Tools.Misc.StringToEnum(typeof(Connection.Protocol.RDP.RDPResolutions), resolutionString)); + connectionInfo.Resolution = (Connection.Protocol.RDP.RDPResolutions)Enum.Parse(typeof(Connection.Protocol.RDP.RDPResolutions), "Res" + resolutionString); } catch (ArgumentException) { @@ -235,8 +235,9 @@ namespace mRemoteNG.Config.Import { connectionInfo.Resolution = RDP.RDPResolutions.Fullscreen; } - - connectionInfo.Colors = remoteDesktopNode.SelectSingleNode("./colorDepth").InnerText; + + + connectionInfo.Colors = (Connection.Protocol.RDP.RDPColors)Enum.Parse(typeof(Connection.Protocol.RDP.RDPColors), remoteDesktopNode.SelectSingleNode("./colorDepth").InnerText); } else { @@ -249,13 +250,13 @@ namespace mRemoteNG.Config.Import { switch (localResourcesNode.SelectSingleNode("./audioRedirection").InnerText) { - case 0: // Bring to this computer + case "0": // Bring to this computer connectionInfo.RedirectSound = RDP.RDPSounds.BringToThisComputer; break; - case 1: // Leave at remote computer + case "1": // Leave at remote computer connectionInfo.RedirectSound = RDP.RDPSounds.LeaveAtRemoteComputer; break; - case 2: // Do not play + case "2": // Do not play connectionInfo.RedirectSound = RDP.RDPSounds.DoNotPlay; break; } @@ -265,13 +266,13 @@ namespace mRemoteNG.Config.Import switch (localResourcesNode.SelectSingleNode("./keyboardHook").InnerText) { - case 0: // On the local computer + case "0": // On the local computer connectionInfo.RedirectKeys = false; break; - case 1: // On the remote computer + case "1": // On the remote computer connectionInfo.RedirectKeys = true; break; - case 2: // In full screen mode only + case "2": // In full screen mode only connectionInfo.RedirectKeys = false; break; } @@ -297,13 +298,13 @@ namespace mRemoteNG.Config.Import { switch (securitySettingsNode.SelectSingleNode("./authentication").InnerText) { - case 0: // No authentication + case "0": // No authentication connectionInfo.RDPAuthenticationLevel = RDP.AuthenticationLevel.NoAuth; break; - case 1: // Do not connect if authentication fails + case "1": // Do not connect if authentication fails connectionInfo.RDPAuthenticationLevel = RDP.AuthenticationLevel.AuthRequired; break; - case 2: // Warn if authentication fails + case "2": // Warn if authentication fails connectionInfo.RDPAuthenticationLevel = RDP.AuthenticationLevel.WarnOnFailedAuth; break; } @@ -337,10 +338,10 @@ namespace mRemoteNG.Config.Import Win32.DATA_BLOB ciphertextData = new Win32.DATA_BLOB(); ciphertextData.cbData = ciphertextArray.Length; ciphertextData.pbData = gcHandle.AddrOfPinnedObject(); - - Win32.DATA_BLOB temp_optionalEntropy = null; - IntPtr temp_promptStruct = null; - if (!Win32.CryptUnprotectData(ref ciphertextData, null, ref temp_optionalEntropy, null, ref temp_promptStruct, 0, ref plaintextData)) + + Win32.DATA_BLOB temp_optionalEntropy = new Win32.DATA_BLOB(); + IntPtr temp_promptStruct = IntPtr.Zero; + if (!Win32.CryptUnprotectData(ref ciphertextData, null, ref temp_optionalEntropy, IntPtr.Zero, ref temp_promptStruct, 0, ref plaintextData)) { return null; } diff --git a/mRemoteV1/CS/Config/Import/mRemoteNG.cs b/mRemoteV1/CS/Config/Import/mRemoteNG.cs index cdecdf49c..46437dcd4 100644 --- a/mRemoteV1/CS/Config/Import/mRemoteNG.cs +++ b/mRemoteV1/CS/Config/Import/mRemoteNG.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,59 +8,57 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.IO; -//using mRemoteNG.App.Runtime; +using mRemoteNG.App; namespace mRemoteNG.Config.Import { // ReSharper disable once InconsistentNaming public class mRemoteNG + { + public static void Import(string fileName, TreeNode parentTreeNode) { - public static void Import(string fileName, TreeNode parentTreeNode) + string name = Path.GetFileNameWithoutExtension(fileName); + TreeNode treeNode = new TreeNode(name); + parentTreeNode.Nodes.Add(treeNode); + + Container.Info containerInfo = new Container.Info(); + containerInfo.TreeNode = treeNode; + containerInfo.Name = name; + + Connection.Info connectionInfo = new Connection.Info(); + connectionInfo.Inherit = new Connection.Info.Inheritance(connectionInfo); + connectionInfo.Name = name; + connectionInfo.TreeNode = treeNode; + connectionInfo.Parent = containerInfo; + connectionInfo.IsContainer = true; + containerInfo.ConnectionInfo = connectionInfo; + + // We can only inherit from a container node, not the root node or connection nodes + if (Tree.Node.GetNodeType(parentTreeNode) == Tree.Node.Type.Container) { - string name = Path.GetFileNameWithoutExtension(fileName); - TreeNode treeNode = new TreeNode(name); - parentTreeNode.Nodes.Add(treeNode); - - Container.Info containerInfo = new Container.Info(); - containerInfo.TreeNode = treeNode; - containerInfo.Name = name; - - Connection.Info connectionInfo = new Connection.Info(); - connectionInfo.Inherit = new Connection.Info.Inheritance(connectionInfo); - connectionInfo.Name = name; - connectionInfo.TreeNode = treeNode; - connectionInfo.Parent = containerInfo; - connectionInfo.IsContainer = true; - containerInfo.ConnectionInfo = connectionInfo; - - // We can only inherit from a container node, not the root node or connection nodes - if (Tree.Node.GetNodeType(parentTreeNode) == Tree.Node.Type.Container) - { - containerInfo.Parent = parentTreeNode.Tag; - } - else - { - connectionInfo.Inherit.TurnOffInheritanceCompletely(); - } - - treeNode.Name = name; - treeNode.Tag = containerInfo; - treeNode.ImageIndex = Images.Enums.TreeImage.Container; - treeNode.SelectedImageIndex = Images.Enums.TreeImage.Container; - - Connections.Load connectionsLoad = new Connections.Load(); - connectionsLoad.ConnectionFileName = fileName; - connectionsLoad.RootTreeNode = treeNode; - connectionsLoad.ConnectionList = ConnectionList; - connectionsLoad.ContainerList = ContainerList; - - connectionsLoad.Load_Renamed(true); - - ContainerList.Add(containerInfo); + containerInfo.Parent = parentTreeNode.Tag; } + else + { + connectionInfo.Inherit.TurnOffInheritanceCompletely(); + } + + treeNode.Name = name; + treeNode.Tag = containerInfo; + treeNode.ImageIndex = (int)Images.Enums.TreeImage.Container; + treeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.Container; + + Connections.Load connectionsLoad = new Connections.Load(); + connectionsLoad.ConnectionFileName = fileName; + connectionsLoad.RootTreeNode = treeNode; + connectionsLoad.ConnectionList = Runtime.ConnectionList; + connectionsLoad.ContainerList = Runtime.ContainerList; + + connectionsLoad.Load_Renamed(true); + + Runtime.ContainerList.Add(containerInfo); } + } } diff --git a/mRemoteV1/CS/Config/KeyboardShortcuts.cs b/mRemoteV1/CS/Config/KeyboardShortcuts.cs index 5d47a3dae..9b98cfe96 100644 --- a/mRemoteV1/CS/Config/KeyboardShortcuts.cs +++ b/mRemoteV1/CS/Config/KeyboardShortcuts.cs @@ -69,7 +69,7 @@ namespace mRemoteNG.Config public static ShortcutCommand CommandFromHookKeyMessage(Message m) { - KeyboardHook.HookKeyMsgData msgData = Marshal.PtrToStructure(m.LParam, typeof(KeyboardHook.HookKeyMsgData)); + KeyboardHook.HookKeyMsgData msgData = (SharedLibraryNG.KeyboardHook.HookKeyMsgData)Marshal.PtrToStructure(m.LParam, typeof(KeyboardHook.HookKeyMsgData)); return Map.GetCommand(msgData.KeyCode, msgData.ModifierKeys); } #endregion @@ -386,7 +386,7 @@ namespace mRemoteNG.Config #region Public Methods public string ToConfigString() { - return string.Join("/", new string[] {KeyCode, Convert.ToInt32(ModifierKeys)}); + return string.Join("/", new string[] {KeyCode.ToString(), (Convert.ToInt32(ModifierKeys)).ToString()}); } public static ShortcutKey FromConfigString(string shortcutKeyString) @@ -396,12 +396,12 @@ namespace mRemoteNG.Config { throw (new ArgumentException(string.Format("ShortcutKey.FromString({0}) failed. parts.Length != 2", shortcutKeyString), shortcutKeyString)); } - return new ShortcutKey(Convert.ToInt32(parts[0]), Convert.ToInt32(parts[1])); + return new ShortcutKey(Convert.ToInt32(parts[0]), (SharedLibraryNG.KeyboardHook.ModifierKeys)Convert.ToInt32(parts[1])); } public override string ToString() { - return HotkeyControl.KeysToString(this); + return HotkeyControl.KeysToString((System.Windows.Forms.Keys)this.KeyCode); } public bool Equals(ShortcutKey other) diff --git a/mRemoteV1/CS/Config/Putty/Provider.cs b/mRemoteV1/CS/Config/Putty/Provider.cs index 66f95f089..0b5dbefe8 100644 --- a/mRemoteV1/CS/Config/Putty/Provider.cs +++ b/mRemoteV1/CS/Config/Putty/Provider.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,152 +8,149 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using mRemoteNG.My; namespace mRemoteNG.Config.Putty { public abstract class Provider + { + #region Public Methods + private TreeNode _rootTreeNode; + public TreeNode RootTreeNode { -#region Public Methods - private TreeNode _rootTreeNode; -public TreeNode RootTreeNode + get { - get + if (_rootTreeNode == null) { - if (_rootTreeNode == null) - { - _rootTreeNode = CreateRootTreeNode(); - } - return _rootTreeNode; + _rootTreeNode = CreateRootTreeNode(); } + return _rootTreeNode; } - - private Root.PuttySessions.Info _rootInfo; -public Root.PuttySessions.Info RootInfo - { - get - { - if (_rootInfo == null) - { - _rootInfo = CreateRootInfo(); - } - return _rootInfo; - } - } - - public abstract string[] GetSessionNames(bool raw = false); - public abstract Connection.PuttySession.Info GetSession(string sessionName); - - public virtual Connection.PuttySession.Info[] GetSessions() - { - List sessionList = new List(); - Connection.Info sessionInfo = default(Connection.Info); - foreach (string sessionName in GetSessionNames(true)) - { - sessionInfo = GetSession(sessionName); - if (sessionInfo == null || string.IsNullOrEmpty(sessionInfo.Hostname)) - { - continue; - } - sessionList.Add(sessionInfo); - } - return sessionList.ToArray(); - } - - public virtual void StartWatcher() - { - - } - - public virtual void StopWatcher() - { - - } -#endregion - -#region Public Events - public delegate void SessionChangedEventHandler(object sender, SessionChangedEventArgs e); - private SessionChangedEventHandler SessionChangedEvent; - - public event SessionChangedEventHandler SessionChanged - { - add - { - SessionChangedEvent = (SessionChangedEventHandler) System.Delegate.Combine(SessionChangedEvent, value); - } - remove - { - SessionChangedEvent = (SessionChangedEventHandler) System.Delegate.Remove(SessionChangedEvent, value); - } - } - -#endregion - -#region Public Classes - public class SessionChangedEventArgs : EventArgs - { - } -#endregion - -#region Protected Methods - private delegate TreeNode CreateRootTreeNodeDelegate(); - protected virtual TreeNode CreateRootTreeNode() - { - TreeView treeView = Tree.Node.TreeView; - if (treeView == null) - { - return null; - } - if (treeView.InvokeRequired) - { - return treeView.Invoke(new CreateRootTreeNodeDelegate(CreateRootTreeNode)); - } - - TreeNode newTreeNode = new TreeNode(); - RootInfo.TreeNode = newTreeNode; - - newTreeNode.Name = _rootInfo.Name; - newTreeNode.Text = _rootInfo.Name; - newTreeNode.Tag = _rootInfo; - newTreeNode.ImageIndex = Images.Enums.TreeImage.PuttySessions; - newTreeNode.SelectedImageIndex = Images.Enums.TreeImage.PuttySessions; - - return newTreeNode; - } - - protected virtual Root.PuttySessions.Info CreateRootInfo() - { - Root.PuttySessions.Info newRootInfo = new Root.PuttySessions.Info(); - - if (string.IsNullOrEmpty(System.Convert.ToString(My.Settings.Default.PuttySavedSessionsName))) - { - newRootInfo.Name = Language.strPuttySavedSessionsRootName; - } - else - { - newRootInfo.Name = System.Convert.ToString(My.Settings.Default.PuttySavedSessionsName); - } - - if (string.IsNullOrEmpty(System.Convert.ToString(My.Settings.Default.PuttySavedSessionsPanel))) - { - newRootInfo.Panel = Language.strGeneral; - } - else - { - newRootInfo.Panel = System.Convert.ToString(My.Settings.Default.PuttySavedSessionsPanel); - } - - return newRootInfo; - } - - protected virtual void OnSessionChanged(SessionChangedEventArgs e) - { - if (SessionChangedEvent != null) - SessionChangedEvent(this, new SessionChangedEventArgs()); - } -#endregion } + + private Root.PuttySessions.Info _rootInfo; + public Root.PuttySessions.Info RootInfo + { + get + { + if (_rootInfo == null) + { + _rootInfo = CreateRootInfo(); + } + return _rootInfo; + } + } + + public abstract string[] GetSessionNames(bool raw = false); + public abstract Connection.PuttySession.Info GetSession(string sessionName); + + public virtual Connection.PuttySession.Info[] GetSessions() + { + List sessionList = new List(); + Connection.PuttySession.Info sessionInfo = (Connection.PuttySession.Info)default(Connection.Info); + foreach (string sessionName in GetSessionNames(true)) + { + sessionInfo = GetSession(sessionName); + if (sessionInfo == null || string.IsNullOrEmpty(sessionInfo.Hostname)) + { + continue; + } + sessionList.Add(sessionInfo); + } + return sessionList.ToArray(); + } + + public virtual void StartWatcher() + { + + } + + public virtual void StopWatcher() + { + + } + #endregion + + #region Public Events + public delegate void SessionChangedEventHandler(object sender, SessionChangedEventArgs e); + private SessionChangedEventHandler SessionChangedEvent; + + public event SessionChangedEventHandler SessionChanged + { + add + { + SessionChangedEvent = (SessionChangedEventHandler) System.Delegate.Combine(SessionChangedEvent, value); + } + remove + { + SessionChangedEvent = (SessionChangedEventHandler) System.Delegate.Remove(SessionChangedEvent, value); + } + } + #endregion + + #region Public Classes + public class SessionChangedEventArgs : EventArgs + { + } + #endregion + + #region Protected Methods + private delegate TreeNode CreateRootTreeNodeDelegate(); + protected virtual TreeNode CreateRootTreeNode() + { + TreeView treeView = Tree.Node.TreeView; + if (treeView == null) + { + return null; + } + if (treeView.InvokeRequired) + { + return (TreeNode)treeView.Invoke(new CreateRootTreeNodeDelegate(CreateRootTreeNode)); + } + + TreeNode newTreeNode = new TreeNode(); + RootInfo.TreeNode = newTreeNode; + + newTreeNode.Name = _rootInfo.Name; + newTreeNode.Text = _rootInfo.Name; + newTreeNode.Tag = _rootInfo; + newTreeNode.ImageIndex = (int)Images.Enums.TreeImage.PuttySessions; + newTreeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.PuttySessions; + + return newTreeNode; + } + + protected virtual Root.PuttySessions.Info CreateRootInfo() + { + Root.PuttySessions.Info newRootInfo = new Root.PuttySessions.Info(); + + if (string.IsNullOrEmpty(System.Convert.ToString(My.Settings.Default.PuttySavedSessionsName))) + { + newRootInfo.Name = Language.strPuttySavedSessionsRootName; + } + else + { + newRootInfo.Name = System.Convert.ToString(My.Settings.Default.PuttySavedSessionsName); + } + + if (string.IsNullOrEmpty(System.Convert.ToString(My.Settings.Default.PuttySavedSessionsPanel))) + { + newRootInfo.Panel = Language.strGeneral; + } + else + { + newRootInfo.Panel = System.Convert.ToString(My.Settings.Default.PuttySavedSessionsPanel); + } + + return newRootInfo; + } + + protected virtual void OnSessionChanged(SessionChangedEventArgs e) + { + if (SessionChangedEvent != null) + SessionChangedEvent(this, new SessionChangedEventArgs()); + } + #endregion + } } diff --git a/mRemoteV1/CS/Config/Putty/RegistryProvider.cs b/mRemoteV1/CS/Config/Putty/RegistryProvider.cs index 7f4846b4a..1aae912d5 100644 --- a/mRemoteV1/CS/Config/Putty/RegistryProvider.cs +++ b/mRemoteV1/CS/Config/Putty/RegistryProvider.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.Management; using mRemoteNG.App; using mRemoteNG.Messages; @@ -22,158 +19,157 @@ using System.Security.Principal; namespace mRemoteNG.Config.Putty { public class RegistryProvider : Provider + { + #region Public Methods + public override string[] GetSessionNames(bool raw = false) { - -#region Public Methods - public override string[] GetSessionNames(bool raw = false) + RegistryKey sessionsKey = Registry.CurrentUser.OpenSubKey(PuttySessionsKey); + if (sessionsKey == null) { - RegistryKey sessionsKey = Registry.CurrentUser.OpenSubKey(PuttySessionsKey); - if (sessionsKey == null) - { - return new string[] {}; - } - - List sessionNames = new List(); - foreach (string sessionName in sessionsKey.GetSubKeyNames()) - { - if (raw) - { - sessionNames.Add(sessionName); - } - else - { - sessionNames.Add(System.Web.HttpUtility.UrlDecode(sessionName.Replace("+", "%2B"))); - } - } + return new string[] {}; + } + List sessionNames = new List(); + foreach (string sessionName in sessionsKey.GetSubKeyNames()) + { if (raw) { - if (!sessionNames.Contains("Default%20Settings")) // Do not localize - { - sessionNames.Insert(0, "Default%20Settings"); - } + sessionNames.Add(sessionName); } else { - if (!sessionNames.Contains("Default Settings")) - { - sessionNames.Insert(0, "Default Settings"); - } + sessionNames.Add(System.Web.HttpUtility.UrlDecode(sessionName.Replace("+", "%2B"))); } - - return sessionNames.ToArray(); } - - public override Connection.PuttySession.Info GetSession(string sessionName) + + if (raw) { - RegistryKey sessionsKey = Registry.CurrentUser.OpenSubKey(PuttySessionsKey); - if (sessionsKey == null) + if (!sessionNames.Contains("Default%20Settings")) // Do not localize { + sessionNames.Insert(0, "Default%20Settings"); + } + } + else + { + if (!sessionNames.Contains("Default Settings")) + { + sessionNames.Insert(0, "Default Settings"); + } + } + + return sessionNames.ToArray(); + } + + public override Connection.PuttySession.Info GetSession(string sessionName) + { + RegistryKey sessionsKey = Registry.CurrentUser.OpenSubKey(PuttySessionsKey); + if (sessionsKey == null) + { + return null; + } + + RegistryKey sessionKey = sessionsKey.OpenSubKey(sessionName); + if (sessionKey == null) + { + return null; + } + + sessionName = System.Web.HttpUtility.UrlDecode(sessionName.Replace("+", "%2B")); + + Connection.PuttySession.Info sessionInfo = new Connection.PuttySession.Info(); + sessionInfo.PuttySession = sessionName; + sessionInfo.Name = sessionName; + sessionInfo.Hostname = System.Convert.ToString(sessionKey.GetValue("HostName")); + sessionInfo.Username = System.Convert.ToString(sessionKey.GetValue("UserName")); + string protocol = System.Convert.ToString(sessionKey.GetValue("Protocol")); + if (protocol == null) + { + protocol = "ssh"; + } + switch (protocol.ToLowerInvariant()) + { + case "raw": + sessionInfo.Protocol = Protocols.RAW; + break; + case "rlogin": + sessionInfo.Protocol = Protocols.Rlogin; + break; + case "serial": return null; - } - - RegistryKey sessionKey = sessionsKey.OpenSubKey(sessionName); - if (sessionKey == null) - { - return null; - } - - sessionName = System.Web.HttpUtility.UrlDecode(sessionName.Replace("+", "%2B")); - - Connection.PuttySession.Info sessionInfo = new Connection.PuttySession.Info(); - sessionInfo.PuttySession = sessionName; - sessionInfo.Name = sessionName; - sessionInfo.Hostname = System.Convert.ToString(sessionKey.GetValue("HostName")); - sessionInfo.Username = System.Convert.ToString(sessionKey.GetValue("UserName")); - string protocol = System.Convert.ToString(sessionKey.GetValue("Protocol")); - if (protocol == null) - { - protocol = "ssh"; - } - switch (protocol.ToLowerInvariant()) - { - case "raw": - sessionInfo.Protocol = Protocols.RAW; - break; - case "rlogin": - sessionInfo.Protocol = Protocols.Rlogin; - break; - case "serial": - return null; - case "ssh": - object sshVersionObject = sessionKey.GetValue("SshProt"); - if (sshVersionObject != null) - { - int sshVersion = System.Convert.ToInt32(sshVersionObject); - if (sshVersion >= 2) - { - sessionInfo.Protocol = Protocols.SSH2; - } - else - { - sessionInfo.Protocol = Protocols.SSH1; - } - } - else + case "ssh": + object sshVersionObject = sessionKey.GetValue("SshProt"); + if (sshVersionObject != null) + { + int sshVersion = System.Convert.ToInt32(sshVersionObject); + if (sshVersion >= 2) { sessionInfo.Protocol = Protocols.SSH2; } - break; - case "telnet": - sessionInfo.Protocol = Protocols.Telnet; - break; - default: - return null; - } - sessionInfo.Port = System.Convert.ToInt32(sessionKey.GetValue("PortNumber")); + else + { + sessionInfo.Protocol = Protocols.SSH1; + } + } + else + { + sessionInfo.Protocol = Protocols.SSH2; + } + break; + case "telnet": + sessionInfo.Protocol = Protocols.Telnet; + break; + default: + return null; + } + sessionInfo.Port = System.Convert.ToInt32(sessionKey.GetValue("PortNumber")); - return sessionInfo; - } - - public override void StartWatcher() - { - if (_eventWatcher != null) - { - return ; - } - - try - { - string currentUserSid = WindowsIdentity.GetCurrent().User.Value; - string key = System.Convert.ToString(string.Join("\\", new[] {currentUserSid, PuttySessionsKey}).Replace("\\", "\\\\")); - WqlEventQuery query = new WqlEventQuery(string.Format("SELECT * FROM RegistryTreeChangeEvent WHERE Hive = \'HKEY_USERS\' AND RootPath = \'{0}\'", key)); - _eventWatcher = new ManagementEventWatcher(query); - _eventWatcher.EventArrived += OnManagementEventArrived; - _eventWatcher.Start(); - } - catch (Exception ex) - { - Runtime.MessageCollector.AddExceptionMessage("PuttySessions.Watcher.StartWatching() failed.", ex, MessageClass.WarningMsg, true); - } - } - - public override void StopWatcher() - { - if (_eventWatcher == null) - { - return ; - } - _eventWatcher.Stop(); - _eventWatcher.Dispose(); - _eventWatcher = null; - } -#endregion - -#region Private Fields - private const string PuttySessionsKey = "Software\\SimonTatham\\PuTTY\\Sessions"; - private static ManagementEventWatcher _eventWatcher; -#endregion - -#region Private Methods - private void OnManagementEventArrived(object sender, EventArrivedEventArgs e) - { - OnSessionChanged(new SessionChangedEventArgs()); - } -#endregion + return sessionInfo; } + + public override void StartWatcher() + { + if (_eventWatcher != null) + { + return ; + } + + try + { + string currentUserSid = WindowsIdentity.GetCurrent().User.Value; + string key = System.Convert.ToString(string.Join("\\", new[] {currentUserSid, PuttySessionsKey}).Replace("\\", "\\\\")); + WqlEventQuery query = new WqlEventQuery(string.Format("SELECT * FROM RegistryTreeChangeEvent WHERE Hive = \'HKEY_USERS\' AND RootPath = \'{0}\'", key)); + _eventWatcher = new ManagementEventWatcher(query); + _eventWatcher.EventArrived += OnManagementEventArrived; + _eventWatcher.Start(); + } + catch (Exception ex) + { + Runtime.MessageCollector.AddExceptionMessage("PuttySessions.Watcher.StartWatching() failed.", ex, MessageClass.WarningMsg, true); + } + } + + public override void StopWatcher() + { + if (_eventWatcher == null) + { + return ; + } + _eventWatcher.Stop(); + _eventWatcher.Dispose(); + _eventWatcher = null; + } + #endregion + + #region Private Fields + private const string PuttySessionsKey = "Software\\SimonTatham\\PuTTY\\Sessions"; + private static ManagementEventWatcher _eventWatcher; + #endregion + + #region Private Methods + private void OnManagementEventArrived(object sender, EventArrivedEventArgs e) + { + OnSessionChanged(new SessionChangedEventArgs()); + } + #endregion + } } diff --git a/mRemoteV1/CS/Config/Putty/Sessions.cs b/mRemoteV1/CS/Config/Putty/Sessions.cs index 88c525257..6022e5a40 100644 --- a/mRemoteV1/CS/Config/Putty/Sessions.cs +++ b/mRemoteV1/CS/Config/Putty/Sessions.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.ComponentModel; using mRemoteNG.Tools; @@ -18,223 +15,223 @@ using mRemoteNG.Tools; namespace mRemoteNG.Config.Putty { public class Sessions + { + #region Public Methods + private delegate void AddSessionsToTreeDelegate(); + public static void AddSessionsToTree() { -#region Public Methods - private delegate void AddSessionsToTreeDelegate(); - public static void AddSessionsToTree() + TreeView treeView = Tree.Node.TreeView; + if (treeView == null) { - TreeView treeView = Tree.Node.TreeView; - if (treeView == null) - { - return ; - } - if (treeView.InvokeRequired) - { - treeView.Invoke(new AddSessionsToTreeDelegate(AddSessionsToTree)); - return ; - } + return ; + } + if (treeView.InvokeRequired) + { + treeView.Invoke(new AddSessionsToTreeDelegate(AddSessionsToTree)); + return ; + } - foreach (Provider provider in Providers) + foreach (Provider provider in Providers) + { + TreeNode rootTreeNode = provider.RootTreeNode; + bool inUpdate = false; + + List savedSessions = new List(provider.GetSessions()); + if (!IsProviderEnabled(provider) || savedSessions == null || savedSessions.Count == 0) { - TreeNode rootTreeNode = provider.RootTreeNode; - bool inUpdate = false; - - List savedSessions = new List(provider.GetSessions()); - if (!IsProviderEnabled(provider) || savedSessions == null || savedSessions.Count == 0) + if (rootTreeNode != null && treeView.Nodes.Contains(rootTreeNode)) { - if (rootTreeNode != null && treeView.Nodes.Contains(rootTreeNode)) - { - treeView.BeginUpdate(); - treeView.Nodes.Remove(rootTreeNode); - treeView.EndUpdate(); - } - continue; - } - - if (!treeView.Nodes.Contains(rootTreeNode)) - { - if (!inUpdate) - { - treeView.BeginUpdate(); - inUpdate = true; - } - treeView.Nodes.Add(rootTreeNode); - } - - List newTreeNodes = new List(); - foreach (Connection.PuttySession.Info sessionInfo in savedSessions) - { - TreeNode treeNode = default(TreeNode); - bool isNewNode = false; - if (rootTreeNode.Nodes.ContainsKey(sessionInfo.Name)) - { - treeNode = rootTreeNode.Nodes[sessionInfo.Name]; - isNewNode = false; - } - else - { - treeNode = Tree.Node.AddNode(Tree.Node.Type.PuttySession, sessionInfo.Name); - if (treeNode == null) - { - continue; - } - treeNode.Name = treeNode.Text; - treeNode.ImageIndex = Images.Enums.TreeImage.ConnectionClosed; - treeNode.SelectedImageIndex = Images.Enums.TreeImage.ConnectionClosed; - isNewNode = true; - } - - sessionInfo.RootPuttySessionsInfo = provider.RootInfo; - sessionInfo.TreeNode = treeNode; - sessionInfo.Inherit.TurnOffInheritanceCompletely(); - - treeNode.Tag = sessionInfo; - - if (isNewNode) - { - newTreeNodes.Add(treeNode); - } - } - - foreach (TreeNode treeNode in rootTreeNode.Nodes) - { - if (!savedSessions.Contains(treeNode.Tag)) - { - if (!inUpdate) - { - treeView.BeginUpdate(); - inUpdate = true; - } - rootTreeNode.Nodes.Remove(treeNode); - } - } - - if (!(newTreeNodes.Count == 0)) - { - if (!inUpdate) - { - treeView.BeginUpdate(); - inUpdate = true; - } - rootTreeNode.Nodes.AddRange(newTreeNodes.ToArray()); - } - - if (inUpdate) - { - Tree.Node.Sort(rootTreeNode, SortOrder.Ascending); - rootTreeNode.Expand(); + treeView.BeginUpdate(); + treeView.Nodes.Remove(rootTreeNode); treeView.EndUpdate(); } + continue; } - } - - public static void StartWatcher() - { - foreach (Provider provider in Providers) + + if (!treeView.Nodes.Contains(rootTreeNode)) { - provider.StartWatcher(); - provider.SessionChanged += SessionChanged; - } - } - - public static void StopWatcher() - { - foreach (Provider provider in Providers) - { - provider.StopWatcher(); - provider.SessionChanged -= SessionChanged; - } - } - - public static void SessionChanged(object sender, Provider.SessionChangedEventArgs e) - { - AddSessionsToTree(); - } -#endregion - -#region Private Methods - private static List _providers; -private static List Providers - { - get - { - if (_providers == null || _providers.Count == 0) + if (!inUpdate) { - AddProviders(); + treeView.BeginUpdate(); + inUpdate = true; } - return _providers; + treeView.Nodes.Add(rootTreeNode); } - } - - private static void AddProviders() - { - _providers = new List(); - _providers.Add(new RegistryProvider()); - _providers.Add(new XmingProvider()); - } - - private static string[] GetSessionNames(bool raw = false) - { - List sessionNames = new List(); - foreach (Provider provider in Providers) + + List newTreeNodes = new List(); + foreach (Connection.PuttySession.Info sessionInfo in savedSessions) { - if (!IsProviderEnabled(provider)) + TreeNode treeNode = default(TreeNode); + bool isNewNode = false; + if (rootTreeNode.Nodes.ContainsKey(sessionInfo.Name)) { - continue; + treeNode = rootTreeNode.Nodes[sessionInfo.Name]; + isNewNode = false; } - sessionNames.AddRange(provider.GetSessionNames(raw)); - } - return sessionNames.ToArray(); - } - - private static bool IsProviderEnabled(Provider provider) - { - bool enabled = true; - if (PuttyTypeDetector.GetPuttyType() == PuttyTypeDetector.PuttyType.Xming) - { - if ((provider) is RegistryProvider) + else { - enabled = false; + treeNode = Tree.Node.AddNode(Tree.Node.Type.PuttySession, sessionInfo.Name); + if (treeNode == null) + { + continue; + } + treeNode.Name = treeNode.Text; + treeNode.ImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; + treeNode.SelectedImageIndex = (int)Images.Enums.TreeImage.ConnectionClosed; + isNewNode = true; + } + + sessionInfo.RootPuttySessionsInfo = provider.RootInfo; + sessionInfo.TreeNode = treeNode; + sessionInfo.Inherit.TurnOffInheritanceCompletely(); + + treeNode.Tag = sessionInfo; + + if (isNewNode) + { + newTreeNodes.Add(treeNode); } } - else + + foreach (TreeNode treeNode in rootTreeNode.Nodes) { - if ((provider) is XmingProvider) + if (!savedSessions.Contains((Connection.Info)treeNode.Tag)) { - enabled = false; + if (!inUpdate) + { + treeView.BeginUpdate(); + inUpdate = true; + } + rootTreeNode.Nodes.Remove(treeNode); } } - return enabled; - } -#endregion - -#region Public Classes - public class SessionList : StringConverter - { - -public static string[] Names + + if (!(newTreeNodes.Count == 0)) { - get + if (!inUpdate) { - return GetSessionNames(); + treeView.BeginUpdate(); + inUpdate = true; } + rootTreeNode.Nodes.AddRange(newTreeNodes.ToArray()); } - - public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext context) + + if (inUpdate) { - return new StandardValuesCollection(Names); - } - - public override bool GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext context) - { - return true; - } - - public override bool GetStandardValuesSupported(ITypeDescriptorContext context) - { - return true; + Tree.Node.Sort(rootTreeNode, SortOrder.Ascending); + rootTreeNode.Expand(); + treeView.EndUpdate(); } } -#endregion } + + public static void StartWatcher() + { + foreach (Provider provider in Providers) + { + provider.StartWatcher(); + provider.SessionChanged += SessionChanged; + } + } + + public static void StopWatcher() + { + foreach (Provider provider in Providers) + { + provider.StopWatcher(); + provider.SessionChanged -= SessionChanged; + } + } + + public static void SessionChanged(object sender, Provider.SessionChangedEventArgs e) + { + AddSessionsToTree(); + } + #endregion + + #region Private Methods + private static List _providers; + private static List Providers + { + get + { + if (_providers == null || _providers.Count == 0) + { + AddProviders(); + } + return _providers; + } + } + + private static void AddProviders() + { + _providers = new List(); + _providers.Add(new RegistryProvider()); + _providers.Add(new XmingProvider()); + } + + private static string[] GetSessionNames(bool raw = false) + { + List sessionNames = new List(); + foreach (Provider provider in Providers) + { + if (!IsProviderEnabled(provider)) + { + continue; + } + sessionNames.AddRange(provider.GetSessionNames(raw)); + } + return sessionNames.ToArray(); + } + + private static bool IsProviderEnabled(Provider provider) + { + bool enabled = true; + if (PuttyTypeDetector.GetPuttyType() == PuttyTypeDetector.PuttyType.Xming) + { + if ((provider) is RegistryProvider) + { + enabled = false; + } + } + else + { + if ((provider) is XmingProvider) + { + enabled = false; + } + } + return enabled; + } + #endregion + + #region Public Classes + public class SessionList : StringConverter + { + + public static string[] Names + { + get + { + return GetSessionNames(); + } + } + + public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext context) + { + return new StandardValuesCollection(Names); + } + + public override bool GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext context) + { + return true; + } + + public override bool GetStandardValuesSupported(ITypeDescriptorContext context) + { + return true; + } + } + #endregion + } } diff --git a/mRemoteV1/CS/Config/Putty/XmingProvider.cs b/mRemoteV1/CS/Config/Putty/XmingProvider.cs index c84d0a35a..a0b2ac15a 100644 --- a/mRemoteV1/CS/Config/Putty/XmingProvider.cs +++ b/mRemoteV1/CS/Config/Putty/XmingProvider.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.IO; using mRemoteNG.App; using mRemoteNG.Messages; @@ -21,373 +18,372 @@ using System.Text.RegularExpressions; namespace mRemoteNG.Config.Putty { public class XmingProvider : Provider + { + #region Public Methods + public override string[] GetSessionNames(bool raw = false) { - -#region Public Methods - public override string[] GetSessionNames(bool raw = false) + string sessionsFolderPath = GetSessionsFolderPath(); + if (!Directory.Exists(sessionsFolderPath)) { - string sessionsFolderPath = GetSessionsFolderPath(); - if (!Directory.Exists(sessionsFolderPath)) - { - return new string[] {}; - } - - List sessionNames = new List(); - foreach (string sessionName in Directory.GetFiles(sessionsFolderPath)) - { - sessionName = Path.GetFileName(sessionName); - if (raw) - { - sessionNames.Add(sessionName); - } - else - { - sessionNames.Add(System.Web.HttpUtility.UrlDecode(sessionName.Replace("+", "%2B"))); - } - } + return new string[] {}; + } + List sessionNames = new List(); + foreach (string sessionName in Directory.GetFiles(sessionsFolderPath)) + { + string _sessionFileName = Path.GetFileName(sessionName); if (raw) { - if (!sessionNames.Contains("Default%20Settings")) // Do not localize - { - sessionNames.Insert(0, "Default%20Settings"); - } + sessionNames.Add(_sessionFileName); } else { - if (!sessionNames.Contains("Default Settings")) - { - sessionNames.Insert(0, "Default Settings"); - } + sessionNames.Add(System.Web.HttpUtility.UrlDecode(_sessionFileName.Replace("+", "%2B"))); } - - List registrySessionNames = new List(); - foreach (string sessionName in RegistryProvider.GetSessionNames(raw)) - { - registrySessionNames.Add(string.Format(RegistrySessionNameFormat, sessionName)); - } - - sessionNames.AddRange(registrySessionNames); - sessionNames.Sort(); - - return sessionNames.ToArray(); } - - public override Connection.PuttySession.Info GetSession(string sessionName) + + if (raw) { - string registrySessionName = GetRegistrySessionName(sessionName); - if (!string.IsNullOrEmpty(registrySessionName)) + if (!sessionNames.Contains("Default%20Settings")) // Do not localize { - return ModifyRegistrySessionInfo(RegistryProvider.GetSession(registrySessionName)); + sessionNames.Insert(0, "Default%20Settings"); } - - string sessionsFolderPath = GetSessionsFolderPath(); - if (!Directory.Exists(sessionsFolderPath)) + } + else + { + if (!sessionNames.Contains("Default Settings")) { + sessionNames.Insert(0, "Default Settings"); + } + } + + List registrySessionNames = new List(); + foreach (string sessionName in RegistryProvider.GetSessionNames(raw)) + { + registrySessionNames.Add(string.Format(RegistrySessionNameFormat, sessionName)); + } + + sessionNames.AddRange(registrySessionNames); + sessionNames.Sort(); + + return sessionNames.ToArray(); + } + + public override Connection.PuttySession.Info GetSession(string sessionName) + { + string registrySessionName = GetRegistrySessionName(sessionName); + if (!string.IsNullOrEmpty(registrySessionName)) + { + return ModifyRegistrySessionInfo(RegistryProvider.GetSession(registrySessionName)); + } + + string sessionsFolderPath = GetSessionsFolderPath(); + if (!Directory.Exists(sessionsFolderPath)) + { + return null; + } + + string sessionFile = Path.Combine(sessionsFolderPath, sessionName); + if (!File.Exists(sessionFile)) + { + return null; + } + + sessionName = System.Web.HttpUtility.UrlDecode(sessionName.Replace("+", "%2B")); + + SessionFileReader sessionFileReader = new SessionFileReader(sessionFile); + Connection.PuttySession.Info sessionInfo = new Connection.PuttySession.Info(); + sessionInfo.PuttySession = sessionName; + sessionInfo.Name = sessionName; + sessionInfo.Hostname = sessionFileReader.GetValue("HostName"); + sessionInfo.Username = sessionFileReader.GetValue("UserName"); + string protocol = sessionFileReader.GetValue("Protocol"); + if (protocol == null) + { + protocol = "ssh"; + } + switch (protocol.ToLowerInvariant()) + { + case "raw": + sessionInfo.Protocol = Protocols.RAW; + break; + case "rlogin": + sessionInfo.Protocol = Protocols.Rlogin; + break; + case "serial": return null; - } - - string sessionFile = Path.Combine(sessionsFolderPath, sessionName); - if (!File.Exists(sessionFile)) - { - return null; - } - - sessionName = System.Web.HttpUtility.UrlDecode(sessionName.Replace("+", "%2B")); - - SessionFileReader sessionFileReader = new SessionFileReader(sessionFile); - Connection.PuttySession.Info sessionInfo = new Connection.PuttySession.Info(); - sessionInfo.PuttySession = sessionName; - sessionInfo.Name = sessionName; - sessionInfo.Hostname = sessionFileReader.GetValue("HostName"); - sessionInfo.Username = sessionFileReader.GetValue("UserName"); - string protocol = sessionFileReader.GetValue("Protocol"); - if (protocol == null) - { - protocol = "ssh"; - } - switch (protocol.ToLowerInvariant()) - { - case "raw": - sessionInfo.Protocol = Protocols.RAW; - break; - case "rlogin": - sessionInfo.Protocol = Protocols.Rlogin; - break; - case "serial": - return null; - case "ssh": - object sshVersionObject = sessionFileReader.GetValue("SshProt"); - if (sshVersionObject != null) - { - int sshVersion = System.Convert.ToInt32(sshVersionObject); - if (sshVersion >= 2) - { - sessionInfo.Protocol = Protocols.SSH2; - } - else - { - sessionInfo.Protocol = Protocols.SSH1; - } - } - else + case "ssh": + object sshVersionObject = sessionFileReader.GetValue("SshProt"); + if (sshVersionObject != null) + { + int sshVersion = System.Convert.ToInt32(sshVersionObject); + if (sshVersion >= 2) { sessionInfo.Protocol = Protocols.SSH2; } - break; - case "telnet": - sessionInfo.Protocol = Protocols.Telnet; - break; - default: - return null; - } - sessionInfo.Port = (int) (sessionFileReader.GetValue("PortNumber")); - - return sessionInfo; + else + { + sessionInfo.Protocol = Protocols.SSH1; + } + } + else + { + sessionInfo.Protocol = Protocols.SSH2; + } + break; + case "telnet": + sessionInfo.Protocol = Protocols.Telnet; + break; + default: + return null; } + sessionInfo.Port = System.Convert.ToInt32(sessionFileReader.GetValue("PortNumber")); - public override void StartWatcher() + return sessionInfo; + } + + public override void StartWatcher() + { + RegistryProvider.StartWatcher(); + RegistryProvider.SessionChanged += OnRegistrySessionChanged; + + if (_eventWatcher != null) { - RegistryProvider.StartWatcher(); - RegistryProvider.SessionChanged += OnRegistrySessionChanged; + return ; + } - if (_eventWatcher != null) - { - return ; - } + try + { + _eventWatcher = new FileSystemWatcher(GetSessionsFolderPath()); + _eventWatcher.NotifyFilter = (System.IO.NotifyFilters) (NotifyFilters.FileName | NotifyFilters.LastWrite); + _eventWatcher.Changed += OnFileSystemEventArrived; + _eventWatcher.Created += OnFileSystemEventArrived; + _eventWatcher.Deleted += OnFileSystemEventArrived; + _eventWatcher.Renamed += OnFileSystemEventArrived; + _eventWatcher.EnableRaisingEvents = true; + } + catch (Exception ex) + { + Runtime.MessageCollector.AddExceptionMessage("XmingPortablePuttySessions.Watcher.StartWatching() failed.", ex, MessageClass.WarningMsg, true); + } + } + + public override void StopWatcher() + { + RegistryProvider.StopWatcher(); + RegistryProvider.SessionChanged -= OnRegistrySessionChanged; + if (_eventWatcher == null) + { + return ; + } + _eventWatcher.EnableRaisingEvents = false; + _eventWatcher.Dispose(); + _eventWatcher = null; + } + #endregion + + #region Private Fields + private const string RegistrySessionNameFormat = "{0} [registry]"; + private const string RegistrySessionNamePattern = "(.*)\\ \\[registry\\]"; + + private static readonly RegistryProvider RegistryProvider = new RegistryProvider(); + private static FileSystemWatcher _eventWatcher; + #endregion + + #region Private Methods + private static string GetPuttyConfPath() + { + string puttyPath = ""; + if (My.Settings.Default.UseCustomPuttyPath) + { + puttyPath = System.Convert.ToString(My.Settings.Default.CustomPuttyPath); + } + else + { + puttyPath = App.Info.General.PuttyPath; + } + return Path.Combine(Path.GetDirectoryName(puttyPath), "putty.conf"); + } + + private static string GetSessionsFolderPath() + { + string puttyConfPath = GetPuttyConfPath(); + PuttyConfFileReader sessionFileReader = new PuttyConfFileReader(puttyConfPath); + string basePath = Environment.ExpandEnvironmentVariables(sessionFileReader.GetValue("sshk&sess")); + return Path.Combine(basePath, "sessions"); + } + + private static string GetRegistrySessionName(string sessionName) + { + Regex regex = new Regex(RegistrySessionNamePattern); + + MatchCollection matches = regex.Matches(sessionName); + if (matches.Count < 1) + { + return string.Empty; + } + + GroupCollection groups = matches[0].Groups; + if (groups.Count < 1) + { + return string.Empty; // This should always include at least one item, but check anyway + } + + return groups[1].Value; + } + + private static Connection.PuttySession.Info ModifyRegistrySessionInfo(Connection.PuttySession.Info sessionInfo) + { + sessionInfo.Name = string.Format(RegistrySessionNameFormat, sessionInfo.Name); + sessionInfo.PuttySession = string.Format(RegistrySessionNameFormat, sessionInfo.PuttySession); + return sessionInfo; + } + + private void OnFileSystemEventArrived(object sender, FileSystemEventArgs e) + { + OnSessionChanged(new SessionChangedEventArgs()); + } + + private void OnRegistrySessionChanged(object sender, SessionChangedEventArgs e) + { + OnSessionChanged(new SessionChangedEventArgs()); + } + #endregion + + #region Private Classes + private class PuttyConfFileReader + { + public PuttyConfFileReader(string puttyConfFile) + { + _puttyConfFile = puttyConfFile; + } + + private string _puttyConfFile; + private bool _configurationLoaded = false; + private Dictionary _configuration = new Dictionary(); + + private void LoadConfiguration() + { + _configurationLoaded = true; try { - _eventWatcher = new FileSystemWatcher(GetSessionsFolderPath()); - _eventWatcher.NotifyFilter = (System.IO.NotifyFilters) (NotifyFilters.FileName | NotifyFilters.LastWrite); - _eventWatcher.Changed += OnFileSystemEventArrived; - _eventWatcher.Created += OnFileSystemEventArrived; - _eventWatcher.Deleted += OnFileSystemEventArrived; - _eventWatcher.Renamed += OnFileSystemEventArrived; - _eventWatcher.EnableRaisingEvents = true; + if (!File.Exists(_puttyConfFile)) + { + return ; + } + using (StreamReader streamReader = new StreamReader(_puttyConfFile)) + { + string line = ""; + do + { + line = streamReader.ReadLine(); + if (line == null) + { + break; + } + line = line.Trim(); + if (line == string.Empty) + { + continue; // Blank line + } + if (line.Substring(0, 1) == ";") + { + continue; // Comment + } + string[] parts = line.Split(new char[] {'='}, 2); + if (parts.Length < 2) + { + continue; + } + if (_configuration.ContainsKey(parts[0])) + { + continue; // As per http://www.straightrunning.com/XmingNotes/portableputty.php only first entry is used + } + _configuration.Add(parts[0], parts[1]); + } while (true); + } + } catch (Exception ex) { - Runtime.MessageCollector.AddExceptionMessage("XmingPortablePuttySessions.Watcher.StartWatching() failed.", ex, MessageClass.WarningMsg, true); + Runtime.MessageCollector.AddExceptionMessage("PuttyConfFileReader.LoadConfiguration() failed.", ex, MessageClass.ErrorMsg, true); } } - - public override void StopWatcher() - { - RegistryProvider.StopWatcher(); - RegistryProvider.SessionChanged -= OnRegistrySessionChanged; - if (_eventWatcher == null) - { - return ; - } - _eventWatcher.EnableRaisingEvents = false; - _eventWatcher.Dispose(); - _eventWatcher = null; - } -#endregion - -#region Private Fields - private const string RegistrySessionNameFormat = "{0} [registry]"; - private const string RegistrySessionNamePattern = "(.*)\\ \\[registry\\]"; - - private static readonly RegistryProvider RegistryProvider = new RegistryProvider(); - private static FileSystemWatcher _eventWatcher; -#endregion - -#region Private Methods - private static string GetPuttyConfPath() + public string GetValue(string setting) { - string puttyPath = ""; - if (My.Settings.Default.UseCustomPuttyPath) + if (!_configurationLoaded) { - puttyPath = System.Convert.ToString(My.Settings.Default.CustomPuttyPath); + LoadConfiguration(); } - else - { - puttyPath = App.Info.General.PuttyPath; - } - return Path.Combine(Path.GetDirectoryName(puttyPath), "putty.conf"); - } - - private static string GetSessionsFolderPath() - { - string puttyConfPath = GetPuttyConfPath(); - PuttyConfFileReader sessionFileReader = new PuttyConfFileReader(puttyConfPath); - string basePath = Environment.ExpandEnvironmentVariables(sessionFileReader.GetValue("sshk&sess")); - return Path.Combine(basePath, "sessions"); - } - - private static string GetRegistrySessionName(string sessionName) - { - Regex regex = new Regex(RegistrySessionNamePattern); - - MatchCollection matches = regex.Matches(sessionName); - if (matches.Count < 1) + if (!_configuration.ContainsKey(setting)) { return string.Empty; } - - GroupCollection groups = matches[0].Groups; - if (groups.Count < 1) - { - return string.Empty; // This should always include at least one item, but check anyway - } - - return groups[1].Value; + return _configuration[setting]; } - - private static Connection.PuttySession.Info ModifyRegistrySessionInfo(Connection.PuttySession.Info sessionInfo) - { - sessionInfo.Name = string.Format(RegistrySessionNameFormat, sessionInfo.Name); - sessionInfo.PuttySession = string.Format(RegistrySessionNameFormat, sessionInfo.PuttySession); - return sessionInfo; - } - - private void OnFileSystemEventArrived(object sender, FileSystemEventArgs e) - { - OnSessionChanged(new SessionChangedEventArgs()); - } - - private void OnRegistrySessionChanged(object sender, SessionChangedEventArgs e) - { - OnSessionChanged(new SessionChangedEventArgs()); - } -#endregion - -#region Private Classes - private class PuttyConfFileReader - { - public PuttyConfFileReader(string puttyConfFile) - { - _puttyConfFile = puttyConfFile; - } - - private string _puttyConfFile; - private bool _configurationLoaded = false; - private Dictionary _configuration = new Dictionary(); - - private void LoadConfiguration() - { - _configurationLoaded = true; - try - { - if (!File.Exists(_puttyConfFile)) - { - return ; - } - using (StreamReader streamReader = new StreamReader(_puttyConfFile)) - { - string line = ""; - do - { - line = streamReader.ReadLine(); - if (line == null) - { - break; - } - line = line.Trim(); - if (line == string.Empty) - { - continue; // Blank line - } - if (line.Substring(0, 1) == ";") - { - continue; // Comment - } - string[] parts = line.Split(new char[] {'='}, 2); - if (parts.Length < 2) - { - continue; - } - if (_configuration.ContainsKey(parts[0])) - { - continue; // As per http://www.straightrunning.com/XmingNotes/portableputty.php only first entry is used - } - _configuration.Add(parts[0], parts[1]); - } while (true); - } - - } - catch (Exception ex) - { - Runtime.MessageCollector.AddExceptionMessage("PuttyConfFileReader.LoadConfiguration() failed.", ex, MessageClass.ErrorMsg, true); - } - } - - public string GetValue(string setting) - { - if (!_configurationLoaded) - { - LoadConfiguration(); - } - if (!_configuration.ContainsKey(setting)) - { - return string.Empty; - } - return _configuration[setting]; - } - } - - private class SessionFileReader - { - public SessionFileReader(string sessionFile) - { - _sessionFile = sessionFile; - } - - private string _sessionFile; - private bool _sessionInfoLoaded = false; - private Dictionary _sessionInfo = new Dictionary(); - - private void LoadSessionInfo() - { - _sessionInfoLoaded = true; - try - { - if (!File.Exists(_sessionFile)) - { - return ; - } - using (StreamReader streamReader = new StreamReader(_sessionFile)) - { - string line = ""; - do - { - line = streamReader.ReadLine(); - if (line == null) - { - break; - } - string[] parts = line.Split(new char[] {'\\'}); - if (parts.Length < 2) - { - continue; - } - _sessionInfo.Add(parts[0], parts[1]); - } while (true); - } - - } - catch (Exception ex) - { - Runtime.MessageCollector.AddExceptionMessage("SessionFileReader.LoadSessionInfo() failed.", ex, MessageClass.ErrorMsg, true); - } - } - - public string GetValue(string setting) - { - if (!_sessionInfoLoaded) - { - LoadSessionInfo(); - } - if (!_sessionInfo.ContainsKey(setting)) - { - return string.Empty; - } - return _sessionInfo[setting]; - } - } -#endregion } + + private class SessionFileReader + { + public SessionFileReader(string sessionFile) + { + _sessionFile = sessionFile; + } + + private string _sessionFile; + private bool _sessionInfoLoaded = false; + private Dictionary _sessionInfo = new Dictionary(); + + private void LoadSessionInfo() + { + _sessionInfoLoaded = true; + try + { + if (!File.Exists(_sessionFile)) + { + return ; + } + using (StreamReader streamReader = new StreamReader(_sessionFile)) + { + string line = ""; + do + { + line = streamReader.ReadLine(); + if (line == null) + { + break; + } + string[] parts = line.Split(new char[] {'\\'}); + if (parts.Length < 2) + { + continue; + } + _sessionInfo.Add(parts[0], parts[1]); + } while (true); + } + + } + catch (Exception ex) + { + Runtime.MessageCollector.AddExceptionMessage("SessionFileReader.LoadSessionInfo() failed.", ex, MessageClass.ErrorMsg, true); + } + } + + public string GetValue(string setting) + { + if (!_sessionInfoLoaded) + { + LoadSessionInfo(); + } + if (!_sessionInfo.ContainsKey(setting)) + { + return string.Empty; + } + return _sessionInfo[setting]; + } + } + #endregion + } } diff --git a/mRemoteV1/CS/Connection/Connection.Info.Inheritance.cs b/mRemoteV1/CS/Connection/Connection.Info.Inheritance.cs index 8cc51032e..86791e5d3 100644 --- a/mRemoteV1/CS/Connection/Connection.Info.Inheritance.cs +++ b/mRemoteV1/CS/Connection/Connection.Info.Inheritance.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -10,11 +9,8 @@ using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; using mRemoteNG.Tools; -// End of VB project level imports - using System.ComponentModel; using mRemoteNG.Tools; -//using mRemoteNG.Tools.LocalizedAttributes; namespace mRemoteNG.Connection @@ -23,8 +19,8 @@ namespace mRemoteNG.Connection { public class Inheritance { -#region Public Properties -#region General + #region Public Properties + #region General [LocalizedAttributes.LocalizedCategory("strCategoryGeneral", 1), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameAll"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionAll"), @@ -55,8 +51,8 @@ namespace mRemoteNG.Connection SetAllValues(value); } } -#endregion -#region Display + #endregion + #region Display [LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 2), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameDescription"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionDescription"), @@ -71,8 +67,8 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNamePanel"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionPanel"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))]public bool Panel {get; set;} -#endregion -#region Connection + #endregion + #region Connection [LocalizedAttributes.LocalizedCategory("strCategoryConnection", 3), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameUsername"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionUsername"), @@ -87,8 +83,8 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameDomain"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionDomain"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))]public bool Domain {get; set;} -#endregion -#region Protocol + #endregion + #region Protocol [LocalizedAttributes.LocalizedCategory("strCategoryProtocol", 4), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameProtocol"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionProtocol"), @@ -138,8 +134,8 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameUseCredSsp"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionUseCredSsp"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))]public bool UseCredSsp {get; set;} -#endregion -#region RD Gateway + #endregion + #region RD Gateway [LocalizedAttributes.LocalizedCategory("strCategoryGateway", 5), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameRDGatewayUsageMethod"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionRDGatewayUsageMethod"), @@ -175,8 +171,8 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionRDGatewayDomain"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))] public bool RDGatewayDomain {get; set;} -#endregion -#region Appearance + #endregion + #region Appearance [LocalizedAttributes.LocalizedCategory("strCategoryAppearance", 6), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameResolution"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionResolution"), @@ -216,8 +212,8 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameEnableDesktopComposition"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionEnableEnableDesktopComposition"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))]public bool EnableDesktopComposition {get; set;} -#endregion -#region Redirect + #endregion + #region Redirect [LocalizedAttributes.LocalizedCategory("strCategoryRedirect", 7), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameRedirectKeys"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionRedirectKeys"), @@ -247,8 +243,8 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameRedirectSounds"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionRedirectSounds"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))]public bool RedirectSound {get; set;} -#endregion -#region Misc + #endregion + #region Misc [LocalizedAttributes.LocalizedCategory("strCategoryMiscellaneous", 8), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameExternalToolBefore"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionExternalToolBefore"), @@ -268,8 +264,8 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameUser1"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionUser1"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))]public bool UserField {get; set;} -#endregion -#region VNC + #endregion + #region VNC [LocalizedAttributes.LocalizedCategory("strCategoryAppearance", 9), LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameCompression"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionCompression"), @@ -324,14 +320,16 @@ namespace mRemoteNG.Connection LocalizedAttributes.LocalizedDisplayNameInheritAttribute("strPropertyNameViewOnly"), LocalizedAttributes.LocalizedDescriptionInheritAttribute("strPropertyDescriptionViewOnly"), TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))]public bool VNCViewOnly {get; set;} -#endregion + #endregion - [Browsable(false)]public object Parent {get; set;} + [Browsable(false)] + public object Parent {get; set;} - [Browsable(false)]public bool IsDefault {get; set;} -#endregion + [Browsable(false)] + public bool IsDefault {get; set;} + #endregion -#region Constructors + #region Constructors public Inheritance(object parent, bool inheritEverything = false) { this.Parent = parent; @@ -340,9 +338,9 @@ namespace mRemoteNG.Connection TurnOnInheritanceCompletely(); } } -#endregion + #endregion -#region Public Methods + #region Public Methods public Inheritance Copy() { return (Inheritance)MemberwiseClone(); @@ -357,9 +355,9 @@ namespace mRemoteNG.Connection { SetAllValues(false); } -#endregion + #endregion -#region Private Methods + #region Private Methods private void SetAllValues(bool value) { // Display @@ -429,7 +427,7 @@ namespace mRemoteNG.Connection VNCSmartSizeMode = value; VNCViewOnly = value; } -#endregion + #endregion } } } diff --git a/mRemoteV1/CS/Connection/Connection.Info.cs b/mRemoteV1/CS/Connection/Connection.Info.cs index 1ba0331f3..e9a2c0a33 100644 --- a/mRemoteV1/CS/Connection/Connection.Info.cs +++ b/mRemoteV1/CS/Connection/Connection.Info.cs @@ -9,7 +9,6 @@ using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; using System.ComponentModel; -using mRemoteNG.Config; using mRemoteNG.Tools; using System.Reflection; using mRemoteNG.App; @@ -203,8 +202,8 @@ namespace mRemoteNG.Connection private string _puttySession; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. [LocalizedAttributes.LocalizedCategory("strCategoryProtocol", 3), LocalizedAttributes.LocalizedDisplayName("strPropertyNamePuttySession"), - LocalizedAttributes.LocalizedDescription("strPropertyDescriptionPuttySession"), - TypeConverter(typeof(Putty.Sessions.SessionList))] + LocalizedAttributes.LocalizedDescription("strPropertyDescriptionPuttySession"), + TypeConverter(typeof(Config.Putty.Sessions.SessionList))] public virtual string PuttySession { get @@ -1100,7 +1099,7 @@ namespace mRemoteNG.Connection Info parentConnectionInfo = default(Info); if (IsContainer) { - parentConnectionInfo = Parent.Parent.ConnectionInfo; + parentConnectionInfo = ((Container.Info)Parent.Parent).ConnectionInfo; } else { @@ -1109,7 +1108,7 @@ namespace mRemoteNG.Connection Type connectionInfoType = parentConnectionInfo.GetType(); PropertyInfo parentPropertyInfo = connectionInfoType.GetProperty(propertyName); - TPropertyType parentPropertyValue = parentPropertyInfo.GetValue(parentConnectionInfo, BindingFlags.GetProperty, null, null, null); + TPropertyType parentPropertyValue = (TPropertyType)parentPropertyInfo.GetValue(parentConnectionInfo, BindingFlags.GetProperty, null, null, null); return parentPropertyValue; } @@ -1167,10 +1166,12 @@ namespace mRemoteNG.Connection { return (int)Connection.Protocol.IntegratedProgram.Defaults.Port; } + return 0; } catch (Exception ex) { Runtime.MessageCollector.AddExceptionMessage(My.Language.strConnectionSetDefaultPortFailed, ex, Messages.MessageClass.ErrorMsg); + return 0; } } #endregion diff --git a/mRemoteV1/CS/Connection/Connection.InterfaceControl.Designer.cs b/mRemoteV1/CS/Connection/Connection.InterfaceControl.Designer.cs index ae7981291..d66606eee 100644 --- a/mRemoteV1/CS/Connection/Connection.InterfaceControl.Designer.cs +++ b/mRemoteV1/CS/Connection/Connection.InterfaceControl.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,46 +8,40 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - -namespace mRemoteNG +namespace mRemoteNG.Connection { - namespace Protocol + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class InterfaceControl : System.Windows.Forms.Panel { - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class InterfaceControl : System.Windows.Forms.Panel + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()] + protected override void Dispose(bool disposing) { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + try { - try + if (disposing && components != null) { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); + components.Dispose(); } } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + finally { - components = new System.ComponentModel.Container(); - //Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + base.Dispose(disposing); } } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()] + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + //Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + } } - - } diff --git a/mRemoteV1/CS/Connection/Connection.InterfaceControl.cs b/mRemoteV1/CS/Connection/Connection.InterfaceControl.cs index 833f9255c..cb53b53ee 100644 --- a/mRemoteV1/CS/Connection/Connection.InterfaceControl.cs +++ b/mRemoteV1/CS/Connection/Connection.InterfaceControl.cs @@ -14,32 +14,20 @@ using mRemoteNG.App; namespace mRemoteNG.Connection { public partial class InterfaceControl - { - #region Properties - private Connection.Protocol.Base _Protocol; + { + #region Public Properties + private Connection.Protocol.Base _Protocol; public Connection.Protocol.Base Protocol { - get - { - return this._Protocol; - } - set - { - this._Protocol = value; - } + get { return this._Protocol; } + set { this._Protocol = value; } } private Info _Info; public Info Info { - get - { - return this._Info; - } - set - { - this._Info = value; - } + get { return this._Info; } + set { this._Info = value; } } #endregion @@ -50,10 +38,10 @@ namespace mRemoteNG.Connection { this._Protocol = Protocol; this._Info = Info; - this.Parent = Parent; - this.Location = new Point(0, 0); - this.Size = this.Parent.Size; - this.Anchor = (System.Windows.Forms.AnchorStyles) (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top); + this.Parent = Parent; + this.Location = new Point(0, 0); + this.Size = this.Parent.Size; + this.Anchor = (System.Windows.Forms.AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top); InitializeComponent(); } catch (Exception ex) diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.Base.cs b/mRemoteV1/CS/Connection/Connection.Protocol.Base.cs index acb62f24e..f0acebf4c 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.Base.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.Base.cs @@ -21,23 +21,14 @@ namespace mRemoteNG.Connection.Protocol private string _Name; public string Name { - get - { - return this._Name; - } - set - { - this._Name = value; - } + get { return this._Name; } + set { this._Name = value; } } private UI.Window.Connection _connectionWindow; public UI.Window.Connection ConnectionWindow { - get - { - return _connectionWindow; - } + get { return _connectionWindow; } set { _connectionWindow = value; @@ -78,14 +69,8 @@ namespace mRemoteNG.Connection.Protocol private mRemoteNG.Connection.Info.Force _Force; public mRemoteNG.Connection.Info.Force Force { - get - { - return this._Force; - } - set - { - this._Force = value; - } + get { return this._Force; } + set { this._Force = value; } } public System.Timers.Timer tmrReconnect = new System.Timers.Timer(2000); @@ -149,9 +134,13 @@ namespace mRemoteNG.Connection.Protocol { if (InterfaceControl.Info.Protocol != Protocols.RDP) { - if (ConnectedEvent != null) - ConnectedEvent(this); + if (ConnectedEvent != null) + { + ConnectedEvent(this); + return true; + } } + return false; } public virtual void Disconnect() diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.HTTP.cs b/mRemoteV1/CS/Connection/Connection.Protocol.HTTP.cs index 4b5975a71..135d77ac5 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.HTTP.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.HTTP.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,29 +8,28 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class HTTP : HTTPBase - { + { - public HTTP(RenderingEngine RenderingEngine) : base(RenderingEngine) - { - } + public HTTP(RenderingEngine RenderingEngine) : base(RenderingEngine) + { + } - public override void NewExtended() - { - base.NewExtended(); + public override void NewExtended() + { + base.NewExtended(); - httpOrS = "http"; - defaultPort = Defaults.Port; - } + httpOrS = "http"; + defaultPort = (int)Defaults.Port; + } - public enum Defaults - { - Port = 80 - } - } + public enum Defaults + { + Port = 80 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.HTTPBase.cs b/mRemoteV1/CS/Connection/Connection.Protocol.HTTPBase.cs index 6b241b285..bf598dd97 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.HTTPBase.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.HTTPBase.cs @@ -10,8 +10,6 @@ using System.Collections; using System.Windows.Forms; using mRemoteNG.Tools; using mRemoteNG.App; -//using mRemoteNG.Tools.LocalizedAttributes; - namespace mRemoteNG.Connection.Protocol { @@ -72,7 +70,6 @@ namespace mRemoteNG.Connection.Protocol if (InterfaceControl.Info.RenderingEngine == RenderingEngine.Gecko) { MiniGeckoBrowser.MiniGeckoBrowser objMiniGeckoBrowser = wBrowser as MiniGeckoBrowser.MiniGeckoBrowser; - objMiniGeckoBrowser.TitleChanged += wBrowser_DocumentTitleChanged; objMiniGeckoBrowser.LastTabRemoved += wBrowser_LastTabRemoved; } @@ -80,9 +77,7 @@ namespace mRemoteNG.Connection.Protocol { WebBrowser objWebBrowser = wBrowser as WebBrowser; SHDocVw.WebBrowser objAxWebBrowser = (SHDocVw.WebBrowser) objWebBrowser.ActiveXInstance; - objWebBrowser.ScrollBarsEnabled = true; - objWebBrowser.Navigated += wBrowser_Navigated; objWebBrowser.DocumentTitleChanged += wBrowser_DocumentTitleChanged; objAxWebBrowser.NewWindow3 += wBrowser_NewWindow3; @@ -103,8 +98,8 @@ namespace mRemoteNG.Connection.Protocol { string strHost = System.Convert.ToString(this.InterfaceControl.Info.Hostname); string strAuth = ""; - - if (!((Force & Info.Force.NoCredentials) == (int) Info.Force.NoCredentials) && !string.IsNullOrEmpty(InterfaceControl.Info.Username) && !string.IsNullOrEmpty(InterfaceControl.Info.Password)) + + if (!(((int)Force & (int)Info.Force.NoCredentials) == (int)Info.Force.NoCredentials) && !string.IsNullOrEmpty(InterfaceControl.Info.Username) && !string.IsNullOrEmpty(InterfaceControl.Info.Password)) { strAuth = "Authorization: Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(this.InterfaceControl.Info.Username + ":" + this.InterfaceControl.Info.Password)) + Constants.vbNewLine; } @@ -123,14 +118,11 @@ namespace mRemoteNG.Connection.Protocol if (InterfaceControl.Info.RenderingEngine == RenderingEngine.Gecko) { - (wBrowser as MiniGeckoBrowser.MiniGeckoBrowser).Navigate(strHost + ":" + this.InterfaceControl.Info.Port); + ((MiniGeckoBrowser.MiniGeckoBrowser)wBrowser).Navigate(strHost + ":" + this.InterfaceControl.Info.Port); } else { - object temp_Flags = null; - object temp_TargetFrameName = null; - object null_object = null; - (wBrowser as WebBrowser).Navigate(strHost + ":" + this.InterfaceControl.Info.Port, ref temp_Flags, ref temp_TargetFrameName, ref strAuth, ref null_object); + ((WebBrowser)wBrowser).Navigate(strHost + ":" + this.InterfaceControl.Info.Port); } } else @@ -146,10 +138,7 @@ namespace mRemoteNG.Connection.Protocol } else { - object temp_Flags2 = null; - object temp_TargetFrameName2 = null; - object null_object2 = null; - (wBrowser as WebBrowser).Navigate(strHost, ref temp_Flags2, ref temp_TargetFrameName2, ref strAuth, ref null_object2); + ((WebBrowser)wBrowser).Navigate(strHost); } } @@ -184,7 +173,7 @@ namespace mRemoteNG.Connection.Protocol private void wBrowser_NewWindow3(object ppDisp, ref bool Cancel, long dwFlags, string bstrUrlContext, string bstrUrl) { - if (dwFlags & NWMF.NWMF_OVERRIDEKEY) + if ((dwFlags & (long)NWMF.NWMF_OVERRIDEKEY) > 0) { Cancel = false; } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.HTTPS.cs b/mRemoteV1/CS/Connection/Connection.Protocol.HTTPS.cs index 406a5f70e..bf3460c18 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.HTTPS.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.HTTPS.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,29 +8,27 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class HTTPS : HTTPBase - { + { - public HTTPS(RenderingEngine RenderingEngine) : base(RenderingEngine) - { - } + public HTTPS(RenderingEngine RenderingEngine) : base(RenderingEngine) + { + } - public override void NewExtended() - { - base.NewExtended(); - - httpOrS = "https"; - defaultPort = Defaults.Port; - } + public override void NewExtended() + { + base.NewExtended(); + httpOrS = "https"; + defaultPort = (int)Defaults.Port; + } - public enum Defaults - { - Port = 443 - } - } + public enum Defaults + { + Port = 443 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.ICA.cs b/mRemoteV1/CS/Connection/Connection.Protocol.ICA.cs index 6f2c5b309..e51cd0b1b 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.ICA.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.ICA.cs @@ -11,7 +11,6 @@ using System.Windows.Forms; using mRemoteNG.App; using System.Threading; using mRemoteNG.Tools; -//using mRemoteNG.Tools.LocalizedAttributes; namespace mRemoteNG.Connection.Protocol @@ -31,7 +30,7 @@ namespace mRemoteNG.Connection.Protocol if (defaultInstance == null) { defaultInstance = new ICA(); - defaultInstance.FormClosed += new FormClosedEventHandler(defaultInstance_FormClosed); + //defaultInstance.FormClosed += new FormClosedEventHandler(defaultInstance_FormClosed); } return defaultInstance; @@ -47,10 +46,10 @@ namespace mRemoteNG.Connection.Protocol defaultInstance = null; } #endregion - + #region Private Properties - private AxICAClient ICAClient; - private Connection.Info Info; + private AxICAClient _ICAClient; + private Connection.Info _Info; #endregion #region Public Methods @@ -72,48 +71,48 @@ namespace mRemoteNG.Connection.Protocol try { - ICAClient = (AxICAClient)this.Control; - Info = this.InterfaceControl.Info; - ICAClient.CreateControl(); + _ICAClient = (AxICAClient)this.Control; + _Info = this.InterfaceControl.Info; + _ICAClient.CreateControl(); - while (!this.ICAClient.Created) + while (!this._ICAClient.Created) { Thread.Sleep(10); System.Windows.Forms.Application.DoEvents(); } - ICAClient.Address = Info.Hostname; + _ICAClient.Address = _Info.Hostname; this.SetCredentials(); this.SetResolution(); this.SetColors(); this.SetSecurity(); //Disable hotkeys for international users - ICAClient.Hotkey1Shift = null; - ICAClient.Hotkey1Char = null; - ICAClient.Hotkey2Shift = null; - ICAClient.Hotkey2Char = null; - ICAClient.Hotkey3Shift = null; - ICAClient.Hotkey3Char = null; - ICAClient.Hotkey4Shift = null; - ICAClient.Hotkey4Char = null; - ICAClient.Hotkey5Shift = null; - ICAClient.Hotkey5Char = null; - ICAClient.Hotkey6Shift = null; - ICAClient.Hotkey6Char = null; - ICAClient.Hotkey7Shift = null; - ICAClient.Hotkey7Char = null; - ICAClient.Hotkey8Shift = null; - ICAClient.Hotkey8Char = null; - ICAClient.Hotkey9Shift = null; - ICAClient.Hotkey9Char = null; - ICAClient.Hotkey10Shift = null; - ICAClient.Hotkey10Char = null; - ICAClient.Hotkey11Shift = null; - ICAClient.Hotkey11Char = null; + _ICAClient.Hotkey1Shift = null; + _ICAClient.Hotkey1Char = null; + _ICAClient.Hotkey2Shift = null; + _ICAClient.Hotkey2Char = null; + _ICAClient.Hotkey3Shift = null; + _ICAClient.Hotkey3Char = null; + _ICAClient.Hotkey4Shift = null; + _ICAClient.Hotkey4Char = null; + _ICAClient.Hotkey5Shift = null; + _ICAClient.Hotkey5Char = null; + _ICAClient.Hotkey6Shift = null; + _ICAClient.Hotkey6Char = null; + _ICAClient.Hotkey7Shift = null; + _ICAClient.Hotkey7Char = null; + _ICAClient.Hotkey8Shift = null; + _ICAClient.Hotkey8Char = null; + _ICAClient.Hotkey9Shift = null; + _ICAClient.Hotkey9Char = null; + _ICAClient.Hotkey10Shift = null; + _ICAClient.Hotkey10Char = null; + _ICAClient.Hotkey11Shift = null; + _ICAClient.Hotkey11Char = null; - ICAClient.PersistentCacheEnabled = Info.CacheBitmaps; - ICAClient.Title = Info.Name; + _ICAClient.PersistentCacheEnabled = _Info.CacheBitmaps; + _ICAClient.Title = _Info.Name; return true; } catch (Exception ex) @@ -129,7 +128,7 @@ namespace mRemoteNG.Connection.Protocol try { - ICAClient.Connect(); + _ICAClient.Connect(); base.Connect(); return true; } @@ -146,29 +145,29 @@ namespace mRemoteNG.Connection.Protocol { try { - if (((int)Force & (int)Info.Force.NoCredentials) == (int) Info.Force.NoCredentials) + if (((int)Force & (int)Connection.Info.Force.NoCredentials) == (int)Connection.Info.Force.NoCredentials) { return ; } - string _user = this.Info.Username; - string _pass = this.Info.Password; - string _dom = this.Info.Domain; + string _user = this._Info.Username; + string _pass = this._Info.Password; + string _dom = this._Info.Domain; if (string.IsNullOrEmpty(_user)) { if ((string) My.Settings.Default.EmptyCredentials == "windows") { - ICAClient.Username = Environment.UserName; + _ICAClient.Username = Environment.UserName; } else if ((string) My.Settings.Default.EmptyCredentials == "custom") { - ICAClient.Username = My.Settings.Default.DefaultUsername; + _ICAClient.Username = My.Settings.Default.DefaultUsername; } } else { - ICAClient.Username = _user; + _ICAClient.Username = _user; } if (string.IsNullOrEmpty(_pass)) @@ -177,29 +176,29 @@ namespace mRemoteNG.Connection.Protocol { if (My.Settings.Default.DefaultPassword != "") { - ICAClient.SetProp("ClearPassword", Security.Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.DefaultPassword), App.Info.General.EncryptionKey)); + _ICAClient.SetProp("ClearPassword", Security.Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.DefaultPassword), App.Info.General.EncryptionKey)); } } } else { - ICAClient.SetProp("ClearPassword", _pass); + _ICAClient.SetProp("ClearPassword", _pass); } if (string.IsNullOrEmpty(_dom)) { if ((string) My.Settings.Default.EmptyCredentials == "windows") { - ICAClient.Domain = Environment.UserDomainName; + _ICAClient.Domain = Environment.UserDomainName; } else if ((string) My.Settings.Default.EmptyCredentials == "custom") { - ICAClient.Domain = My.Settings.Default.DefaultDomain; + _ICAClient.Domain = My.Settings.Default.DefaultDomain; } } else { - ICAClient.Domain = _dom; + _ICAClient.Domain = _dom; } } catch (Exception ex) @@ -214,29 +213,29 @@ namespace mRemoteNG.Connection.Protocol { if ((this.Force & Connection.Info.Force.Fullscreen) == Connection.Info.Force.Fullscreen) { - ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, Screen.FromControl(frmMain.Default).Bounds.Width, Screen.FromControl(frmMain.Default).Bounds.Height, 0); - ICAClient.FullScreenWindow(); + _ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, Screen.FromControl(frmMain.Default).Bounds.Width, Screen.FromControl(frmMain.Default).Bounds.Height, 0); + _ICAClient.FullScreenWindow(); return; } if (this.InterfaceControl.Info.Resolution == RDP.RDPResolutions.FitToWindow) { - ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, this.InterfaceControl.Size.Width, this.InterfaceControl.Size.Height, 0); + _ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, this.InterfaceControl.Size.Width, this.InterfaceControl.Size.Height, 0); } else if (this.InterfaceControl.Info.Resolution == RDP.RDPResolutions.SmartSize) { - ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, this.InterfaceControl.Size.Width, this.InterfaceControl.Size.Height, 0); + _ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, this.InterfaceControl.Size.Width, this.InterfaceControl.Size.Height, 0); } else if (this.InterfaceControl.Info.Resolution == RDP.RDPResolutions.Fullscreen) { - ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, Screen.FromControl(frmMain.Default).Bounds.Width, Screen.FromControl(frmMain.Default).Bounds.Height, 0); - ICAClient.FullScreenWindow(); + _ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, Screen.FromControl(frmMain.Default).Bounds.Width, Screen.FromControl(frmMain.Default).Bounds.Height, 0); + _ICAClient.FullScreenWindow(); } else { - Rectangle resolution = RDP.GetResolutionRectangle(Info.Resolution); - ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, resolution.Width, resolution.Height, 0); + Rectangle resolution = RDP.GetResolutionRectangle(_Info.Resolution); + _ICAClient.SetWindowSize(WFICALib.ICAWindowType.WindowTypeClient, resolution.Width, resolution.Height, 0); } } catch (Exception ex) @@ -247,42 +246,42 @@ namespace mRemoteNG.Connection.Protocol private void SetColors() { - switch (Info.Colors) + switch (_Info.Colors) { case RDP.RDPColors.Colors256: - ICAClient.SetProp("DesiredColor", "2"); + _ICAClient.SetProp("DesiredColor", "2"); break; case RDP.RDPColors.Colors15Bit: - ICAClient.SetProp("DesiredColor", "4"); + _ICAClient.SetProp("DesiredColor", "4"); break; case RDP.RDPColors.Colors16Bit: - ICAClient.SetProp("DesiredColor", "4"); + _ICAClient.SetProp("DesiredColor", "4"); break; default: - ICAClient.SetProp("DesiredColor", "8"); + _ICAClient.SetProp("DesiredColor", "8"); break; } } private void SetSecurity() { - switch (Info.ICAEncryption) + switch (_Info.ICAEncryption) { case EncryptionStrength.Encr128BitLogonOnly: - ICAClient.Encrypt = true; - ICAClient.EncryptionLevelSession = "EncRC5-0"; + _ICAClient.Encrypt = true; + _ICAClient.EncryptionLevelSession = "EncRC5-0"; break; case EncryptionStrength.Encr40Bit: - ICAClient.Encrypt = true; - ICAClient.EncryptionLevelSession = "EncRC5-40"; + _ICAClient.Encrypt = true; + _ICAClient.EncryptionLevelSession = "EncRC5-40"; break; case EncryptionStrength.Encr56Bit: - ICAClient.Encrypt = true; - ICAClient.EncryptionLevelSession = "EncRC5-56"; + _ICAClient.Encrypt = true; + _ICAClient.EncryptionLevelSession = "EncRC5-56"; break; case EncryptionStrength.Encr128Bit: - ICAClient.Encrypt = true; - ICAClient.EncryptionLevelSession = "EncRC5-128"; + _ICAClient.Encrypt = true; + _ICAClient.EncryptionLevelSession = "EncRC5-128"; break; } } @@ -291,10 +290,10 @@ namespace mRemoteNG.Connection.Protocol { try { - ICAClient.OnConnecting += new System.EventHandler(ICAEvent_OnConnecting); - ICAClient.OnConnect += new System.EventHandler(ICAEvent_OnConnected); - ICAClient.OnConnectFailed += new System.EventHandler(ICAEvent_OnConnectFailed); - ICAClient.OnDisconnect += new System.EventHandler(ICAEvent_OnDisconnect); + _ICAClient.OnConnecting += new System.EventHandler(ICAEvent_OnConnecting); + _ICAClient.OnConnect += new System.EventHandler(ICAEvent_OnConnected); + _ICAClient.OnConnectFailed += new System.EventHandler(ICAEvent_OnConnectFailed); + _ICAClient.OnDisconnect += new System.EventHandler(ICAEvent_OnDisconnect); } catch (Exception ex) { @@ -326,7 +325,7 @@ namespace mRemoteNG.Connection.Protocol if (My.Settings.Default.ReconnectOnDisconnect) { ReconnectGroup = new ReconnectGroup(); - this.Load += ReconnectGroup_Load; + //this.Load += ReconnectGroup_Load; ReconnectGroup.Left = (int) (((double) Control.Width / 2) - ((double) ReconnectGroup.Width / 2)); ReconnectGroup.Top = (int) (((double) Control.Height / 2) - ((double) ReconnectGroup.Height / 2)); ReconnectGroup.Parent = Control; @@ -343,7 +342,7 @@ namespace mRemoteNG.Connection.Protocol #region Reconnect Stuff public void tmrReconnect_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { - bool srvReady = Tools.PortScan.Scanner.IsPortOpen(Info.Hostname, System.Convert.ToString(Info.Port)); + bool srvReady = Tools.PortScan.Scanner.IsPortOpen(_Info.Hostname, System.Convert.ToString(_Info.Port)); ReconnectGroup.ServerReady = srvReady; @@ -351,7 +350,7 @@ namespace mRemoteNG.Connection.Protocol { tmrReconnect.Enabled = false; ReconnectGroup.DisposeReconnectGroup(); - ICAClient.Default.Connect(); + _ICAClient.Connect(); } } #endregion diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.IntegratedProgram.cs b/mRemoteV1/CS/Connection/Connection.Protocol.IntegratedProgram.cs index bcff2b47a..9d2a67240 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.IntegratedProgram.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.IntegratedProgram.cs @@ -8,7 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -//using mRemoteNG.App.Native; using System.Threading; using mRemoteNG.App; using mRemoteNG.Tools; @@ -23,7 +22,7 @@ namespace mRemoteNG.Connection.Protocol { if (InterfaceControl.Info != null) { - _externalTool = GetExtAppByName(System.Convert.ToString(InterfaceControl.Info.ExtApp)); + _externalTool = Runtime.GetExtAppByName(System.Convert.ToString(InterfaceControl.Info.ExtApp)); _externalTool.ConnectionInfo = InterfaceControl.Info; } @@ -38,7 +37,7 @@ namespace mRemoteNG.Connection.Protocol { _externalTool.Start(InterfaceControl.Info); Close(); - return null; + return false; } _process = new Process(); @@ -67,16 +66,13 @@ namespace mRemoteNG.Connection.Protocol } } - SetParent(_handle, InterfaceControl.Handle); - + Native.SetParent(_handle, InterfaceControl.Handle); Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, My.Language.strIntAppStuff, true); - Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, string.Format(My.Language.strIntAppHandle, _handle.ToString()), true); Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, string.Format(My.Language.strIntAppTitle, _process.MainWindowTitle), true); Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, string.Format(My.Language.strIntAppParentHandle, InterfaceControl.Parent.Handle.ToString()), true); Resize(this, new EventArgs()); - base.Connect(); return true; } @@ -95,7 +91,7 @@ namespace mRemoteNG.Connection.Protocol { return ; } - SetForegroundWindow(_handle); + Native.SetForegroundWindow(_handle); } catch (Exception ex) { @@ -111,7 +107,7 @@ namespace mRemoteNG.Connection.Protocol { return ; } - MoveWindow(_handle, System.Convert.ToInt32(- SystemInformation.FrameBorderSize.Width), System.Convert.ToInt32(- (SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height)), InterfaceControl.Width + (SystemInformation.FrameBorderSize.Width * 2), InterfaceControl.Height + SystemInformation.CaptionHeight + (SystemInformation.FrameBorderSize.Height * 2), true); + Native.MoveWindow(_handle, System.Convert.ToInt32(-SystemInformation.FrameBorderSize.Width), System.Convert.ToInt32(-(SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height)), InterfaceControl.Width + (SystemInformation.FrameBorderSize.Width * 2), InterfaceControl.Height + SystemInformation.CaptionHeight + (SystemInformation.FrameBorderSize.Height * 2), true); } catch (Exception ex) { diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.List.cs b/mRemoteV1/CS/Connection/Connection.Protocol.List.cs index 47cc454b0..c34286394 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.List.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.List.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,69 +8,67 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class List : CollectionBase + { + #region Public Properties + public Connection.Protocol.Base this[object Index] + { + get { - -#region Public Properties -public Connection.Protocol.Base this[object Index] + if (Index is Connection.Protocol.Base) { - get - { - if (Index is Connection.Protocol.Base) - { - return Index; - } - else - { - return ((Connection.Protocol.Base.Default) (List[System.Convert.ToInt32(Index)])); - } - } + return (Connection.Protocol.Base)Index; } - -public new int Count + else { - get - { - return List.Count; - } + return ((Connection.Protocol.Base) (List[System.Convert.ToInt32(Index)])); } -#endregion - -#region Public Methods - public Connection.Protocol.Base Add(Connection.Protocol.Base cProt) - { - this.List.Add(cProt); - return cProt; - } - - public void AddRange(Connection.Protocol.Base[] cProt) - { - foreach (Connection.Protocol.Base cP in cProt) - { - List.Add(cP); - } - } - - public void Remove(Connection.Protocol.Base cProt) - { - try - { - this.List.Remove(cProt); - } - catch (Exception) - { - } - } - - public new void Clear() - { - this.List.Clear(); - } -#endregion } + } + + public new int Count + { + get + { + return List.Count; + } + } + #endregion + + #region Public Methods + public Connection.Protocol.Base Add(Connection.Protocol.Base cProt) + { + this.List.Add(cProt); + return cProt; + } + + public void AddRange(Connection.Protocol.Base[] cProt) + { + foreach (Connection.Protocol.Base cP in cProt) + { + List.Add(cP); + } + } + + public void Remove(Connection.Protocol.Base cProt) + { + try + { + this.List.Remove(cProt); + } + catch (Exception) + { + } + } + + public new void Clear() + { + this.List.Clear(); + } + #endregion + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.Protocols.cs b/mRemoteV1/CS/Connection/Connection.Protocol.Protocols.cs index a18d14dc1..1cafd9a99 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.Protocols.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.Protocols.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -10,9 +9,6 @@ using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; using mRemoteNG.Tools; -// End of VB project level imports - -//using mRemoteNG.Tools.LocalizedAttributes; namespace mRemoteNG.Connection.Protocol diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.PuttyBase.cs b/mRemoteV1/CS/Connection/Connection.Protocol.PuttyBase.cs index 4e99a8cbc..e82a30d11 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.PuttyBase.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.PuttyBase.cs @@ -11,7 +11,6 @@ using System.Windows.Forms; using System.Runtime.InteropServices; using System.ComponentModel; using mRemoteNG.Messages; -//using mRemoteNG.App.Native; using System.Threading; using Microsoft.Win32; using mRemoteNG.App; @@ -101,7 +100,7 @@ namespace mRemoteNG.Connection.Protocol { get { - if (GetForegroundWindow() == PuttyHandle) + if (Native.GetForegroundWindow() == PuttyHandle) { return true; } @@ -116,7 +115,7 @@ namespace mRemoteNG.Connection.Protocol #region Private Events & Handlers private void ProcessExited(object sender, System.EventArgs e) { - base.EVENT_CLOSED(this); + base.Event_Closed(this); } #endregion @@ -180,7 +179,7 @@ namespace mRemoteNG.Connection.Protocol arguments.Add("-" + System.Convert.ToString(_PuttySSHVersion)); - if (!((Force & Info.Force.NoCredentials) == (int) Info.Force.NoCredentials)) + if (!(((int)Force & (int)Info.Force.NoCredentials) == (int)Info.Force.NoCredentials)) { if (!string.IsNullOrEmpty(username)) { @@ -215,7 +214,8 @@ namespace mRemoteNG.Connection.Protocol { if (_isPuttyNg) { - PuttyHandle = FindWindowEx(InterfaceControl.Handle, 0, Constants.vbNullString, Constants.vbNullString); + PuttyHandle = Native.FindWindowEx( + InterfaceControl.Handle, new IntPtr(0), Constants.vbNullString, Constants.vbNullString); } else { @@ -230,17 +230,15 @@ namespace mRemoteNG.Connection.Protocol if (!_isPuttyNg) { - SetParent(PuttyHandle, InterfaceControl.Handle); + Native.SetParent(PuttyHandle, InterfaceControl.Handle); } Runtime.MessageCollector.AddMessage(MessageClass.InformationMsg, My.Language.strPuttyStuff, true); - Runtime.MessageCollector.AddMessage(MessageClass.InformationMsg, string.Format(My.Language.strPuttyHandle, PuttyHandle.ToString()), true); Runtime.MessageCollector.AddMessage(MessageClass.InformationMsg, string.Format(My.Language.strPuttyTitle, PuttyProcess.MainWindowTitle), true); Runtime.MessageCollector.AddMessage(MessageClass.InformationMsg, string.Format(My.Language.strPuttyParentHandle, InterfaceControl.Parent.Handle.ToString()), true); Resize(this, new EventArgs()); - base.Connect(); return true; } @@ -259,7 +257,7 @@ namespace mRemoteNG.Connection.Protocol { return ; } - SetForegroundWindow(PuttyHandle); + Native.SetForegroundWindow(PuttyHandle); } catch (Exception ex) { @@ -275,7 +273,7 @@ namespace mRemoteNG.Connection.Protocol { return ; } - MoveWindow(PuttyHandle, System.Convert.ToInt32(- SystemInformation.FrameBorderSize.Width), System.Convert.ToInt32(- (SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height)), InterfaceControl.Width + (SystemInformation.FrameBorderSize.Width * 2), InterfaceControl.Height + SystemInformation.CaptionHeight + (SystemInformation.FrameBorderSize.Height * 2), true); + Native.MoveWindow(PuttyHandle, System.Convert.ToInt32(-SystemInformation.FrameBorderSize.Width), System.Convert.ToInt32(-(SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height)), InterfaceControl.Width + (SystemInformation.FrameBorderSize.Width * 2), InterfaceControl.Height + SystemInformation.CaptionHeight + (SystemInformation.FrameBorderSize.Height * 2), true); } catch (Exception ex) { @@ -313,8 +311,8 @@ namespace mRemoteNG.Connection.Protocol { try { - PostMessage(this.PuttyHandle, WM_SYSCOMMAND, IDM_RECONF, 0); - SetForegroundWindow(this.PuttyHandle); + Native.PostMessage(this.PuttyHandle, Native.WM_SYSCOMMAND, IDM_RECONF, 0); + Native.SetForegroundWindow(this.PuttyHandle); } catch (Exception ex) { diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.RAW.cs b/mRemoteV1/CS/Connection/Connection.Protocol.RAW.cs index 6a9bdb544..ac420bdb2 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.RAW.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.RAW.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,22 +8,20 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class RAW : Connection.Protocol.PuttyBase - { + { + public RAW() + { + this.PuttyProtocol = Putty_Protocol.raw; + } - public RAW() - { - this.PuttyProtocol = Putty_Protocol.raw; - } - - public enum Defaults - { - Port = 23 - } - } + public enum Defaults + { + Port = 23 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.RDP.cs b/mRemoteV1/CS/Connection/Connection.Protocol.RDP.cs index b4817247e..be13030f5 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.RDP.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.RDP.cs @@ -13,7 +13,6 @@ using EOLWTSCOM; using System.ComponentModel; using mRemoteNG.Messages; using mRemoteNG.App; -//using mRemoteNG.Tools.LocalizedAttributes; using MSTSCLib; using mRemoteNG.Tools; @@ -107,8 +106,8 @@ namespace mRemoteNG.Connection.Protocol Thread.Sleep(0); System.Windows.Forms.Application.DoEvents(); } - - _rdpClient = ((AxMsRdpClient5NotSafeForScripting) Control).GetOcx(); + + _rdpClient = (MsRdpClient5NotSafeForScripting)((AxMsRdpClient5NotSafeForScripting)Control).GetOcx(); } catch (System.Runtime.InteropServices.COMException ex) { @@ -135,7 +134,7 @@ namespace mRemoteNG.Connection.Protocol _rdpClient.AdvancedSettings2.overallConnectionTimeout = 20; - _rdpClient.AdvancedSettings2.BitmapPeristence = this._connectionInfo.CacheBitmaps; + _rdpClient.AdvancedSettings2.BitmapPeristence = System.Convert.ToInt32(this._connectionInfo.CacheBitmaps); if (_rdpVersion >= Versions.RDC61) { _rdpClient.AdvancedSettings7.EnableCredSspSupport = _connectionInfo.UseCredSsp; @@ -314,9 +313,9 @@ namespace mRemoteNG.Connection.Protocol { size = Screen.FromControl(Control).Bounds.Size; } - - IMsRdpClient8 msRdpClient8 = _rdpClient; - msRdpClient8.Reconnect(size.Width, size.Height); + + IMsRdpClient8 msRdpClient8 = (IMsRdpClient8)_rdpClient; + msRdpClient8.Reconnect((uint)size.Width, (uint)size.Height); } private void SetRdGateway() @@ -335,7 +334,7 @@ namespace mRemoteNG.Connection.Protocol if (!(_connectionInfo.RDGatewayUsageMethod == RDGatewayUsageMethod.Never)) { - _rdpClient.TransportSettings.GatewayUsageMethod = _connectionInfo.RDGatewayUsageMethod; + _rdpClient.TransportSettings.GatewayUsageMethod = (uint)_connectionInfo.RDGatewayUsageMethod; _rdpClient.TransportSettings.GatewayHostname = _connectionInfo.RDGatewayHostname; _rdpClient.TransportSettings.GatewayProfileUsageMethod = 1; // TSC_PROXY_PROFILE_MODE_EXPLICIT if (_connectionInfo.RDGatewayUseConnectionCredentials == RDGatewayUseConnectionCredentials.SmartCard) @@ -513,7 +512,7 @@ namespace mRemoteNG.Connection.Protocol { try { - if (_connectionInfo.Port != Defaults.Port) + if (_connectionInfo.Port != (int)Defaults.Port) { _rdpClient.AdvancedSettings2.RDPPort = _connectionInfo.Port; } @@ -577,7 +576,7 @@ namespace mRemoteNG.Connection.Protocol { try { - _rdpClient.AdvancedSettings5.AuthenticationLevel = this._connectionInfo.RDPAuthenticationLevel; + _rdpClient.AdvancedSettings5.AuthenticationLevel = (uint)this._connectionInfo.RDPAuthenticationLevel; } catch (Exception ex) { @@ -630,7 +629,7 @@ namespace mRemoteNG.Connection.Protocol const int UI_ERR_NORMAL_DISCONNECT = 0xB08; if (!(discReason == UI_ERR_NORMAL_DISCONNECT)) { - string reason = _rdpClient.GetErrorDescription(discReason, (System.UInt32) _rdpClient.ExtendedDisconnectReason); + string reason = _rdpClient.GetErrorDescription((uint)discReason, (System.UInt32) _rdpClient.ExtendedDisconnectReason); Event_Disconnected(this, discReason + "\r\n" + reason); } @@ -800,7 +799,7 @@ namespace mRemoteNG.Connection.Protocol string[] resolutionParts = null; if (!(resolution == RDPResolutions.FitToWindow) & !(resolution == RDPResolutions.Fullscreen) & !(resolution == RDPResolutions.SmartSize)) { - resolutionParts = resolution.ToString().Replace("Res", "").Split("x"); + resolutionParts = resolution.ToString().Replace("Res", "").Split('x'); } if (resolutionParts == null || !(resolutionParts.Length == 2)) { @@ -808,7 +807,7 @@ namespace mRemoteNG.Connection.Protocol } else { - return new Rectangle(0, 0, (int) (resolutionParts[0]), (int) (resolutionParts[1])); + return new Rectangle(0, 0, System.Convert.ToInt32(resolutionParts[0]), System.Convert.ToInt32(resolutionParts[1])); } } #endregion @@ -838,7 +837,7 @@ namespace mRemoteNG.Connection.Protocol } } - public long OpenConnection(string hostname) + public int OpenConnection(string hostname) { if (_wtsCom == null) { @@ -853,9 +852,10 @@ namespace mRemoteNG.Connection.Protocol { Runtime.MessageCollector.AddExceptionMessage(My.Language.strRdpOpenConnectionFailed, ex, MessageClass.ErrorMsg, true); } + return 0; } - public void CloseConnection(long serverHandle) + public void CloseConnection(int serverHandle) { if (_wtsCom == null) { @@ -871,8 +871,8 @@ namespace mRemoteNG.Connection.Protocol Runtime.MessageCollector.AddExceptionMessage(My.Language.strRdpCloseConnectionFailed, ex, MessageClass.ErrorMsg, true); } } - - public SessionsCollection GetSessions(long serverHandle) + + public SessionsCollection GetSessions(int serverHandle) { if (_wtsCom == null) { @@ -885,7 +885,7 @@ namespace mRemoteNG.Connection.Protocol { WTSSessions wtsSessions = _wtsCom.WTSEnumerateSessions(serverHandle); - long sessionId = 0; + int sessionId = 0; string sessionUser = ""; long sessionState; string sessionName = ""; @@ -917,8 +917,8 @@ namespace mRemoteNG.Connection.Protocol return sessions; } - - public bool KillSession(long serverHandle, long sessionId) + + public bool KillSession(int serverHandle, int sessionId) { if (_wtsCom == null) { @@ -955,11 +955,11 @@ namespace mRemoteNG.Connection.Protocol { get { - return List.Count(); + return List.Count; } } - public Session Add(long sessionId, string sessionState, string sessionUser, string sessionName) + public Session Add(int sessionId, string sessionState, string sessionUser, string sessionName) { Session newSession = new Session(); @@ -989,7 +989,7 @@ namespace mRemoteNG.Connection.Protocol public class Session : CollectionBase { - public long SessionId {get; set;} + public int SessionId {get; set;} public string SessionState {get; set;} public string SessionUser {get; set;} public string SessionName {get; set;} @@ -999,19 +999,30 @@ namespace mRemoteNG.Connection.Protocol #region Fatal Errors public class FatalErrors { - public FatalErrors() - { - // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. - _description = new string[] {System.Convert.ToString(0 == My.Language.strRdpErrorUnknown), System.Convert.ToString(1 == My.Language.strRdpErrorCode1), System.Convert.ToString(2 == My.Language.strRdpErrorOutOfMemory), System.Convert.ToString(3 == My.Language.strRdpErrorWindowCreation), System.Convert.ToString(4 == My.Language.strRdpErrorCode2), System.Convert.ToString(5 == My.Language.strRdpErrorCode3), System.Convert.ToString(6 == My.Language.strRdpErrorCode4), System.Convert.ToString(7 == My.Language.strRdpErrorConnection), System.Convert.ToString(100 == My.Language.strRdpErrorWinsock)}; - - } - protected static string[] _description; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. + protected static Hashtable _description; + protected static void InitDescription() + { + _description = new Hashtable(); + _description.Add("0", "My.Language.strRdpErrorUnknown"); + _description.Add("1", "My.Language.strRdpErrorCode1"); + _description.Add("2", "My.Language.strRdpErrorOutOfMemory"); + _description.Add("3", "My.Language.strRdpErrorWindowCreation"); + _description.Add("4", "My.Language.strRdpErrorCode2"); + _description.Add("5", "My.Language.strRdpErrorCode3"); + _description.Add("6", "My.Language.strRdpErrorCode4"); + _description.Add("7", "My.Language.strRdpErrorConnection"); + _description.Add("100", "My.Language.strRdpErrorWinsock"); + } public static string GetError(string id) { + if (_description == null) + { + InitDescription(); + } try { - return (_description[int.Parse(id)]); + return ((string)_description[id]); } catch (Exception ex) { diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.Rlogin.cs b/mRemoteV1/CS/Connection/Connection.Protocol.Rlogin.cs index 6feb6f6d7..67912994c 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.Rlogin.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.Rlogin.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,22 +8,21 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class Rlogin : PuttyBase - { + { - public Rlogin() - { - this.PuttyProtocol = Putty_Protocol.rlogin; - } + public Rlogin() + { + this.PuttyProtocol = Putty_Protocol.rlogin; + } - public enum Defaults - { - Port = 513 - } - } + public enum Defaults + { + Port = 513 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.SSH1.cs b/mRemoteV1/CS/Connection/Connection.Protocol.SSH1.cs index b674aeaea..d934d4992 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.SSH1.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.SSH1.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,23 +8,22 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class SSH1 : PuttyBase - { + { - public SSH1() - { - this.PuttyProtocol = Putty_Protocol.ssh; - this.PuttySSHVersion = Putty_SSHVersion.ssh1; - } + public SSH1() + { + this.PuttyProtocol = Putty_Protocol.ssh; + this.PuttySSHVersion = Putty_SSHVersion.ssh1; + } - public enum Defaults - { - Port = 22 - } - } + public enum Defaults + { + Port = 22 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.SSH2.cs b/mRemoteV1/CS/Connection/Connection.Protocol.SSH2.cs index 66f6b6441..785d14be4 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.SSH2.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.SSH2.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,23 +8,22 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class SSH2 : PuttyBase - { + { - public SSH2() - { - this.PuttyProtocol = Putty_Protocol.ssh; - this.PuttySSHVersion = Putty_SSHVersion.ssh2; - } + public SSH2() + { + this.PuttyProtocol = Putty_Protocol.ssh; + this.PuttySSHVersion = Putty_SSHVersion.ssh2; + } - public enum Defaults - { - Port = 22 - } - } + public enum Defaults + { + Port = 22 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.Serial.cs b/mRemoteV1/CS/Connection/Connection.Protocol.Serial.cs index 6bd014557..5eeefdd24 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.Serial.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.Serial.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,22 +8,21 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class Serial : PuttyBase - { + { - public Serial() - { - this.PuttyProtocol = Putty_Protocol.serial; - } + public Serial() + { + this.PuttyProtocol = Putty_Protocol.serial; + } - public enum Defaults - { - Port = 9600 - } - } + public enum Defaults + { + Port = 9600 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.Telnet.cs b/mRemoteV1/CS/Connection/Connection.Protocol.Telnet.cs index a8a652544..56687fb93 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.Telnet.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.Telnet.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,22 +8,21 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Connection.Protocol { public class Telnet : PuttyBase - { + { - public Telnet() - { - this.PuttyProtocol = Putty_Protocol.telnet; - } + public Telnet() + { + this.PuttyProtocol = Putty_Protocol.telnet; + } - public enum Defaults - { - Port = 23 - } - } + public enum Defaults + { + Port = 23 + } + } } diff --git a/mRemoteV1/CS/Connection/Connection.Protocol.VNC.cs b/mRemoteV1/CS/Connection/Connection.Protocol.VNC.cs index d87c8ab53..9942080be 100644 --- a/mRemoteV1/CS/Connection/Connection.Protocol.VNC.cs +++ b/mRemoteV1/CS/Connection/Connection.Protocol.VNC.cs @@ -11,7 +11,6 @@ using System.Windows.Forms; using mRemoteNG.App; using System.ComponentModel; using mRemoteNG.Tools; -//using mRemoteNG.Tools.LocalizedAttributes; namespace mRemoteNG.Connection.Protocol @@ -21,19 +20,19 @@ namespace mRemoteNG.Connection.Protocol #region Properties public bool SmartSize { - get { return VNC_Renamed.Scaled; } - set { VNC_Renamed.Scaled = value; } + get { return _VNC.Scaled; } + set { _VNC.Scaled = value; } } public bool ViewOnly { - get { return VNC_Renamed.ViewOnly; } - set { VNC_Renamed.ViewOnly = value; } + get { return _VNC.ViewOnly; } + set { _VNC.ViewOnly = value; } } #endregion #region Private Declarations - private VncSharp.RemoteDesktop VNC_Renamed; + private VncSharp.RemoteDesktop _VNC; private Connection.Info Info; #endregion @@ -49,11 +48,11 @@ namespace mRemoteNG.Connection.Protocol try { - VNC_Renamed = this.Control; + _VNC = (VncSharp.RemoteDesktop)this.Control; Info = this.InterfaceControl.Info; - VNC_Renamed.VncPort = this.Info.Port; + _VNC.VncPort = this.Info.Port; //If Info.VNCCompression <> Compression.CompNone Then // VNC.JPEGCompression = True @@ -133,7 +132,7 @@ namespace mRemoteNG.Connection.Protocol try { - VNC_Renamed.Connect(this.Info.Hostname, this.Info.VNCViewOnly, Info.VNCSmartSizeMode != SmartSizeMode.SmartSNo); + _VNC.Connect(this.Info.Hostname, this.Info.VNCViewOnly, Info.VNCSmartSizeMode != SmartSizeMode.SmartSNo); } catch (Exception ex) { @@ -148,7 +147,7 @@ namespace mRemoteNG.Connection.Protocol { try { - VNC_Renamed.Disconnect(); + _VNC.Disconnect(); } catch (Exception ex) { @@ -162,11 +161,11 @@ namespace mRemoteNG.Connection.Protocol { switch (Keys) { - case SpecialKeys.CtrlAltDel: - VNC_Renamed.SendSpecialKeys(SpecialKeys.CtrlAltDel); + case Connection.Protocol.VNC.SpecialKeys.CtrlAltDel: + _VNC.SendSpecialKeys(VncSharp.SpecialKeys.CtrlAltDel); break; - case SpecialKeys.CtrlEsc: - VNC_Renamed.SendSpecialKeys(SpecialKeys.CtrlEsc); + case Connection.Protocol.VNC.SpecialKeys.CtrlEsc: + _VNC.SendSpecialKeys(VncSharp.SpecialKeys.CtrlEsc); break; } } @@ -238,7 +237,7 @@ namespace mRemoteNG.Connection.Protocol { try { - VNC_Renamed.FullScreenUpdate(); + _VNC.FullScreenUpdate(); } catch (Exception ex) { @@ -252,12 +251,12 @@ namespace mRemoteNG.Connection.Protocol { try { - VNC_Renamed.ConnectComplete += VNCEvent_Connected; - VNC_Renamed.ConnectionLost += VNCEvent_Disconnected; + _VNC.ConnectComplete += VNCEvent_Connected; + _VNC.ConnectionLost += VNCEvent_Disconnected; mRemoteNG.frmMain.clipboardchange += VNCEvent_ClipboardChanged; - if (!((Force & Info.Force.NoCredentials) == (int) Info.Force.NoCredentials) && !string.IsNullOrEmpty(Info.Password)) + if (!(((int)Force & (int)Info.Force.NoCredentials) == (int)Info.Force.NoCredentials) && !string.IsNullOrEmpty(Info.Password)) { - VNC_Renamed.GetPassword = new System.EventHandler(VNCEvent_Authenticate); + _VNC.GetPassword = VNCEvent_Authenticate; } } catch (Exception ex) @@ -271,7 +270,7 @@ namespace mRemoteNG.Connection.Protocol private void VNCEvent_Connected(object sender, EventArgs e) { base.Event_Connected(this); - VNC_Renamed.AutoScroll = Info.VNCSmartSizeMode == SmartSizeMode.SmartSNo; + _VNC.AutoScroll = Info.VNCSmartSizeMode == SmartSizeMode.SmartSNo; } private void VNCEvent_Disconnected(object sender, EventArgs e) @@ -282,7 +281,7 @@ namespace mRemoteNG.Connection.Protocol private void VNCEvent_ClipboardChanged() { - this.VNC_Renamed.FillServerClipboard(); + this._VNC.FillServerClipboard(); } private string VNCEvent_Authenticate() diff --git a/mRemoteV1/CS/Container/Container.Info.cs b/mRemoteV1/CS/Container/Container.Info.cs index 87a19070f..97eabd33e 100644 --- a/mRemoteV1/CS/Container/Container.Info.cs +++ b/mRemoteV1/CS/Container/Container.Info.cs @@ -17,7 +17,7 @@ namespace mRemoteNG.Container [DefaultProperty("Name")] public class Info { -#region Properties + #region Properties [LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1), Browsable(true), ReadOnly(false), @@ -60,7 +60,8 @@ namespace mRemoteNG.Container private object _Parent; [Category(""), - Browsable(false)]public object Parent + Browsable(false)] + public object Parent { get { @@ -115,9 +116,9 @@ namespace mRemoteNG.Container this._ConnectionInfo = value; } } -#endregion + #endregion -#region Methods + #region Methods public Container.Info Copy() { return (Info)this.MemberwiseClone(); @@ -135,7 +136,7 @@ namespace mRemoteNG.Container this.IsExpanded = true; } } -#endregion + #endregion public class Attributes { diff --git a/mRemoteV1/CS/Container/Container.List.cs b/mRemoteV1/CS/Container/Container.List.cs index fccbe53db..7d14e6709 100644 --- a/mRemoteV1/CS/Container/Container.List.cs +++ b/mRemoteV1/CS/Container/Container.List.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,84 +8,82 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Container { public class List : CollectionBase + { + #region Public Properties + public Container.Info this[object Index] { - -#region Public Properties -public Container.Info this[object Index] + get { - get + if (Index is Container.Info) { - if (Index is Container.Info) - { - return Index; - } - else - { - return ((Container.Info) (List[System.Convert.ToInt32(Index)])); - } + return (Container.Info)Index; + } + else + { + return ((Container.Info) (List[System.Convert.ToInt32(Index)])); } } - -public new int Count - { - get - { - return List.Count; - } - } -#endregion - -#region Public Methods - public Container.Info Add(Container.Info cInfo) - { - this.List.Add(cInfo); - return cInfo; - } - - public void AddRange(Container.Info[] cInfo) - { - foreach (Container.Info cI in cInfo) - { - List.Add(cI); - } - } - - public Container.Info FindByConstantID(string id) - { - foreach (Container.Info contI in List) - { - if (contI.ConnectionInfo.ConstantID == id) - { - return contI; - } - } - - return null; - } - - public Container.List Copy() - { - try - { - return this.MemberwiseClone(); - } - catch (Exception) - { - } - - return null; - } - - public new void Clear() - { - this.List.Clear(); - } -#endregion } + + public new int Count + { + get + { + return List.Count; + } + } + #endregion + + #region Public Methods + public Container.Info Add(Container.Info cInfo) + { + this.List.Add(cInfo); + return cInfo; + } + + public void AddRange(Container.Info[] cInfo) + { + foreach (Container.Info cI in cInfo) + { + List.Add(cI); + } + } + + public Container.Info FindByConstantID(string id) + { + foreach (Container.Info contI in List) + { + if (contI.ConnectionInfo.ConstantID == id) + { + return contI; + } + } + + return null; + } + + public Container.List Copy() + { + try + { + return (Container.List)this.MemberwiseClone(); + } + catch (Exception) + { + } + + return null; + } + + public new void Clear() + { + this.List.Clear(); + } + #endregion + } } diff --git a/mRemoteV1/CS/Controls/TextBox.cs b/mRemoteV1/CS/Controls/TextBox.cs deleted file mode 100644 index 09f306469..000000000 --- a/mRemoteV1/CS/Controls/TextBox.cs +++ /dev/null @@ -1,81 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using System.ComponentModel; - - -// Adapted from http://stackoverflow.com/a/3678888/2101395 - -namespace mRemoteNG -{ - namespace Controls - { - public class TextBox : System.Windows.Forms.TextBox - { - -#region Public Properties - [Category("Behavior"), - DefaultValue(false)]private bool _SelectAllOnFocus = false; - private bool SelectAllOnFocus - { - get - { - return _SelectAllOnFocus; - } - set - { - _SelectAllOnFocus = value; - } - } -#endregion - -#region Protected Methods - protected override void OnEnter(EventArgs e) - { - base.OnEnter(e); - - if (MouseButtons == MouseButtons.None) - { - SelectAll(); - _focusHandled = true; - } - } - - protected override void OnLeave(EventArgs e) - { - base.OnLeave(e); - - _focusHandled = false; - } - - protected override void OnMouseUp(MouseEventArgs e) - { - base.OnMouseUp(e); - - if (!_focusHandled) - { - if (SelectionLength == 0) - { - SelectAll(); - } - _focusHandled = true; - } - } -#endregion - -#region Private Fields - private bool _focusHandled = false; -#endregion - } - } -} diff --git a/mRemoteV1/CS/Credential/Credential.Info.cs b/mRemoteV1/CS/Credential/Credential.Info.cs index f874df5bd..27168af16 100644 --- a/mRemoteV1/CS/Credential/Credential.Info.cs +++ b/mRemoteV1/CS/Credential/Credential.Info.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -10,102 +9,100 @@ using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; using mRemoteNG.Tools; -// End of VB project level imports - using System.ComponentModel; -//using mRemoteNG.Tools.LocalizedAttributes; namespace mRemoteNG.Credential { public class Info + { + #region 1 Display + private string _Name; + [LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1), + Browsable(true), + LocalizedAttributes.LocalizedDisplayName("strPropertyNameName"), + LocalizedAttributes.LocalizedDescription("strPropertyDescriptionName")] + public string Name { -#region 1 Display - private string _Name; -[LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1), -Browsable(true), -LocalizedAttributes.LocalizedDisplayName("strPropertyNameName"), -LocalizedAttributes.LocalizedDescription("strPropertyDescriptionName")] - public string Name + get { - get - { - return _Name; - } - set - { - _Name = value; - } + return _Name; } - - private string _Description; -[LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1), -Browsable(true), -LocalizedAttributes.LocalizedDisplayName("strPropertyNameDescription"), -LocalizedAttributes.LocalizedDescription("strPropertyDescriptionDescription")] - public string Description + set { - get - { - return _Description; - } - set - { - _Description = value; - } + _Name = value; } -#endregion -#region 2 Credentials - private string _Username; -[LocalizedAttributes.LocalizedCategory("strCategoryCredentials", 2), -Browsable(true), -LocalizedAttributes.LocalizedDisplayName("strPropertyNameUsername"), -LocalizedAttributes.LocalizedDescription("strPropertyDescriptionUsername")] - public string Username - { - get - { - return _Username; - } - set - { - _Username = value; - } - } - - private string _Password; -[LocalizedAttributes.LocalizedCategory("strCategoryCredentials", 2), -Browsable(true), -LocalizedAttributes.LocalizedDisplayName("strPropertyNamePassword"), -LocalizedAttributes.LocalizedDescription("strPropertyDescriptionPassword"), -PasswordPropertyText(true)]public string Password - { - get - { - return _Password; - } - set - { - _Password = value; - } - } - - private string _Domain; -[LocalizedAttributes.LocalizedCategory("strCategoryCredentials", 2), -Browsable(true), -LocalizedAttributes.LocalizedDisplayName("strPropertyNameDomain"), -LocalizedAttributes.LocalizedDescription("strPropertyDescriptionDomain")] - public string Domain - { - get - { - return _Domain; - } - set - { - _Domain = value; - } - } -#endregion } + + private string _Description; + [LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1), + Browsable(true), + LocalizedAttributes.LocalizedDisplayName("strPropertyNameDescription"), + LocalizedAttributes.LocalizedDescription("strPropertyDescriptionDescription")] + public string Description + { + get + { + return _Description; + } + set + { + _Description = value; + } + } + #endregion + + #region 2 Credentials + private string _Username; + [LocalizedAttributes.LocalizedCategory("strCategoryCredentials", 2), + Browsable(true), + LocalizedAttributes.LocalizedDisplayName("strPropertyNameUsername"), + LocalizedAttributes.LocalizedDescription("strPropertyDescriptionUsername")] + public string Username + { + get + { + return _Username; + } + set + { + _Username = value; + } + } + + private string _Password; + [LocalizedAttributes.LocalizedCategory("strCategoryCredentials", 2), + Browsable(true), + LocalizedAttributes.LocalizedDisplayName("strPropertyNamePassword"), + LocalizedAttributes.LocalizedDescription("strPropertyDescriptionPassword"), + PasswordPropertyText(true)]public string Password + { + get + { + return _Password; + } + set + { + _Password = value; + } + } + + private string _Domain; + [LocalizedAttributes.LocalizedCategory("strCategoryCredentials", 2), + Browsable(true), + LocalizedAttributes.LocalizedDisplayName("strPropertyNameDomain"), + LocalizedAttributes.LocalizedDescription("strPropertyDescriptionDomain")] + public string Domain + { + get + { + return _Domain; + } + set + { + _Domain = value; + } + } + #endregion + } } diff --git a/mRemoteV1/CS/Credential/Credential.List.cs b/mRemoteV1/CS/Credential/Credential.List.cs index 611384a13..368917b4c 100644 --- a/mRemoteV1/CS/Credential/Credential.List.cs +++ b/mRemoteV1/CS/Credential/Credential.List.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,71 +8,69 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Credential { public class List : CollectionBase + { + #region Public Properties + public Credential.Info this[object Index] { - -#region Public Properties -public Credential.Info this[object Index] + get { - get + if (Index is Credential.Info) { - if (Index is Credential.Info) - { - return Index; - } - else - { - return ((Credential.Info) (List[System.Convert.ToInt32(Index)])); - } + return (Credential.Info)Index; + } + else + { + return ((Credential.Info) (List[System.Convert.ToInt32(Index)])); } } - -public new int Count - { - get - { - return List.Count; - } - } -#endregion - -#region Public Methods - public Credential.Info Add(Credential.Info cInfo) - { - List.Add(cInfo); - return cInfo; - } - - public void AddRange(Credential.Info[] cInfo) - { - foreach (Credential.Info cI in cInfo) - { - List.Add(cI); - } - } - - public Credential.List Copy() - { - try - { - return this.MemberwiseClone(); - } - catch (Exception) - { - } - - return null; - } - - public new void Clear() - { - List.Clear(); - } -#endregion } + + public new int Count + { + get + { + return List.Count; + } + } + #endregion + + #region Public Methods + public Credential.Info Add(Credential.Info cInfo) + { + List.Add(cInfo); + return cInfo; + } + + public void AddRange(Credential.Info[] cInfo) + { + foreach (Credential.Info cI in cInfo) + { + List.Add(cI); + } + } + + public Credential.List Copy() + { + try + { + return (Credential.List)this.MemberwiseClone(); + } + catch (Exception) + { + } + + return null; + } + + public new void Clear() + { + List.Clear(); + } + #endregion + } } diff --git a/mRemoteV1/CS/Forms/ExportForm.Designer.cs b/mRemoteV1/CS/Forms/ExportForm.Designer.cs deleted file mode 100644 index 3541d0965..000000000 --- a/mRemoteV1/CS/Forms/ExportForm.Designer.cs +++ /dev/null @@ -1,315 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms -{ - public partial class ExportForm : Form - { -#region Windows Form Designer generated code - - private void InitializeComponent() - { - this.btnCancel = new System.Windows.Forms.Button(); - this.Load += new System.EventHandler(ExportForm_Load); - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - this.btnOK = new System.Windows.Forms.Button(); - this.btnOK.Click += new System.EventHandler(this.btnOK_Click); - this.lblUncheckProperties = new System.Windows.Forms.Label(); - this.chkUsername = new System.Windows.Forms.CheckBox(); - this.chkPassword = new System.Windows.Forms.CheckBox(); - this.chkDomain = new System.Windows.Forms.CheckBox(); - this.chkInheritance = new System.Windows.Forms.CheckBox(); - this.txtFileName = new System.Windows.Forms.TextBox(); - this.txtFileName.TextChanged += new System.EventHandler(this.txtFileName_TextChanged); - this.btnBrowse = new System.Windows.Forms.Button(); - this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click); - this.grpProperties = new System.Windows.Forms.GroupBox(); - this.grpFile = new System.Windows.Forms.GroupBox(); - this.lblFileFormat = new System.Windows.Forms.Label(); - this.lblFileName = new System.Windows.Forms.Label(); - this.cboFileFormat = new System.Windows.Forms.ComboBox(); - this.grpItems = new System.Windows.Forms.GroupBox(); - this.lblSelectedConnection = new System.Windows.Forms.Label(); - this.lblSelectedFolder = new System.Windows.Forms.Label(); - this.rdoExportSelectedConnection = new System.Windows.Forms.RadioButton(); - this.rdoExportSelectedFolder = new System.Windows.Forms.RadioButton(); - this.rdoExportEverything = new System.Windows.Forms.RadioButton(); - this.grpProperties.SuspendLayout(); - this.grpFile.SuspendLayout(); - this.grpItems.SuspendLayout(); - this.SuspendLayout(); - // - //btnCancel - // - this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(447, 473); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(75, 23); - this.btnCancel.TabIndex = 3; - this.btnCancel.Text = "&Cancel"; - this.btnCancel.UseVisualStyleBackColor = true; - // - //btnOK - // - this.btnOK.Location = new System.Drawing.Point(366, 473); - this.btnOK.Name = "btnOK"; - this.btnOK.Size = new System.Drawing.Size(75, 23); - this.btnOK.TabIndex = 2; - this.btnOK.Text = "&OK"; - this.btnOK.UseVisualStyleBackColor = true; - // - //lblUncheckProperties - // - this.lblUncheckProperties.AutoSize = true; - this.lblUncheckProperties.Location = new System.Drawing.Point(12, 134); - this.lblUncheckProperties.Name = "lblUncheckProperties"; - this.lblUncheckProperties.Size = new System.Drawing.Size(244, 13); - this.lblUncheckProperties.TabIndex = 4; - this.lblUncheckProperties.Text = "Uncheck the properties you want not to be saved!"; - // - //chkUsername - // - this.chkUsername.AutoSize = true; - this.chkUsername.Checked = true; - this.chkUsername.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkUsername.Location = new System.Drawing.Point(15, 32); - this.chkUsername.Name = "chkUsername"; - this.chkUsername.Size = new System.Drawing.Size(74, 17); - this.chkUsername.TabIndex = 0; - this.chkUsername.Text = "Username"; - this.chkUsername.UseVisualStyleBackColor = true; - // - //chkPassword - // - this.chkPassword.AutoSize = true; - this.chkPassword.Checked = true; - this.chkPassword.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkPassword.Location = new System.Drawing.Point(15, 55); - this.chkPassword.Name = "chkPassword"; - this.chkPassword.Size = new System.Drawing.Size(72, 17); - this.chkPassword.TabIndex = 1; - this.chkPassword.Text = "Password"; - this.chkPassword.UseVisualStyleBackColor = true; - // - //chkDomain - // - this.chkDomain.AutoSize = true; - this.chkDomain.Checked = true; - this.chkDomain.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkDomain.Location = new System.Drawing.Point(15, 78); - this.chkDomain.Name = "chkDomain"; - this.chkDomain.Size = new System.Drawing.Size(62, 17); - this.chkDomain.TabIndex = 2; - this.chkDomain.Text = "Domain"; - this.chkDomain.UseVisualStyleBackColor = true; - // - //chkInheritance - // - this.chkInheritance.AutoSize = true; - this.chkInheritance.Checked = true; - this.chkInheritance.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkInheritance.Location = new System.Drawing.Point(15, 101); - this.chkInheritance.Name = "chkInheritance"; - this.chkInheritance.Size = new System.Drawing.Size(79, 17); - this.chkInheritance.TabIndex = 3; - this.chkInheritance.Text = "Inheritance"; - this.chkInheritance.UseVisualStyleBackColor = true; - // - //txtFileName - // - this.txtFileName.Location = new System.Drawing.Point(15, 48); - this.txtFileName.Name = "txtFileName"; - this.txtFileName.Size = new System.Drawing.Size(396, 20); - this.txtFileName.TabIndex = 1; - // - //btnBrowse - // - this.btnBrowse.Location = new System.Drawing.Point(417, 46); - this.btnBrowse.Name = "btnBrowse"; - this.btnBrowse.Size = new System.Drawing.Size(75, 23); - this.btnBrowse.TabIndex = 2; - this.btnBrowse.Text = "&Browse"; - this.btnBrowse.UseVisualStyleBackColor = true; - // - //grpProperties - // - this.grpProperties.Controls.Add(this.lblUncheckProperties); - this.grpProperties.Controls.Add(this.chkInheritance); - this.grpProperties.Controls.Add(this.chkUsername); - this.grpProperties.Controls.Add(this.chkDomain); - this.grpProperties.Controls.Add(this.chkPassword); - this.grpProperties.Location = new System.Drawing.Point(12, 304); - this.grpProperties.Name = "grpProperties"; - this.grpProperties.Size = new System.Drawing.Size(510, 163); - this.grpProperties.TabIndex = 1; - this.grpProperties.TabStop = false; - this.grpProperties.Text = "Export Properties"; - // - //grpFile - // - this.grpFile.Controls.Add(this.lblFileFormat); - this.grpFile.Controls.Add(this.lblFileName); - this.grpFile.Controls.Add(this.cboFileFormat); - this.grpFile.Controls.Add(this.txtFileName); - this.grpFile.Controls.Add(this.btnBrowse); - this.grpFile.Location = new System.Drawing.Point(12, 12); - this.grpFile.Name = "grpFile"; - this.grpFile.Size = new System.Drawing.Size(510, 140); - this.grpFile.TabIndex = 0; - this.grpFile.TabStop = false; - this.grpFile.Text = "Export File"; - // - //lblFileFormat - // - this.lblFileFormat.AutoSize = true; - this.lblFileFormat.Location = new System.Drawing.Point(12, 84); - this.lblFileFormat.Name = "lblFileFormat"; - this.lblFileFormat.Size = new System.Drawing.Size(61, 13); - this.lblFileFormat.TabIndex = 3; - this.lblFileFormat.Text = "File &Format:"; - // - //lblFileName - // - this.lblFileName.AutoSize = true; - this.lblFileName.Location = new System.Drawing.Point(12, 32); - this.lblFileName.Name = "lblFileName"; - this.lblFileName.Size = new System.Drawing.Size(52, 13); - this.lblFileName.TabIndex = 0; - this.lblFileName.Text = "Filename:"; - // - //cboFileFormat - // - this.cboFileFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboFileFormat.FormattingEnabled = true; - this.cboFileFormat.Location = new System.Drawing.Point(15, 100); - this.cboFileFormat.Name = "cboFileFormat"; - this.cboFileFormat.Size = new System.Drawing.Size(294, 21); - this.cboFileFormat.TabIndex = 4; - // - //grpItems - // - this.grpItems.Controls.Add(this.lblSelectedConnection); - this.grpItems.Controls.Add(this.lblSelectedFolder); - this.grpItems.Controls.Add(this.rdoExportSelectedConnection); - this.grpItems.Controls.Add(this.rdoExportSelectedFolder); - this.grpItems.Controls.Add(this.rdoExportEverything); - this.grpItems.Location = new System.Drawing.Point(12, 158); - this.grpItems.Name = "grpItems"; - this.grpItems.Size = new System.Drawing.Size(510, 140); - this.grpItems.TabIndex = 4; - this.grpItems.TabStop = false; - this.grpItems.Text = "Export Items"; - // - //lblSelectedConnection - // - this.lblSelectedConnection.AutoSize = true; - this.lblSelectedConnection.Location = new System.Drawing.Point(48, 111); - this.lblSelectedConnection.Name = "lblSelectedConnection"; - this.lblSelectedConnection.Size = new System.Drawing.Size(92, 13); - this.lblSelectedConnection.TabIndex = 4; - this.lblSelectedConnection.Text = "Connection Name"; - // - //lblSelectedFolder - // - this.lblSelectedFolder.AutoSize = true; - this.lblSelectedFolder.Location = new System.Drawing.Point(48, 75); - this.lblSelectedFolder.Name = "lblSelectedFolder"; - this.lblSelectedFolder.Size = new System.Drawing.Size(67, 13); - this.lblSelectedFolder.TabIndex = 3; - this.lblSelectedFolder.Text = "Folder Name"; - // - //rdoExportSelectedConnection - // - this.rdoExportSelectedConnection.AutoSize = true; - this.rdoExportSelectedConnection.Location = new System.Drawing.Point(15, 91); - this.rdoExportSelectedConnection.Name = "rdoExportSelectedConnection"; - this.rdoExportSelectedConnection.Size = new System.Drawing.Size(215, 17); - this.rdoExportSelectedConnection.TabIndex = 2; - this.rdoExportSelectedConnection.TabStop = true; - this.rdoExportSelectedConnection.Text = "Export the currently selected connection"; - this.rdoExportSelectedConnection.UseVisualStyleBackColor = true; - // - //rdoExportSelectedFolder - // - this.rdoExportSelectedFolder.AutoSize = true; - this.rdoExportSelectedFolder.Location = new System.Drawing.Point(15, 55); - this.rdoExportSelectedFolder.Name = "rdoExportSelectedFolder"; - this.rdoExportSelectedFolder.Size = new System.Drawing.Size(188, 17); - this.rdoExportSelectedFolder.TabIndex = 1; - this.rdoExportSelectedFolder.TabStop = true; - this.rdoExportSelectedFolder.Text = "Export the currently selected folder"; - this.rdoExportSelectedFolder.UseVisualStyleBackColor = true; - // - //rdoExportEverything - // - this.rdoExportEverything.AutoSize = true; - this.rdoExportEverything.Checked = true; - this.rdoExportEverything.Location = new System.Drawing.Point(15, 32); - this.rdoExportEverything.Name = "rdoExportEverything"; - this.rdoExportEverything.Size = new System.Drawing.Size(107, 17); - this.rdoExportEverything.TabIndex = 0; - this.rdoExportEverything.TabStop = true; - this.rdoExportEverything.Text = "Export everything"; - this.rdoExportEverything.UseVisualStyleBackColor = true; - // - //ExportForm - // - this.AcceptButton = this.btnOK; - this.CancelButton = this.btnCancel; - this.ClientSize = new System.Drawing.Size(534, 508); - this.Controls.Add(this.grpItems); - this.Controls.Add(this.grpFile); - this.Controls.Add(this.grpProperties); - this.Controls.Add(this.btnCancel); - this.Controls.Add(this.btnOK); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.Icon = global::My.Resources.Resources.Connections_SaveAs_Icon; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "ExportForm"; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Export Connections"; - this.grpProperties.ResumeLayout(false); - this.grpProperties.PerformLayout(); - this.grpFile.ResumeLayout(false); - this.grpFile.PerformLayout(); - this.grpItems.ResumeLayout(false); - this.grpItems.PerformLayout(); - this.ResumeLayout(false); - - } - private System.Windows.Forms.Button btnCancel; - private System.Windows.Forms.Button btnOK; - private System.Windows.Forms.Label lblUncheckProperties; - private System.Windows.Forms.CheckBox chkUsername; - private System.Windows.Forms.CheckBox chkPassword; - private System.Windows.Forms.CheckBox chkDomain; - private System.Windows.Forms.CheckBox chkInheritance; - private System.Windows.Forms.TextBox txtFileName; - private System.Windows.Forms.Button btnBrowse; - private System.Windows.Forms.GroupBox grpProperties; - private System.Windows.Forms.GroupBox grpFile; - private System.Windows.Forms.Label lblFileFormat; - private System.Windows.Forms.Label lblFileName; - private System.Windows.Forms.ComboBox cboFileFormat; - private System.Windows.Forms.GroupBox grpItems; - private System.Windows.Forms.Label lblSelectedConnection; - private System.Windows.Forms.Label lblSelectedFolder; - private System.Windows.Forms.RadioButton rdoExportSelectedConnection; - private System.Windows.Forms.RadioButton rdoExportSelectedFolder; - private System.Windows.Forms.RadioButton rdoExportEverything; -#endregion - } -} diff --git a/mRemoteV1/CS/Forms/ExportForm.cs b/mRemoteV1/CS/Forms/ExportForm.cs deleted file mode 100644 index a6bd790d5..000000000 --- a/mRemoteV1/CS/Forms/ExportForm.cs +++ /dev/null @@ -1,341 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using System.ComponentModel; -//using mRemoteNG.Config.Connections; -using mRemoteNG.App; -using mRemoteNG.My; - - -namespace mRemoteNG.Forms -{ - public partial class ExportForm : Form - { - -#region Public Properties -public string FileName - { - get - { - return txtFileName.Text; - } - set - { - txtFileName.Text = value; - } - } - -public Config.Connections.Save.Format SaveFormat - { - get - { - ExportFormat exportFormat = cboFileFormat.SelectedItem as ExportFormat; - if (exportFormat == null) - { - return Config.Connections.Save_Renamed.Format.mRXML; - } - else - { - return exportFormat.Format; - } - } - set - { - foreach (object item in cboFileFormat.Items) - { - ExportFormat exportFormat = item as ExportFormat; - if (exportFormat == null) - { - continue; - } - if (exportFormat.Format == value) - { - cboFileFormat.SelectedItem = item; - break; - } - } - } - } - -public ExportScope Scope - { - get - { - if (rdoExportSelectedFolder.Checked) - { - return ExportScope.SelectedFolder; - } - else if (rdoExportSelectedConnection.Checked) - { - return ExportScope.SelectedConnection; - } - else - { - return ExportScope.Everything; - } - } - set - { - switch (value) - { - case ExportScope.Everything: - rdoExportEverything.Checked = true; - break; - case ExportScope.SelectedFolder: - rdoExportSelectedFolder.Checked = true; - break; - case ExportScope.SelectedConnection: - rdoExportSelectedConnection.Checked = true; - break; - } - } - } - - private TreeNode _selectedFolder; -public TreeNode SelectedFolder - { - get - { - return _selectedFolder; - } - set - { - _selectedFolder = value; - if (value == null) - { - lblSelectedFolder.Text = string.Empty; - } - else - { - lblSelectedFolder.Text = value.Text; - } - rdoExportSelectedFolder.Enabled = value != null; - } - } - - private TreeNode _selectedConnection; -public TreeNode SelectedConnection - { - get - { - return _selectedConnection; - } - set - { - _selectedConnection = value; - if (value == null) - { - lblSelectedConnection.Text = string.Empty; - } - else - { - lblSelectedConnection.Text = value.Text; - } - rdoExportSelectedConnection.Enabled = value != null; - } - } - -public bool IncludeUsername - { - get - { - return chkUsername.Checked; - } - set - { - chkUsername.Checked = value; - } - } - -public bool IncludePassword - { - get - { - return chkPassword.Checked; - } - set - { - chkPassword.Checked = value; - } - } - -public bool IncludeDomain - { - get - { - return chkDomain.Checked; - } - set - { - chkDomain.Checked = value; - } - } - -public bool IncludeInheritance - { - get - { - return chkInheritance.Checked; - } - set - { - chkInheritance.Checked = value; - } - } -#endregion - -#region Constructors - public ExportForm() - { - InitializeComponent(); - - Runtime.FontOverride(this); - - SelectedFolder = null; - SelectedConnection = null; - - btnOK.Enabled = false; - } -#endregion - -#region Private Methods -#region Event Handlers - public void ExportForm_Load(object sender, EventArgs e) - { - cboFileFormat.Items.Clear(); - cboFileFormat.Items.Add(new ExportFormat(Save().Format.mRXML)); - cboFileFormat.Items.Add(new ExportFormat(Save().Format.mRCSV)); - cboFileFormat.Items.Add(new ExportFormat(Save().Format.vRDCSV)); - cboFileFormat.SelectedIndex = 0; - - ApplyLanguage(); - } - - public void txtFileName_TextChanged(System.Object sender, EventArgs e) - { - btnOK.Enabled = !string.IsNullOrEmpty(txtFileName.Text); - } - - public void btnBrowse_Click(System.Object sender, EventArgs e) - { - using (SaveFileDialog saveFileDialog = new SaveFileDialog()) - { - saveFileDialog.CheckPathExists = true; - saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal); - saveFileDialog.OverwritePrompt = true; - - List fileTypes = new List(); - fileTypes.AddRange(new[] {Language.strFiltermRemoteXML, "*.xml"}); - fileTypes.AddRange(new[] {Language.strFiltermRemoteCSV, "*.csv"}); - fileTypes.AddRange(new[] {Language.strFiltervRD2008CSV, "*.csv"}); - fileTypes.AddRange(new[] {Language.strFilterAll, "*.*"}); - - saveFileDialog.Filter = string.Join("|", fileTypes.ToArray()); - - if (!(saveFileDialog.ShowDialog(this) == DialogResult.OK)) - { - return ; - } - - txtFileName.Text = saveFileDialog.FileName; - } - - } - - public void btnOK_Click(System.Object sender, EventArgs e) - { - DialogResult = DialogResult.OK; - } - - public void btnCancel_Click(System.Object sender, EventArgs e) - { - DialogResult = DialogResult.Cancel; - } -#endregion - - private void ApplyLanguage() - { - Text = Language.strExport; - - grpFile.Text = Language.strExportFile; - lblFileName.Text = Language.strLabelFilename; - btnBrowse.Text = Language.strButtonBrowse; - lblFileFormat.Text = Language.strFileFormatLabel; - - grpItems.Text = Language.strExportItems; - rdoExportEverything.Text = Language.strExportEverything; - rdoExportSelectedFolder.Text = Language.strExportSelectedFolder; - rdoExportSelectedConnection.Text = Language.strExportSelectedConnection; - - grpProperties.Text = Language.strExportProperties; - chkUsername.Text = Language.strCheckboxUsername; - chkPassword.Text = Language.strCheckboxPassword; - chkDomain.Text = Language.strCheckboxDomain; - chkInheritance.Text = Language.strCheckboxInheritance; - lblUncheckProperties.Text = Language.strUncheckProperties; - - btnOK.Text = Language.strButtonOK; - btnCancel.Text = Language.strButtonCancel; - } -#endregion - -#region Public Enumerations - public enum ExportScope - { - Everything, - SelectedFolder, - SelectedConnection - } -#endregion - -#region Private Classes - [ImmutableObject(true)]private class ExportFormat - { -#region Public Properties - private Config.Connections.Save.Format _format; -public Config.Connections.Save.Format Format - { - get - { - return _format; - } - } -#endregion - -#region Constructors - public ExportFormat(Config.Connections.Save.Format format) - { - _format = format; - } -#endregion - -#region Public Methods - public override string ToString() - { - switch (Format) - { - case Config.Connections.Save_Renamed.Format.mRXML: - return Language.strMremoteNgXml; - case Config.Connections.Save_Renamed.Format.mRCSV: - return Language.strMremoteNgCsv; - case Config.Connections.Save_Renamed.Format.vRDCSV: - return Language.strVisionAppRemoteDesktopCsv; - default: - return Format.ToString(); - } - } -#endregion - } -#endregion - } -} diff --git a/mRemoteV1/CS/Forms/OptionsForm.Designer.cs b/mRemoteV1/CS/Forms/OptionsForm.Designer.cs deleted file mode 100644 index 06713fcf8..000000000 --- a/mRemoteV1/CS/Forms/OptionsForm.Designer.cs +++ /dev/null @@ -1,117 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class OptionsForm : System.Windows.Forms.Form - { - - //Form overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsForm)); - mRemoteNG.Controls.Alignment Alignment2 = new mRemoteNG.Controls.Alignment(); - this.PagePanel = new System.Windows.Forms.Panel(); - base.Load += new System.EventHandler(OptionsForm_Load); - base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(OptionsForm_FormClosing); - this.OkButton = new System.Windows.Forms.Button(); - this.OkButton.Click += new System.EventHandler(this.OkButton_Click); - this.CancelButtonControl = new System.Windows.Forms.Button(); - this.CancelButtonControl.Click += new System.EventHandler(this.CancelButtonControl_Click); - this.PageListView = new mRemoteNG.Controls.ListView(); - this.PageListView.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.PageListView_ItemSelectionChanged); - this.PageListView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PageListView_MouseUp); - this.SuspendLayout(); - // - //PagePanel - // - resources.ApplyResources(this.PagePanel, "PagePanel"); - this.PagePanel.Name = "PagePanel"; - // - //OkButton - // - resources.ApplyResources(this.OkButton, "OkButton"); - this.OkButton.Name = "OkButton"; - this.OkButton.UseVisualStyleBackColor = true; - // - //CancelButtonControl - // - this.CancelButtonControl.DialogResult = System.Windows.Forms.DialogResult.Cancel; - resources.ApplyResources(this.CancelButtonControl, "CancelButtonControl"); - this.CancelButtonControl.Name = "CancelButtonControl"; - this.CancelButtonControl.UseVisualStyleBackColor = true; - // - //PageListView - // - this.PageListView.InactiveHighlightBackColor = System.Drawing.SystemColors.Highlight; - this.PageListView.InactiveHighlightBorderColor = System.Drawing.SystemColors.HotTrack; - this.PageListView.InactiveHighlightForeColor = System.Drawing.SystemColors.HighlightText; - Alignment2.Horizontal = mRemoteNG.Controls.HorizontalAlignment.Left; - Alignment2.Vertical = mRemoteNG.Controls.VerticalAlignment.Middle; - this.PageListView.LabelAlignment = Alignment2; - resources.ApplyResources(this.PageListView, "PageListView"); - this.PageListView.MultiSelect = false; - this.PageListView.Name = "PageListView"; - this.PageListView.OwnerDraw = true; - this.PageListView.ShowFocusCues = false; - this.PageListView.TileSize = new System.Drawing.Size(150, 30); - this.PageListView.UseCompatibleStateImageBehavior = false; - this.PageListView.View = System.Windows.Forms.View.Tile; - // - //OptionsForm - // - this.AcceptButton = this.OkButton; - resources.ApplyResources(this, "$this"); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.CancelButton = this.CancelButtonControl; - this.Controls.Add(this.CancelButtonControl); - this.Controls.Add(this.OkButton); - this.Controls.Add(this.PagePanel); - this.Controls.Add(this.PageListView); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "OptionsForm"; - this.ShowInTaskbar = false; - this.ResumeLayout(false); - - } - internal mRemoteNG.Controls.ListView PageListView; - internal System.Windows.Forms.Panel PagePanel; - internal System.Windows.Forms.Button OkButton; - internal System.Windows.Forms.Button CancelButtonControl; - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.Designer.cs deleted file mode 100644 index 1fa816ab1..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.Designer.cs +++ /dev/null @@ -1,286 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class AdvancedPage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AdvancedPage)); - this.chkWriteLogFile = new System.Windows.Forms.CheckBox(); - this.chkAutomaticallyGetSessionInfo = new System.Windows.Forms.CheckBox(); - this.lblXulRunnerPath = new System.Windows.Forms.Label(); - this.lblMaximumPuttyWaitTime = new System.Windows.Forms.Label(); - this.chkEncryptCompleteFile = new System.Windows.Forms.CheckBox(); - this.chkAutomaticReconnect = new System.Windows.Forms.CheckBox(); - this.btnBrowseXulRunnerPath = new System.Windows.Forms.Button(); - this.btnBrowseXulRunnerPath.Click += new System.EventHandler(this.btnBrowseXulRunnerPath_Click); - this.numPuttyWaitTime = new System.Windows.Forms.NumericUpDown(); - this.chkUseCustomPuttyPath = new System.Windows.Forms.CheckBox(); - this.chkUseCustomPuttyPath.CheckedChanged += new System.EventHandler(this.chkUseCustomPuttyPath_CheckedChanged); - this.lblConfigurePuttySessions = new System.Windows.Forms.Label(); - this.txtXULrunnerPath = new System.Windows.Forms.TextBox(); - this.numUVNCSCPort = new System.Windows.Forms.NumericUpDown(); - this.txtCustomPuttyPath = new System.Windows.Forms.TextBox(); - this.txtCustomPuttyPath.TextChanged += new System.EventHandler(this.txtCustomPuttyPath_TextChanged); - this.btnLaunchPutty = new System.Windows.Forms.Button(); - this.btnLaunchPutty.Click += new System.EventHandler(this.btnLaunchPutty_Click); - this.lblUVNCSCPort = new System.Windows.Forms.Label(); - this.lblSeconds = new System.Windows.Forms.Label(); - this.btnBrowseCustomPuttyPath = new System.Windows.Forms.Button(); - this.btnBrowseCustomPuttyPath.Click += new System.EventHandler(this.btnBrowseCustomPuttyPath_Click); - ((System.ComponentModel.ISupportInitialize) this.numPuttyWaitTime).BeginInit(); - ((System.ComponentModel.ISupportInitialize) this.numUVNCSCPort).BeginInit(); - this.SuspendLayout(); - // - //chkWriteLogFile - // - this.chkWriteLogFile.AutoSize = true; - this.chkWriteLogFile.Location = new System.Drawing.Point(3, 0); - this.chkWriteLogFile.Name = "chkWriteLogFile"; - this.chkWriteLogFile.Size = new System.Drawing.Size(171, 17); - this.chkWriteLogFile.TabIndex = 17; - this.chkWriteLogFile.Text = "Write log file (mRemoteNG.log)"; - this.chkWriteLogFile.UseVisualStyleBackColor = true; - // - //chkAutomaticallyGetSessionInfo - // - this.chkAutomaticallyGetSessionInfo.AutoSize = true; - this.chkAutomaticallyGetSessionInfo.Location = new System.Drawing.Point(3, 46); - this.chkAutomaticallyGetSessionInfo.Name = "chkAutomaticallyGetSessionInfo"; - this.chkAutomaticallyGetSessionInfo.Size = new System.Drawing.Size(198, 17); - this.chkAutomaticallyGetSessionInfo.TabIndex = 19; - this.chkAutomaticallyGetSessionInfo.Text = "Automatically get session information"; - this.chkAutomaticallyGetSessionInfo.UseVisualStyleBackColor = true; - // - //lblXulRunnerPath - // - this.lblXulRunnerPath.AutoSize = true; - this.lblXulRunnerPath.Location = new System.Drawing.Point(3, 217); - this.lblXulRunnerPath.Name = "lblXulRunnerPath"; - this.lblXulRunnerPath.Size = new System.Drawing.Size(85, 13); - this.lblXulRunnerPath.TabIndex = 29; - this.lblXulRunnerPath.Text = "XULrunner path:"; - // - //lblMaximumPuttyWaitTime - // - this.lblMaximumPuttyWaitTime.Location = new System.Drawing.Point(3, 185); - this.lblMaximumPuttyWaitTime.Name = "lblMaximumPuttyWaitTime"; - this.lblMaximumPuttyWaitTime.Size = new System.Drawing.Size(364, 13); - this.lblMaximumPuttyWaitTime.TabIndex = 26; - this.lblMaximumPuttyWaitTime.Text = "Maximum PuTTY wait time:"; - this.lblMaximumPuttyWaitTime.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //chkEncryptCompleteFile - // - this.chkEncryptCompleteFile.AutoSize = true; - this.chkEncryptCompleteFile.Location = new System.Drawing.Point(3, 23); - this.chkEncryptCompleteFile.Name = "chkEncryptCompleteFile"; - this.chkEncryptCompleteFile.Size = new System.Drawing.Size(180, 17); - this.chkEncryptCompleteFile.TabIndex = 18; - this.chkEncryptCompleteFile.Text = "Encrypt complete connection file"; - this.chkEncryptCompleteFile.UseVisualStyleBackColor = true; - // - //chkAutomaticReconnect - // - this.chkAutomaticReconnect.AutoSize = true; - this.chkAutomaticReconnect.Location = new System.Drawing.Point(3, 69); - this.chkAutomaticReconnect.Name = "chkAutomaticReconnect"; - this.chkAutomaticReconnect.Size = new System.Drawing.Size(399, 17); - this.chkAutomaticReconnect.TabIndex = 20; - this.chkAutomaticReconnect.Text = "Automatically try to reconnect when disconnected from server (RDP && ICA only)"; - this.chkAutomaticReconnect.UseVisualStyleBackColor = true; - // - //btnBrowseXulRunnerPath - // - this.btnBrowseXulRunnerPath.Location = new System.Drawing.Point(373, 233); - this.btnBrowseXulRunnerPath.Name = "btnBrowseXulRunnerPath"; - this.btnBrowseXulRunnerPath.Size = new System.Drawing.Size(75, 23); - this.btnBrowseXulRunnerPath.TabIndex = 31; - this.btnBrowseXulRunnerPath.Text = "Browse..."; - this.btnBrowseXulRunnerPath.UseVisualStyleBackColor = true; - // - //numPuttyWaitTime - // - this.numPuttyWaitTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.numPuttyWaitTime.Location = new System.Drawing.Point(373, 183); - this.numPuttyWaitTime.Maximum = new decimal(new int[] {999, 0, 0, 0}); - this.numPuttyWaitTime.Name = "numPuttyWaitTime"; - this.numPuttyWaitTime.Size = new System.Drawing.Size(49, 20); - this.numPuttyWaitTime.TabIndex = 27; - this.numPuttyWaitTime.Value = new decimal(new int[] {5, 0, 0, 0}); - // - //chkUseCustomPuttyPath - // - this.chkUseCustomPuttyPath.AutoSize = true; - this.chkUseCustomPuttyPath.Location = new System.Drawing.Point(3, 92); - this.chkUseCustomPuttyPath.Name = "chkUseCustomPuttyPath"; - this.chkUseCustomPuttyPath.Size = new System.Drawing.Size(146, 17); - this.chkUseCustomPuttyPath.TabIndex = 21; - this.chkUseCustomPuttyPath.Text = "Use custom PuTTY path:"; - this.chkUseCustomPuttyPath.UseVisualStyleBackColor = true; - // - //lblConfigurePuttySessions - // - this.lblConfigurePuttySessions.Location = new System.Drawing.Point(3, 154); - this.lblConfigurePuttySessions.Name = "lblConfigurePuttySessions"; - this.lblConfigurePuttySessions.Size = new System.Drawing.Size(364, 13); - this.lblConfigurePuttySessions.TabIndex = 24; - this.lblConfigurePuttySessions.Text = "To configure PuTTY sessions click this button:"; - this.lblConfigurePuttySessions.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //txtXULrunnerPath - // - this.txtXULrunnerPath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtXULrunnerPath.Location = new System.Drawing.Point(21, 235); - this.txtXULrunnerPath.Name = "txtXULrunnerPath"; - this.txtXULrunnerPath.Size = new System.Drawing.Size(346, 20); - this.txtXULrunnerPath.TabIndex = 30; - // - //numUVNCSCPort - // - this.numUVNCSCPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.numUVNCSCPort.Location = new System.Drawing.Point(373, 276); - this.numUVNCSCPort.Maximum = new decimal(new int[] {65535, 0, 0, 0}); - this.numUVNCSCPort.Name = "numUVNCSCPort"; - this.numUVNCSCPort.Size = new System.Drawing.Size(72, 20); - this.numUVNCSCPort.TabIndex = 33; - this.numUVNCSCPort.Value = new decimal(new int[] {5500, 0, 0, 0}); - this.numUVNCSCPort.Visible = false; - // - //txtCustomPuttyPath - // - this.txtCustomPuttyPath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtCustomPuttyPath.Enabled = false; - this.txtCustomPuttyPath.Location = new System.Drawing.Point(21, 115); - this.txtCustomPuttyPath.Name = "txtCustomPuttyPath"; - this.txtCustomPuttyPath.Size = new System.Drawing.Size(346, 20); - this.txtCustomPuttyPath.TabIndex = 22; - // - //btnLaunchPutty - // - this.btnLaunchPutty.Image = global::My.Resources.Resources.PuttyConfig; - this.btnLaunchPutty.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnLaunchPutty.Location = new System.Drawing.Point(373, 149); - this.btnLaunchPutty.Name = "btnLaunchPutty"; - this.btnLaunchPutty.Size = new System.Drawing.Size(110, 23); - this.btnLaunchPutty.TabIndex = 25; - this.btnLaunchPutty.Text = "Launch PuTTY"; - this.btnLaunchPutty.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.btnLaunchPutty.UseVisualStyleBackColor = true; - // - //lblUVNCSCPort - // - this.lblUVNCSCPort.Location = new System.Drawing.Point(3, 278); - this.lblUVNCSCPort.Name = "lblUVNCSCPort"; - this.lblUVNCSCPort.Size = new System.Drawing.Size(364, 13); - this.lblUVNCSCPort.TabIndex = 32; - this.lblUVNCSCPort.Text = "UltraVNC SingleClick Listening Port:"; - this.lblUVNCSCPort.TextAlign = System.Drawing.ContentAlignment.TopRight; - this.lblUVNCSCPort.Visible = false; - // - //lblSeconds - // - this.lblSeconds.AutoSize = true; - this.lblSeconds.Location = new System.Drawing.Point(428, 185); - this.lblSeconds.Name = "lblSeconds"; - this.lblSeconds.Size = new System.Drawing.Size(47, 13); - this.lblSeconds.TabIndex = 28; - this.lblSeconds.Text = "seconds"; - // - //btnBrowseCustomPuttyPath - // - this.btnBrowseCustomPuttyPath.Enabled = false; - this.btnBrowseCustomPuttyPath.Location = new System.Drawing.Point(373, 113); - this.btnBrowseCustomPuttyPath.Name = "btnBrowseCustomPuttyPath"; - this.btnBrowseCustomPuttyPath.Size = new System.Drawing.Size(75, 23); - this.btnBrowseCustomPuttyPath.TabIndex = 23; - this.btnBrowseCustomPuttyPath.Text = "Browse..."; - this.btnBrowseCustomPuttyPath.UseVisualStyleBackColor = true; - // - //AdvancedPage - // - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.chkWriteLogFile); - this.Controls.Add(this.chkAutomaticallyGetSessionInfo); - this.Controls.Add(this.lblXulRunnerPath); - this.Controls.Add(this.lblMaximumPuttyWaitTime); - this.Controls.Add(this.chkEncryptCompleteFile); - this.Controls.Add(this.chkAutomaticReconnect); - this.Controls.Add(this.btnBrowseXulRunnerPath); - this.Controls.Add(this.numPuttyWaitTime); - this.Controls.Add(this.chkUseCustomPuttyPath); - this.Controls.Add(this.lblConfigurePuttySessions); - this.Controls.Add(this.txtXULrunnerPath); - this.Controls.Add(this.numUVNCSCPort); - this.Controls.Add(this.txtCustomPuttyPath); - this.Controls.Add(this.btnLaunchPutty); - this.Controls.Add(this.lblUVNCSCPort); - this.Controls.Add(this.lblSeconds); - this.Controls.Add(this.btnBrowseCustomPuttyPath); - this.Name = "AdvancedPage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - ((System.ComponentModel.ISupportInitialize) this.numPuttyWaitTime).EndInit(); - ((System.ComponentModel.ISupportInitialize) this.numUVNCSCPort).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - internal System.Windows.Forms.CheckBox chkWriteLogFile; - internal System.Windows.Forms.CheckBox chkAutomaticallyGetSessionInfo; - internal System.Windows.Forms.Label lblXulRunnerPath; - internal System.Windows.Forms.Label lblMaximumPuttyWaitTime; - internal System.Windows.Forms.CheckBox chkEncryptCompleteFile; - internal System.Windows.Forms.CheckBox chkAutomaticReconnect; - internal System.Windows.Forms.Button btnBrowseXulRunnerPath; - internal System.Windows.Forms.NumericUpDown numPuttyWaitTime; - internal System.Windows.Forms.CheckBox chkUseCustomPuttyPath; - internal System.Windows.Forms.Label lblConfigurePuttySessions; - internal System.Windows.Forms.TextBox txtXULrunnerPath; - internal System.Windows.Forms.NumericUpDown numUVNCSCPort; - internal System.Windows.Forms.TextBox txtCustomPuttyPath; - internal System.Windows.Forms.Button btnLaunchPutty; - internal System.Windows.Forms.Label lblUVNCSCPort; - internal System.Windows.Forms.Label lblSeconds; - internal System.Windows.Forms.Button btnBrowseCustomPuttyPath; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.cs b/mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.cs deleted file mode 100644 index c996dbea7..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.cs +++ /dev/null @@ -1,226 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using System.IO; -//using mRemoteNG.App.Info; -using mRemoteNG.My; -using mRemoteNG.Connection.Protocol; -using mRemoteNG.Tools; -using PSTaskDialog; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class AdvancedPage - { - public AdvancedPage() - { - InitializeComponent(); - } -#region Public Methods -public override string PageName - { - get - { - return Language.strTabAdvanced; - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - - lblSeconds.Text = Language.strLabelSeconds; - lblMaximumPuttyWaitTime.Text = Language.strLabelPuttyTimeout; - chkAutomaticReconnect.Text = Language.strCheckboxAutomaticReconnect; - lblConfigurePuttySessions.Text = Language.strLabelPuttySessionsConfig; - btnLaunchPutty.Text = Language.strButtonLaunchPutty; - btnBrowseCustomPuttyPath.Text = Language.strButtonBrowse; - chkUseCustomPuttyPath.Text = Language.strCheckboxPuttyPath; - chkAutomaticallyGetSessionInfo.Text = Language.strAutomaticallyGetSessionInfo; - chkWriteLogFile.Text = Language.strWriteLogFile; - lblUVNCSCPort.Text = Language.strUltraVNCSCListeningPort; - lblXulRunnerPath.Text = Language.strXULrunnerPath; - btnBrowseXulRunnerPath.Text = Language.strButtonBrowse; - chkEncryptCompleteFile.Text = Language.strEncryptCompleteConnectionFile; - } - - public override void LoadSettings() - { - base.SaveSettings(); - - chkWriteLogFile.Checked = System.Convert.ToBoolean(My.Settings.Default.WriteLogFile); - chkEncryptCompleteFile.Checked = System.Convert.ToBoolean(My.Settings.Default.EncryptCompleteConnectionsFile); - chkAutomaticallyGetSessionInfo.Checked = System.Convert.ToBoolean(My.Settings.Default.AutomaticallyGetSessionInfo); - chkAutomaticReconnect.Checked = System.Convert.ToBoolean(My.Settings.Default.ReconnectOnDisconnect); - numPuttyWaitTime.Value = System.Convert.ToDecimal(My.Settings.Default.MaxPuttyWaitTime); - - chkUseCustomPuttyPath.Checked = MySettingsProperty.Settings.UseCustomPuttyPath; - txtCustomPuttyPath.Text = MySettingsProperty.Settings.CustomPuttyPath; - SetPuttyLaunchButtonEnabled(); - - numUVNCSCPort.Value = System.Convert.ToDecimal(My.Settings.Default.UVNCSCPort); - - txtXULrunnerPath.Text = System.Convert.ToString(My.Settings.Default.XULRunnerPath); - } - - public override void SaveSettings() - { - base.SaveSettings(); - - My.Settings.Default.WriteLogFile = chkWriteLogFile.Checked; - My.Settings.Default.EncryptCompleteConnectionsFile = chkEncryptCompleteFile.Checked; - My.Settings.Default.AutomaticallyGetSessionInfo = chkAutomaticallyGetSessionInfo.Checked; - My.Settings.Default.ReconnectOnDisconnect = chkAutomaticReconnect.Checked; - - bool puttyPathChanged = false; - if (!(MySettingsProperty.Settings.CustomPuttyPath == txtCustomPuttyPath.Text)) - { - puttyPathChanged = true; - MySettingsProperty.Settings.CustomPuttyPath = txtCustomPuttyPath.Text; - } - if (!(MySettingsProperty.Settings.UseCustomPuttyPath == chkUseCustomPuttyPath.Checked)) - { - puttyPathChanged = true; - MySettingsProperty.Settings.UseCustomPuttyPath = chkUseCustomPuttyPath.Checked; - } - if (puttyPathChanged) - { - if (MySettingsProperty.Settings.UseCustomPuttyPath) - { - PuttyBase.PuttyPath = MySettingsProperty.Settings.CustomPuttyPath; - } - else - { - PuttyBase.PuttyPath = App.Info.General.PuttyPath; - } - Config.Putty.Sessions.AddSessionsToTree(); - } - - My.Settings.Default.MaxPuttyWaitTime = numPuttyWaitTime.Value; - - My.Settings.Default.UVNCSCPort = numUVNCSCPort.Value; - - My.Settings.Default.XULRunnerPath = txtXULrunnerPath.Text; - } -#endregion - -#region Private Methods -#region Event Handlers - public void chkUseCustomPuttyPath_CheckedChanged(object sender, EventArgs e) - { - txtCustomPuttyPath.Enabled = chkUseCustomPuttyPath.Checked; - btnBrowseCustomPuttyPath.Enabled = chkUseCustomPuttyPath.Checked; - SetPuttyLaunchButtonEnabled(); - } - - public void txtCustomPuttyPath_TextChanged(object sender, EventArgs e) - { - SetPuttyLaunchButtonEnabled(); - } - - public void btnBrowseCustomPuttyPath_Click(object sender, EventArgs e) - { - using (OpenFileDialog openFileDialog = new OpenFileDialog()) - { - openFileDialog.Filter = string.Format("{0}|*.exe|{1}|*.*", Language.strFilterApplication, Language.strFilterAll); - openFileDialog.FileName = Path.GetFileName(App.Info.General.PuttyPath); - openFileDialog.CheckFileExists = true; - openFileDialog.Multiselect = false; - - if (openFileDialog.ShowDialog() == DialogResult.OK) - { - txtCustomPuttyPath.Text = openFileDialog.FileName; - SetPuttyLaunchButtonEnabled(); - } - } - - } - - public void btnLaunchPutty_Click(object sender, EventArgs e) - { - try - { - PuttyProcessController puttyProcess = new PuttyProcessController(); - string fileName = ""; - if (chkUseCustomPuttyPath.Checked) - { - fileName = txtCustomPuttyPath.Text; - } - else - { - fileName = App.Info.General.PuttyPath; - } - puttyProcess.Start(fileName); - puttyProcess.SetControlText("Button", "&Cancel", "&Close"); - puttyProcess.SetControlVisible("Button", "&Open", false); - puttyProcess.WaitForExit(); - } - catch (Exception ex) - { - cTaskDialog.MessageBox(System.Convert.ToString(Application.Info.ProductName), Language.strErrorCouldNotLaunchPutty, "", ex.Message, "", "", eTaskDialogButtons.OK, eSysIcons.Error, null); - } - } - - public void btnBrowseXulRunnerPath_Click(object sender, EventArgs e) - { - FolderBrowserDialog oDlg = new FolderBrowserDialog(); - oDlg.ShowNewFolderButton = false; - - if (oDlg.ShowDialog() == DialogResult.OK) - { - txtXULrunnerPath.Text = oDlg.SelectedPath; - } - - oDlg.Dispose(); - } -#endregion - - private void SetPuttyLaunchButtonEnabled() - { - string puttyPath = ""; - if (chkUseCustomPuttyPath.Checked) - { - puttyPath = txtCustomPuttyPath.Text; - } - else - { - puttyPath = App.Info.General.PuttyPath; - } - - bool exists = false; - try - { - exists = File.Exists(puttyPath); - } - catch - { - } - - if (exists) - { - lblConfigurePuttySessions.Enabled = true; - btnLaunchPutty.Enabled = true; - } - else - { - lblConfigurePuttySessions.Enabled = false; - btnLaunchPutty.Enabled = false; - } - } -#endregion - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/AppearancePage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/AppearancePage.Designer.cs deleted file mode 100644 index f0ec1a191..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/AppearancePage.Designer.cs +++ /dev/null @@ -1,149 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class AppearancePage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AppearancePage)); - this.lblLanguageRestartRequired = new System.Windows.Forms.Label(); - this.cboLanguage = new System.Windows.Forms.ComboBox(); - this.lblLanguage = new System.Windows.Forms.Label(); - this.chkShowFullConnectionsFilePathInTitle = new System.Windows.Forms.CheckBox(); - this.chkShowDescriptionTooltipsInTree = new System.Windows.Forms.CheckBox(); - this.chkShowSystemTrayIcon = new System.Windows.Forms.CheckBox(); - this.chkMinimizeToSystemTray = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - //lblLanguageRestartRequired - // - this.lblLanguageRestartRequired.AutoSize = true; - this.lblLanguageRestartRequired.Location = new System.Drawing.Point(3, 56); - this.lblLanguageRestartRequired.Name = "lblLanguageRestartRequired"; - this.lblLanguageRestartRequired.Size = new System.Drawing.Size(380, 13); - this.lblLanguageRestartRequired.TabIndex = 9; - this.lblLanguageRestartRequired.Text = "mRemoteNG must be restarted before changes to the language will take effect."; - // - //cboLanguage - // - this.cboLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboLanguage.FormattingEnabled = true; - this.cboLanguage.Location = new System.Drawing.Point(3, 24); - this.cboLanguage.Name = "cboLanguage"; - this.cboLanguage.Size = new System.Drawing.Size(304, 21); - this.cboLanguage.Sorted = true; - this.cboLanguage.TabIndex = 8; - // - //lblLanguage - // - this.lblLanguage.AutoSize = true; - this.lblLanguage.Location = new System.Drawing.Point(3, 0); - this.lblLanguage.Name = "lblLanguage"; - this.lblLanguage.Size = new System.Drawing.Size(55, 13); - this.lblLanguage.TabIndex = 7; - this.lblLanguage.Text = "Language"; - // - //chkShowFullConnectionsFilePathInTitle - // - this.chkShowFullConnectionsFilePathInTitle.AutoSize = true; - this.chkShowFullConnectionsFilePathInTitle.Location = new System.Drawing.Point(3, 141); - this.chkShowFullConnectionsFilePathInTitle.Name = "chkShowFullConnectionsFilePathInTitle"; - this.chkShowFullConnectionsFilePathInTitle.Size = new System.Drawing.Size(239, 17); - this.chkShowFullConnectionsFilePathInTitle.TabIndex = 11; - this.chkShowFullConnectionsFilePathInTitle.Text = "Show full connections file path in window title"; - this.chkShowFullConnectionsFilePathInTitle.UseVisualStyleBackColor = true; - // - //chkShowDescriptionTooltipsInTree - // - this.chkShowDescriptionTooltipsInTree.AutoSize = true; - this.chkShowDescriptionTooltipsInTree.Location = new System.Drawing.Point(3, 118); - this.chkShowDescriptionTooltipsInTree.Name = "chkShowDescriptionTooltipsInTree"; - this.chkShowDescriptionTooltipsInTree.Size = new System.Drawing.Size(231, 17); - this.chkShowDescriptionTooltipsInTree.TabIndex = 10; - this.chkShowDescriptionTooltipsInTree.Text = "Show description tooltips in connection tree"; - this.chkShowDescriptionTooltipsInTree.UseVisualStyleBackColor = true; - // - //chkShowSystemTrayIcon - // - this.chkShowSystemTrayIcon.AutoSize = true; - this.chkShowSystemTrayIcon.Location = new System.Drawing.Point(3, 187); - this.chkShowSystemTrayIcon.Name = "chkShowSystemTrayIcon"; - this.chkShowSystemTrayIcon.Size = new System.Drawing.Size(172, 17); - this.chkShowSystemTrayIcon.TabIndex = 12; - this.chkShowSystemTrayIcon.Text = "Always show System Tray Icon"; - this.chkShowSystemTrayIcon.UseVisualStyleBackColor = true; - // - //chkMinimizeToSystemTray - // - this.chkMinimizeToSystemTray.AutoSize = true; - this.chkMinimizeToSystemTray.Location = new System.Drawing.Point(3, 210); - this.chkMinimizeToSystemTray.Name = "chkMinimizeToSystemTray"; - this.chkMinimizeToSystemTray.Size = new System.Drawing.Size(139, 17); - this.chkMinimizeToSystemTray.TabIndex = 13; - this.chkMinimizeToSystemTray.Text = "Minimize to System Tray"; - this.chkMinimizeToSystemTray.UseVisualStyleBackColor = true; - // - //AppearancePage - // - this.Controls.Add(this.lblLanguageRestartRequired); - this.Controls.Add(this.cboLanguage); - this.Controls.Add(this.lblLanguage); - this.Controls.Add(this.chkShowFullConnectionsFilePathInTitle); - this.Controls.Add(this.chkShowDescriptionTooltipsInTree); - this.Controls.Add(this.chkShowSystemTrayIcon); - this.Controls.Add(this.chkMinimizeToSystemTray); - this.Name = "AppearancePage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - this.ResumeLayout(false); - this.PerformLayout(); - - } - internal System.Windows.Forms.Label Label1; - internal System.Windows.Forms.Label lblLanguageRestartRequired; - internal System.Windows.Forms.ComboBox cboLanguage; - internal System.Windows.Forms.Label lblLanguage; - internal System.Windows.Forms.CheckBox chkShowFullConnectionsFilePathInTitle; - internal System.Windows.Forms.CheckBox chkShowDescriptionTooltipsInTree; - internal System.Windows.Forms.CheckBox chkShowSystemTrayIcon; - internal System.Windows.Forms.CheckBox chkMinimizeToSystemTray; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/AppearancePage.cs b/mRemoteV1/CS/Forms/OptionsPages/AppearancePage.cs deleted file mode 100644 index bee9805e0..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/AppearancePage.cs +++ /dev/null @@ -1,112 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using mRemoteNG.App; -using mRemoteNG.My; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class AppearancePage - { - public AppearancePage() - { - InitializeComponent(); - } -public override string PageName - { - get - { - return Language.strTabAppearance; - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - - lblLanguage.Text = Language.strLanguage; - lblLanguageRestartRequired.Text = string.Format(Language.strLanguageRestartRequired, Application.Info.ProductName); - chkShowDescriptionTooltipsInTree.Text = Language.strShowDescriptionTooltips; - chkShowFullConnectionsFilePathInTitle.Text = Language.strShowFullConsFilePath; - chkShowSystemTrayIcon.Text = Language.strAlwaysShowSysTrayIcon; - chkMinimizeToSystemTray.Text = Language.strMinimizeToSysTray; - } - - public override void LoadSettings() - { - base.SaveSettings(); - - cboLanguage.Items.Clear(); - cboLanguage.Items.Add(Language.strLanguageDefault); - - foreach (string nativeName in SupportedCultures.CultureNativeNames) - { - cboLanguage.Items.Add(nativeName); - } - if (!string.IsNullOrEmpty(Settings.OverrideUICulture) && SupportedCultures.IsNameSupported(Settings.OverrideUICulture)) - { - cboLanguage.SelectedItem = SupportedCultures.get_CultureNativeName(Settings.OverrideUICulture); - } - if (cboLanguage.SelectedIndex == -1) - { - cboLanguage.SelectedIndex = 0; - } - - chkShowDescriptionTooltipsInTree.Checked = Settings.ShowDescriptionTooltipsInTree; - chkShowFullConnectionsFilePathInTitle.Checked = Settings.ShowCompleteConsPathInTitle; - chkShowSystemTrayIcon.Checked = Settings.ShowSystemTrayIcon; - chkMinimizeToSystemTray.Checked = Settings.MinimizeToTray; - } - - public override void SaveSettings() - { - base.SaveSettings(); - - if (cboLanguage.SelectedIndex > 0 && SupportedCultures.IsNativeNameSupported(System.Convert.ToString(cboLanguage.SelectedItem))) - { - Settings.OverrideUICulture = SupportedCultures.get_CultureName(System.Convert.ToString(cboLanguage.SelectedItem)); - } - else - { - Settings.OverrideUICulture = string.Empty; - } - - Settings.ShowDescriptionTooltipsInTree = chkShowDescriptionTooltipsInTree.Checked; - Settings.ShowCompleteConsPathInTitle = chkShowFullConnectionsFilePathInTitle.Checked; - frmMain.Default.ShowFullPathInTitle = chkShowFullConnectionsFilePathInTitle.Checked; - - Settings.ShowSystemTrayIcon = chkShowSystemTrayIcon.Checked; - if (Settings.ShowSystemTrayIcon) - { - if (Runtime.NotificationAreaIcon == null) - { - Runtime.NotificationAreaIcon = new Tools.Controls.NotificationAreaIcon(); - } - } - else - { - if (Runtime.NotificationAreaIcon != null) - { - Runtime.NotificationAreaIcon.Dispose(); - Runtime.NotificationAreaIcon = null; - } - } - - Settings.MinimizeToTray = chkMinimizeToSystemTray.Checked; - } - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.Designer.cs deleted file mode 100644 index f530920b7..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.Designer.cs +++ /dev/null @@ -1,414 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class ConnectionsPage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConnectionsPage)); - this.pnlRdpReconnectionCount = new System.Windows.Forms.Panel(); - this.lblRdpReconnectionCount = new System.Windows.Forms.Label(); - this.numRdpReconnectionCount = new System.Windows.Forms.NumericUpDown(); - this.chkSingleClickOnConnectionOpensIt = new System.Windows.Forms.CheckBox(); - this.chkHostnameLikeDisplayName = new System.Windows.Forms.CheckBox(); - this.pnlDefaultCredentials = new System.Windows.Forms.Panel(); - this.radCredentialsCustom = new System.Windows.Forms.RadioButton(); - this.radCredentialsCustom.CheckedChanged += new System.EventHandler(this.radCredentialsCustom_CheckedChanged); - this.lblDefaultCredentials = new System.Windows.Forms.Label(); - this.radCredentialsNoInfo = new System.Windows.Forms.RadioButton(); - this.radCredentialsWindows = new System.Windows.Forms.RadioButton(); - this.txtCredentialsDomain = new System.Windows.Forms.TextBox(); - this.lblCredentialsUsername = new System.Windows.Forms.Label(); - this.txtCredentialsPassword = new System.Windows.Forms.TextBox(); - this.lblCredentialsPassword = new System.Windows.Forms.Label(); - this.txtCredentialsUsername = new System.Windows.Forms.TextBox(); - this.lblCredentialsDomain = new System.Windows.Forms.Label(); - this.chkSingleClickOnOpenedConnectionSwitchesToIt = new System.Windows.Forms.CheckBox(); - this.pnlAutoSave = new System.Windows.Forms.Panel(); - this.lblAutoSave1 = new System.Windows.Forms.Label(); - this.numAutoSave = new System.Windows.Forms.NumericUpDown(); - this.lblAutoSave2 = new System.Windows.Forms.Label(); - this.pnlConfirmCloseConnection = new System.Windows.Forms.Panel(); - this.lblClosingConnections = new System.Windows.Forms.Label(); - this.radCloseWarnAll = new System.Windows.Forms.RadioButton(); - this.radCloseWarnMultiple = new System.Windows.Forms.RadioButton(); - this.radCloseWarnExit = new System.Windows.Forms.RadioButton(); - this.radCloseWarnNever = new System.Windows.Forms.RadioButton(); - this.pnlRdpReconnectionCount.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize) this.numRdpReconnectionCount).BeginInit(); - this.pnlDefaultCredentials.SuspendLayout(); - this.pnlAutoSave.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize) this.numAutoSave).BeginInit(); - this.pnlConfirmCloseConnection.SuspendLayout(); - this.SuspendLayout(); - // - //pnlRdpReconnectionCount - // - this.pnlRdpReconnectionCount.Controls.Add(this.lblRdpReconnectionCount); - this.pnlRdpReconnectionCount.Controls.Add(this.numRdpReconnectionCount); - this.pnlRdpReconnectionCount.Location = new System.Drawing.Point(3, 69); - this.pnlRdpReconnectionCount.Name = "pnlRdpReconnectionCount"; - this.pnlRdpReconnectionCount.Size = new System.Drawing.Size(596, 29); - this.pnlRdpReconnectionCount.TabIndex = 10; - // - //lblRdpReconnectionCount - // - this.lblRdpReconnectionCount.Location = new System.Drawing.Point(6, 9); - this.lblRdpReconnectionCount.Name = "lblRdpReconnectionCount"; - this.lblRdpReconnectionCount.Size = new System.Drawing.Size(288, 13); - this.lblRdpReconnectionCount.TabIndex = 0; - this.lblRdpReconnectionCount.Text = "RDP Reconnection Count"; - this.lblRdpReconnectionCount.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //numRdpReconnectionCount - // - this.numRdpReconnectionCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.numRdpReconnectionCount.Location = new System.Drawing.Point(300, 7); - this.numRdpReconnectionCount.Maximum = new decimal(new int[] {20, 0, 0, 0}); - this.numRdpReconnectionCount.Name = "numRdpReconnectionCount"; - this.numRdpReconnectionCount.Size = new System.Drawing.Size(53, 20); - this.numRdpReconnectionCount.TabIndex = 1; - this.numRdpReconnectionCount.Value = new decimal(new int[] {5, 0, 0, 0}); - // - //chkSingleClickOnConnectionOpensIt - // - this.chkSingleClickOnConnectionOpensIt.AutoSize = true; - this.chkSingleClickOnConnectionOpensIt.Location = new System.Drawing.Point(3, 0); - this.chkSingleClickOnConnectionOpensIt.Name = "chkSingleClickOnConnectionOpensIt"; - this.chkSingleClickOnConnectionOpensIt.Size = new System.Drawing.Size(191, 17); - this.chkSingleClickOnConnectionOpensIt.TabIndex = 7; - this.chkSingleClickOnConnectionOpensIt.Text = "Single click on connection opens it"; - this.chkSingleClickOnConnectionOpensIt.UseVisualStyleBackColor = true; - // - //chkHostnameLikeDisplayName - // - this.chkHostnameLikeDisplayName.AutoSize = true; - this.chkHostnameLikeDisplayName.Location = new System.Drawing.Point(3, 46); - this.chkHostnameLikeDisplayName.Name = "chkHostnameLikeDisplayName"; - this.chkHostnameLikeDisplayName.Size = new System.Drawing.Size(328, 17); - this.chkHostnameLikeDisplayName.TabIndex = 9; - this.chkHostnameLikeDisplayName.Text = "Set hostname like display name when creating new connections"; - this.chkHostnameLikeDisplayName.UseVisualStyleBackColor = true; - // - //pnlDefaultCredentials - // - this.pnlDefaultCredentials.Controls.Add(this.radCredentialsCustom); - this.pnlDefaultCredentials.Controls.Add(this.lblDefaultCredentials); - this.pnlDefaultCredentials.Controls.Add(this.radCredentialsNoInfo); - this.pnlDefaultCredentials.Controls.Add(this.radCredentialsWindows); - this.pnlDefaultCredentials.Controls.Add(this.txtCredentialsDomain); - this.pnlDefaultCredentials.Controls.Add(this.lblCredentialsUsername); - this.pnlDefaultCredentials.Controls.Add(this.txtCredentialsPassword); - this.pnlDefaultCredentials.Controls.Add(this.lblCredentialsPassword); - this.pnlDefaultCredentials.Controls.Add(this.txtCredentialsUsername); - this.pnlDefaultCredentials.Controls.Add(this.lblCredentialsDomain); - this.pnlDefaultCredentials.Location = new System.Drawing.Point(3, 139); - this.pnlDefaultCredentials.Name = "pnlDefaultCredentials"; - this.pnlDefaultCredentials.Size = new System.Drawing.Size(596, 175); - this.pnlDefaultCredentials.TabIndex = 12; - // - //radCredentialsCustom - // - this.radCredentialsCustom.AutoSize = true; - this.radCredentialsCustom.Location = new System.Drawing.Point(16, 69); - this.radCredentialsCustom.Name = "radCredentialsCustom"; - this.radCredentialsCustom.Size = new System.Drawing.Size(87, 17); - this.radCredentialsCustom.TabIndex = 3; - this.radCredentialsCustom.Text = "the following:"; - this.radCredentialsCustom.UseVisualStyleBackColor = true; - // - //lblDefaultCredentials - // - this.lblDefaultCredentials.AutoSize = true; - this.lblDefaultCredentials.Location = new System.Drawing.Point(3, 9); - this.lblDefaultCredentials.Name = "lblDefaultCredentials"; - this.lblDefaultCredentials.Size = new System.Drawing.Size(257, 13); - this.lblDefaultCredentials.TabIndex = 0; - this.lblDefaultCredentials.Text = "For empty Username, Password or Domain fields use:"; - // - //radCredentialsNoInfo - // - this.radCredentialsNoInfo.AutoSize = true; - this.radCredentialsNoInfo.Checked = true; - this.radCredentialsNoInfo.Location = new System.Drawing.Point(16, 31); - this.radCredentialsNoInfo.Name = "radCredentialsNoInfo"; - this.radCredentialsNoInfo.Size = new System.Drawing.Size(91, 17); - this.radCredentialsNoInfo.TabIndex = 1; - this.radCredentialsNoInfo.TabStop = true; - this.radCredentialsNoInfo.Text = "no information"; - this.radCredentialsNoInfo.UseVisualStyleBackColor = true; - // - //radCredentialsWindows - // - this.radCredentialsWindows.AutoSize = true; - this.radCredentialsWindows.Location = new System.Drawing.Point(16, 50); - this.radCredentialsWindows.Name = "radCredentialsWindows"; - this.radCredentialsWindows.Size = new System.Drawing.Size(227, 17); - this.radCredentialsWindows.TabIndex = 2; - this.radCredentialsWindows.Text = "my current credentials (windows logon info)"; - this.radCredentialsWindows.UseVisualStyleBackColor = true; - // - //txtCredentialsDomain - // - this.txtCredentialsDomain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtCredentialsDomain.Enabled = false; - this.txtCredentialsDomain.Location = new System.Drawing.Point(140, 147); - this.txtCredentialsDomain.Name = "txtCredentialsDomain"; - this.txtCredentialsDomain.Size = new System.Drawing.Size(150, 20); - this.txtCredentialsDomain.TabIndex = 9; - // - //lblCredentialsUsername - // - this.lblCredentialsUsername.Enabled = false; - this.lblCredentialsUsername.Location = new System.Drawing.Point(37, 95); - this.lblCredentialsUsername.Name = "lblCredentialsUsername"; - this.lblCredentialsUsername.Size = new System.Drawing.Size(97, 13); - this.lblCredentialsUsername.TabIndex = 4; - this.lblCredentialsUsername.Text = "Username:"; - this.lblCredentialsUsername.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //txtCredentialsPassword - // - this.txtCredentialsPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtCredentialsPassword.Enabled = false; - this.txtCredentialsPassword.Location = new System.Drawing.Point(140, 120); - this.txtCredentialsPassword.Name = "txtCredentialsPassword"; - this.txtCredentialsPassword.Size = new System.Drawing.Size(150, 20); - this.txtCredentialsPassword.TabIndex = 7; - this.txtCredentialsPassword.UseSystemPasswordChar = true; - // - //lblCredentialsPassword - // - this.lblCredentialsPassword.Enabled = false; - this.lblCredentialsPassword.Location = new System.Drawing.Point(34, 123); - this.lblCredentialsPassword.Name = "lblCredentialsPassword"; - this.lblCredentialsPassword.Size = new System.Drawing.Size(100, 13); - this.lblCredentialsPassword.TabIndex = 6; - this.lblCredentialsPassword.Text = "Password:"; - this.lblCredentialsPassword.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //txtCredentialsUsername - // - this.txtCredentialsUsername.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtCredentialsUsername.Enabled = false; - this.txtCredentialsUsername.Location = new System.Drawing.Point(140, 93); - this.txtCredentialsUsername.Name = "txtCredentialsUsername"; - this.txtCredentialsUsername.Size = new System.Drawing.Size(150, 20); - this.txtCredentialsUsername.TabIndex = 5; - // - //lblCredentialsDomain - // - this.lblCredentialsDomain.Enabled = false; - this.lblCredentialsDomain.Location = new System.Drawing.Point(34, 150); - this.lblCredentialsDomain.Name = "lblCredentialsDomain"; - this.lblCredentialsDomain.Size = new System.Drawing.Size(100, 13); - this.lblCredentialsDomain.TabIndex = 8; - this.lblCredentialsDomain.Text = "Domain:"; - this.lblCredentialsDomain.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //chkSingleClickOnOpenedConnectionSwitchesToIt - // - this.chkSingleClickOnOpenedConnectionSwitchesToIt.AutoSize = true; - this.chkSingleClickOnOpenedConnectionSwitchesToIt.Location = new System.Drawing.Point(3, 23); - this.chkSingleClickOnOpenedConnectionSwitchesToIt.Name = "chkSingleClickOnOpenedConnectionSwitchesToIt"; - this.chkSingleClickOnOpenedConnectionSwitchesToIt.Size = new System.Drawing.Size(254, 17); - this.chkSingleClickOnOpenedConnectionSwitchesToIt.TabIndex = 8; - this.chkSingleClickOnOpenedConnectionSwitchesToIt.Text = "Single click on opened connection switches to it"; - this.chkSingleClickOnOpenedConnectionSwitchesToIt.UseVisualStyleBackColor = true; - // - //pnlAutoSave - // - this.pnlAutoSave.Controls.Add(this.lblAutoSave1); - this.pnlAutoSave.Controls.Add(this.numAutoSave); - this.pnlAutoSave.Controls.Add(this.lblAutoSave2); - this.pnlAutoSave.Location = new System.Drawing.Point(3, 104); - this.pnlAutoSave.Name = "pnlAutoSave"; - this.pnlAutoSave.Size = new System.Drawing.Size(596, 29); - this.pnlAutoSave.TabIndex = 11; - // - //lblAutoSave1 - // - this.lblAutoSave1.Location = new System.Drawing.Point(6, 9); - this.lblAutoSave1.Name = "lblAutoSave1"; - this.lblAutoSave1.Size = new System.Drawing.Size(288, 13); - this.lblAutoSave1.TabIndex = 0; - this.lblAutoSave1.Text = "Auto Save every:"; - this.lblAutoSave1.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //numAutoSave - // - this.numAutoSave.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.numAutoSave.Location = new System.Drawing.Point(300, 7); - this.numAutoSave.Maximum = new decimal(new int[] {9999, 0, 0, 0}); - this.numAutoSave.Name = "numAutoSave"; - this.numAutoSave.Size = new System.Drawing.Size(53, 20); - this.numAutoSave.TabIndex = 1; - // - //lblAutoSave2 - // - this.lblAutoSave2.AutoSize = true; - this.lblAutoSave2.Location = new System.Drawing.Point(359, 9); - this.lblAutoSave2.Name = "lblAutoSave2"; - this.lblAutoSave2.Size = new System.Drawing.Size(135, 13); - this.lblAutoSave2.TabIndex = 2; - this.lblAutoSave2.Text = "Minutes (0 means disabled)"; - // - //pnlConfirmCloseConnection - // - this.pnlConfirmCloseConnection.Controls.Add(this.lblClosingConnections); - this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnAll); - this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnMultiple); - this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnExit); - this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnNever); - this.pnlConfirmCloseConnection.Location = new System.Drawing.Point(3, 320); - this.pnlConfirmCloseConnection.Name = "pnlConfirmCloseConnection"; - this.pnlConfirmCloseConnection.Size = new System.Drawing.Size(596, 137); - this.pnlConfirmCloseConnection.TabIndex = 13; - // - //lblClosingConnections - // - this.lblClosingConnections.AutoSize = true; - this.lblClosingConnections.Location = new System.Drawing.Point(3, 9); - this.lblClosingConnections.Name = "lblClosingConnections"; - this.lblClosingConnections.Size = new System.Drawing.Size(136, 13); - this.lblClosingConnections.TabIndex = 0; - this.lblClosingConnections.Text = "When closing connections:"; - // - //radCloseWarnAll - // - this.radCloseWarnAll.AutoSize = true; - this.radCloseWarnAll.Location = new System.Drawing.Point(16, 31); - this.radCloseWarnAll.Name = "radCloseWarnAll"; - this.radCloseWarnAll.Size = new System.Drawing.Size(194, 17); - this.radCloseWarnAll.TabIndex = 1; - this.radCloseWarnAll.TabStop = true; - this.radCloseWarnAll.Text = "Warn me when closing connections"; - this.radCloseWarnAll.UseVisualStyleBackColor = true; - // - //radCloseWarnMultiple - // - this.radCloseWarnMultiple.AutoSize = true; - this.radCloseWarnMultiple.Location = new System.Drawing.Point(16, 54); - this.radCloseWarnMultiple.Name = "radCloseWarnMultiple"; - this.radCloseWarnMultiple.Size = new System.Drawing.Size(254, 17); - this.radCloseWarnMultiple.TabIndex = 2; - this.radCloseWarnMultiple.TabStop = true; - this.radCloseWarnMultiple.Text = "Warn me only when closing multiple connections"; - this.radCloseWarnMultiple.UseVisualStyleBackColor = true; - // - //radCloseWarnExit - // - this.radCloseWarnExit.AutoSize = true; - this.radCloseWarnExit.Location = new System.Drawing.Point(16, 77); - this.radCloseWarnExit.Name = "radCloseWarnExit"; - this.radCloseWarnExit.Size = new System.Drawing.Size(216, 17); - this.radCloseWarnExit.TabIndex = 3; - this.radCloseWarnExit.TabStop = true; - this.radCloseWarnExit.Text = "Warn me only when exiting mRemoteNG"; - this.radCloseWarnExit.UseVisualStyleBackColor = true; - // - //radCloseWarnNever - // - this.radCloseWarnNever.AutoSize = true; - this.radCloseWarnNever.Location = new System.Drawing.Point(16, 100); - this.radCloseWarnNever.Name = "radCloseWarnNever"; - this.radCloseWarnNever.Size = new System.Drawing.Size(226, 17); - this.radCloseWarnNever.TabIndex = 4; - this.radCloseWarnNever.TabStop = true; - this.radCloseWarnNever.Text = "Do not warn me when closing connections"; - this.radCloseWarnNever.UseVisualStyleBackColor = true; - // - //ConnectionsPage - // - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.pnlRdpReconnectionCount); - this.Controls.Add(this.chkSingleClickOnConnectionOpensIt); - this.Controls.Add(this.chkHostnameLikeDisplayName); - this.Controls.Add(this.pnlDefaultCredentials); - this.Controls.Add(this.chkSingleClickOnOpenedConnectionSwitchesToIt); - this.Controls.Add(this.pnlAutoSave); - this.Controls.Add(this.pnlConfirmCloseConnection); - this.Name = "ConnectionsPage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - this.pnlRdpReconnectionCount.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize) this.numRdpReconnectionCount).EndInit(); - this.pnlDefaultCredentials.ResumeLayout(false); - this.pnlDefaultCredentials.PerformLayout(); - this.pnlAutoSave.ResumeLayout(false); - this.pnlAutoSave.PerformLayout(); - ((System.ComponentModel.ISupportInitialize) this.numAutoSave).EndInit(); - this.pnlConfirmCloseConnection.ResumeLayout(false); - this.pnlConfirmCloseConnection.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - internal System.Windows.Forms.Panel pnlRdpReconnectionCount; - internal System.Windows.Forms.Label lblRdpReconnectionCount; - internal System.Windows.Forms.NumericUpDown numRdpReconnectionCount; - internal System.Windows.Forms.CheckBox chkSingleClickOnConnectionOpensIt; - internal System.Windows.Forms.CheckBox chkHostnameLikeDisplayName; - internal System.Windows.Forms.Panel pnlDefaultCredentials; - internal System.Windows.Forms.RadioButton radCredentialsCustom; - internal System.Windows.Forms.Label lblDefaultCredentials; - internal System.Windows.Forms.RadioButton radCredentialsNoInfo; - internal System.Windows.Forms.RadioButton radCredentialsWindows; - internal System.Windows.Forms.TextBox txtCredentialsDomain; - internal System.Windows.Forms.Label lblCredentialsUsername; - internal System.Windows.Forms.TextBox txtCredentialsPassword; - internal System.Windows.Forms.Label lblCredentialsPassword; - internal System.Windows.Forms.TextBox txtCredentialsUsername; - internal System.Windows.Forms.Label lblCredentialsDomain; - internal System.Windows.Forms.CheckBox chkSingleClickOnOpenedConnectionSwitchesToIt; - internal System.Windows.Forms.Panel pnlAutoSave; - internal System.Windows.Forms.Label lblAutoSave1; - internal System.Windows.Forms.NumericUpDown numAutoSave; - internal System.Windows.Forms.Label lblAutoSave2; - internal System.Windows.Forms.Panel pnlConfirmCloseConnection; - internal System.Windows.Forms.Label lblClosingConnections; - internal System.Windows.Forms.RadioButton radCloseWarnAll; - internal System.Windows.Forms.RadioButton radCloseWarnMultiple; - internal System.Windows.Forms.RadioButton radCloseWarnExit; - internal System.Windows.Forms.RadioButton radCloseWarnNever; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.cs b/mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.cs deleted file mode 100644 index 8f1533a62..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.cs +++ /dev/null @@ -1,182 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using mRemoteNG.My; -using mRemoteNG.Config; -//using mRemoteNG.App.Info; -using mRemoteNG.Security; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class ConnectionsPage - { - public ConnectionsPage() - { - InitializeComponent(); - } -public override string PageName - { - get - { - return Language.strConnections; - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - - chkSingleClickOnConnectionOpensIt.Text = Language.strSingleClickOnConnectionOpensIt; - chkSingleClickOnOpenedConnectionSwitchesToIt.Text = Language.strSingleClickOnOpenConnectionSwitchesToIt; - chkHostnameLikeDisplayName.Text = Language.strSetHostnameLikeDisplayName; - - lblRdpReconnectionCount.Text = Language.strRdpReconnectCount; - - lblAutoSave1.Text = Language.strAutoSaveEvery; - lblAutoSave2.Text = Language.strAutoSaveMins; - - lblDefaultCredentials.Text = Language.strEmptyUsernamePasswordDomainFields; - radCredentialsNoInfo.Text = Language.strNoInformation; - radCredentialsWindows.Text = Language.strMyCurrentWindowsCreds; - radCredentialsCustom.Text = Language.strTheFollowing; - lblCredentialsUsername.Text = Language.strLabelUsername; - lblCredentialsPassword.Text = Language.strLabelPassword; - lblCredentialsDomain.Text = Language.strLabelDomain; - - lblClosingConnections.Text = Language.strLabelClosingConnections; - radCloseWarnAll.Text = Language.strRadioCloseWarnAll; - radCloseWarnMultiple.Text = Language.strRadioCloseWarnMultiple; - radCloseWarnExit.Text = Language.strRadioCloseWarnExit; - radCloseWarnNever.Text = Language.strRadioCloseWarnNever; - } - - public override void LoadSettings() - { - base.SaveSettings(); - - chkSingleClickOnConnectionOpensIt.Checked = System.Convert.ToBoolean(My.Settings.Default.SingleClickOnConnectionOpensIt); - chkSingleClickOnOpenedConnectionSwitchesToIt.Checked = System.Convert.ToBoolean(My.Settings.Default.SingleClickSwitchesToOpenConnection); - chkHostnameLikeDisplayName.Checked = System.Convert.ToBoolean(My.Settings.Default.SetHostnameLikeDisplayName); - - numRdpReconnectionCount.Value = System.Convert.ToDecimal(My.Settings.Default.RdpReconnectionCount); - - numAutoSave.Value = System.Convert.ToDecimal(My.Settings.Default.AutoSaveEveryMinutes); - - // ReSharper disable once StringLiteralTypo - if ((string) My.Settings.Default.EmptyCredentials == "noinfo") - { - radCredentialsNoInfo.Checked = true; - } - else if ((string) My.Settings.Default.EmptyCredentials == "windows") - { - radCredentialsWindows.Checked = true; - } - else if ((string) My.Settings.Default.EmptyCredentials == "custom") - { - radCredentialsCustom.Checked = true; - } - - txtCredentialsUsername.Text = System.Convert.ToString(My.Settings.Default.DefaultUsername); - txtCredentialsPassword.Text = Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.DefaultPassword), App.Info.General.EncryptionKey); - txtCredentialsDomain.Text = System.Convert.ToString(My.Settings.Default.DefaultDomain); - - if (My.Settings.Default.ConfirmCloseConnection == ConfirmClose.Never) - { - radCloseWarnNever.Checked = true; - } - else if (My.Settings.Default.ConfirmCloseConnection == ConfirmClose.Exit) - { - radCloseWarnExit.Checked = true; - } - else if (My.Settings.Default.ConfirmCloseConnection == ConfirmClose.Multiple) - { - radCloseWarnMultiple.Checked = true; - } - else - { - radCloseWarnAll.Checked = true; - } - } - - public override void SaveSettings() - { - base.SaveSettings(); - - My.Settings.Default.SingleClickOnConnectionOpensIt = chkSingleClickOnConnectionOpensIt.Checked; - My.Settings.Default.SingleClickSwitchesToOpenConnection = chkSingleClickOnOpenedConnectionSwitchesToIt.Checked; - My.Settings.Default.SetHostnameLikeDisplayName = chkHostnameLikeDisplayName.Checked; - - My.Settings.Default.RdpReconnectionCount = numRdpReconnectionCount.Value; - - My.Settings.Default.AutoSaveEveryMinutes = numAutoSave.Value; - if (My.Settings.Default.AutoSaveEveryMinutes > 0) - { - frmMain.Default.tmrAutoSave.Interval = System.Convert.ToInt32(My.Settings.Default.AutoSaveEveryMinutes * 60000); - frmMain.Default.tmrAutoSave.Enabled = true; - } - else - { - frmMain.Default.tmrAutoSave.Enabled = false; - } - - if (radCredentialsNoInfo.Checked) - { - // ReSharper disable once StringLiteralTypo - My.Settings.Default.EmptyCredentials = "noinfo"; - } - else if (radCredentialsWindows.Checked) - { - My.Settings.Default.EmptyCredentials = "windows"; - } - else if (radCredentialsCustom.Checked) - { - My.Settings.Default.EmptyCredentials = "custom"; - } - - My.Settings.Default.DefaultUsername = txtCredentialsUsername.Text; - My.Settings.Default.DefaultPassword = Crypt.Encrypt(txtCredentialsPassword.Text, App.Info.General.EncryptionKey); - My.Settings.Default.DefaultDomain = txtCredentialsDomain.Text; - - if (radCloseWarnAll.Checked) - { - My.Settings.Default.ConfirmCloseConnection = ConfirmClose.All; - } - if (radCloseWarnMultiple.Checked) - { - My.Settings.Default.ConfirmCloseConnection = ConfirmClose.Multiple; - } - if (radCloseWarnExit.Checked) - { - My.Settings.Default.ConfirmCloseConnection = ConfirmClose.Exit; - } - if (radCloseWarnNever.Checked) - { - My.Settings.Default.ConfirmCloseConnection = ConfirmClose.Never; - } - } - - public void radCredentialsCustom_CheckedChanged(object sender, EventArgs e) - { - lblCredentialsUsername.Enabled = radCredentialsCustom.Checked; - lblCredentialsPassword.Enabled = radCredentialsCustom.Checked; - lblCredentialsDomain.Enabled = radCredentialsCustom.Checked; - txtCredentialsUsername.Enabled = radCredentialsCustom.Checked; - txtCredentialsPassword.Enabled = radCredentialsCustom.Checked; - txtCredentialsDomain.Enabled = radCredentialsCustom.Checked; - } - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/OptionsPage.cs b/mRemoteV1/CS/Forms/OptionsPages/OptionsPage.cs deleted file mode 100644 index 35ab0b2cf..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/OptionsPage.cs +++ /dev/null @@ -1,54 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using System.ComponentModel; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public class OptionsPage : UserControl - { - public OptionsPage() - { - InitializeComponent(); - } - -#region Public Properties - [Browsable(false)]public virtual string PageName {get; set;} - - public virtual Icon PageIcon {get; set;} -#endregion - -#region Public Methods - public virtual void ApplyLanguage() - { - - } - - public virtual void LoadSettings() - { - - } - - public virtual void SaveSettings() - { - - } - - public virtual void RevertSettings() - { - - } -#endregion - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.Designer.cs deleted file mode 100644 index 18513d674..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.Designer.cs +++ /dev/null @@ -1,210 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class SqlServerPage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SqlServerPage)); - this.lblSQLDatabaseName = new System.Windows.Forms.Label(); - this.txtSQLDatabaseName = new System.Windows.Forms.TextBox(); - this.lblExperimental = new System.Windows.Forms.Label(); - this.chkUseSQLServer = new System.Windows.Forms.CheckBox(); - this.chkUseSQLServer.CheckedChanged += new System.EventHandler(this.chkUseSQLServer_CheckedChanged); - this.lblSQLUsername = new System.Windows.Forms.Label(); - this.txtSQLPassword = new System.Windows.Forms.TextBox(); - this.lblSQLInfo = new System.Windows.Forms.Label(); - this.lblSQLServer = new System.Windows.Forms.Label(); - this.txtSQLUsername = new System.Windows.Forms.TextBox(); - this.txtSQLServer = new System.Windows.Forms.TextBox(); - this.lblSQLPassword = new System.Windows.Forms.Label(); - this.SuspendLayout(); - // - //lblSQLDatabaseName - // - this.lblSQLDatabaseName.Enabled = false; - this.lblSQLDatabaseName.Location = new System.Drawing.Point(23, 132); - this.lblSQLDatabaseName.Name = "lblSQLDatabaseName"; - this.lblSQLDatabaseName.Size = new System.Drawing.Size(111, 13); - this.lblSQLDatabaseName.TabIndex = 16; - this.lblSQLDatabaseName.Text = "Database:"; - this.lblSQLDatabaseName.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //txtSQLDatabaseName - // - this.txtSQLDatabaseName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtSQLDatabaseName.Enabled = false; - this.txtSQLDatabaseName.Location = new System.Drawing.Point(140, 130); - this.txtSQLDatabaseName.Name = "txtSQLDatabaseName"; - this.txtSQLDatabaseName.Size = new System.Drawing.Size(153, 20); - this.txtSQLDatabaseName.TabIndex = 17; - // - //lblExperimental - // - this.lblExperimental.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.lblExperimental.Font = new System.Drawing.Font("Segoe UI", (float) (12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World); - this.lblExperimental.ForeColor = System.Drawing.Color.FromArgb(System.Convert.ToInt32(System.Convert.ToByte(192)), System.Convert.ToInt32(System.Convert.ToByte(0)), System.Convert.ToInt32(System.Convert.ToByte(0))); - this.lblExperimental.Location = new System.Drawing.Point(3, 0); - this.lblExperimental.Name = "lblExperimental"; - this.lblExperimental.Size = new System.Drawing.Size(596, 25); - this.lblExperimental.TabIndex = 11; - this.lblExperimental.Text = "EXPERIMENTAL"; - this.lblExperimental.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - //chkUseSQLServer - // - this.chkUseSQLServer.AutoSize = true; - this.chkUseSQLServer.Location = new System.Drawing.Point(3, 76); - this.chkUseSQLServer.Name = "chkUseSQLServer"; - this.chkUseSQLServer.Size = new System.Drawing.Size(234, 17); - this.chkUseSQLServer.TabIndex = 13; - this.chkUseSQLServer.Text = "Use SQL Server to load && save connections"; - this.chkUseSQLServer.UseVisualStyleBackColor = true; - // - //lblSQLUsername - // - this.lblSQLUsername.Enabled = false; - this.lblSQLUsername.Location = new System.Drawing.Point(23, 158); - this.lblSQLUsername.Name = "lblSQLUsername"; - this.lblSQLUsername.Size = new System.Drawing.Size(111, 13); - this.lblSQLUsername.TabIndex = 18; - this.lblSQLUsername.Text = "Username:"; - this.lblSQLUsername.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //txtSQLPassword - // - this.txtSQLPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtSQLPassword.Enabled = false; - this.txtSQLPassword.Location = new System.Drawing.Point(140, 182); - this.txtSQLPassword.Name = "txtSQLPassword"; - this.txtSQLPassword.Size = new System.Drawing.Size(153, 20); - this.txtSQLPassword.TabIndex = 21; - this.txtSQLPassword.UseSystemPasswordChar = true; - // - //lblSQLInfo - // - this.lblSQLInfo.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.lblSQLInfo.Font = new System.Drawing.Font("Segoe UI", (float) (12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World); - this.lblSQLInfo.ForeColor = System.Drawing.Color.FromArgb(System.Convert.ToInt32(System.Convert.ToByte(192)), System.Convert.ToInt32(System.Convert.ToByte(0)), System.Convert.ToInt32(System.Convert.ToByte(0))); - this.lblSQLInfo.Location = new System.Drawing.Point(3, 25); - this.lblSQLInfo.Name = "lblSQLInfo"; - this.lblSQLInfo.Size = new System.Drawing.Size(596, 25); - this.lblSQLInfo.TabIndex = 12; - this.lblSQLInfo.Text = "Please see Help - Getting started - SQL Configuration for more Info!"; - this.lblSQLInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - //lblSQLServer - // - this.lblSQLServer.Enabled = false; - this.lblSQLServer.Location = new System.Drawing.Point(23, 106); - this.lblSQLServer.Name = "lblSQLServer"; - this.lblSQLServer.Size = new System.Drawing.Size(111, 13); - this.lblSQLServer.TabIndex = 14; - this.lblSQLServer.Text = "SQL Server:"; - this.lblSQLServer.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //txtSQLUsername - // - this.txtSQLUsername.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtSQLUsername.Enabled = false; - this.txtSQLUsername.Location = new System.Drawing.Point(140, 156); - this.txtSQLUsername.Name = "txtSQLUsername"; - this.txtSQLUsername.Size = new System.Drawing.Size(153, 20); - this.txtSQLUsername.TabIndex = 19; - // - //txtSQLServer - // - this.txtSQLServer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtSQLServer.Enabled = false; - this.txtSQLServer.Location = new System.Drawing.Point(140, 103); - this.txtSQLServer.Name = "txtSQLServer"; - this.txtSQLServer.Size = new System.Drawing.Size(153, 20); - this.txtSQLServer.TabIndex = 15; - // - //lblSQLPassword - // - this.lblSQLPassword.Enabled = false; - this.lblSQLPassword.Location = new System.Drawing.Point(23, 184); - this.lblSQLPassword.Name = "lblSQLPassword"; - this.lblSQLPassword.Size = new System.Drawing.Size(111, 13); - this.lblSQLPassword.TabIndex = 20; - this.lblSQLPassword.Text = "Password:"; - this.lblSQLPassword.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - //SqlServerPage - // - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.lblSQLDatabaseName); - this.Controls.Add(this.txtSQLDatabaseName); - this.Controls.Add(this.lblExperimental); - this.Controls.Add(this.chkUseSQLServer); - this.Controls.Add(this.lblSQLUsername); - this.Controls.Add(this.txtSQLPassword); - this.Controls.Add(this.lblSQLInfo); - this.Controls.Add(this.lblSQLServer); - this.Controls.Add(this.txtSQLUsername); - this.Controls.Add(this.txtSQLServer); - this.Controls.Add(this.lblSQLPassword); - this.Name = "SqlServerPage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - this.ResumeLayout(false); - this.PerformLayout(); - - } - internal System.Windows.Forms.Label lblSQLDatabaseName; - internal System.Windows.Forms.TextBox txtSQLDatabaseName; - internal System.Windows.Forms.Label lblExperimental; - internal System.Windows.Forms.CheckBox chkUseSQLServer; - internal System.Windows.Forms.Label lblSQLUsername; - internal System.Windows.Forms.TextBox txtSQLPassword; - internal System.Windows.Forms.Label lblSQLInfo; - internal System.Windows.Forms.Label lblSQLServer; - internal System.Windows.Forms.TextBox txtSQLUsername; - internal System.Windows.Forms.TextBox txtSQLServer; - internal System.Windows.Forms.Label lblSQLPassword; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.cs b/mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.cs deleted file mode 100644 index 8febc661f..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.cs +++ /dev/null @@ -1,94 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using mRemoteNG.My; -using mRemoteNG.App; -//using mRemoteNG.App.Info; -using mRemoteNG.Security; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class SqlServerPage - { - public SqlServerPage() - { - InitializeComponent(); - } -public override string PageName - { - get - { - return Language.strSQLServer.TrimEnd(':'); - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - - lblExperimental.Text = Language.strExperimental.ToUpper(); - lblSQLInfo.Text = Language.strSQLInfo; - - chkUseSQLServer.Text = Language.strUseSQLServer; - lblSQLServer.Text = Language.strLabelHostname; - lblSQLDatabaseName.Text = Language.strLabelSQLServerDatabaseName; - lblSQLUsername.Text = Language.strLabelUsername; - lblSQLPassword.Text = Language.strLabelPassword; - } - - public override void LoadSettings() - { - base.SaveSettings(); - - chkUseSQLServer.Checked = System.Convert.ToBoolean(My.Settings.Default.UseSQLServer); - txtSQLServer.Text = System.Convert.ToString(My.Settings.Default.SQLHost); - txtSQLDatabaseName.Text = System.Convert.ToString(My.Settings.Default.SQLDatabaseName); - txtSQLUsername.Text = System.Convert.ToString(My.Settings.Default.SQLUser); - txtSQLPassword.Text = Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.SQLPass), App.Info.General.EncryptionKey); - } - - public override void SaveSettings() - { - base.SaveSettings(); - - My.Settings.Default.UseSQLServer = chkUseSQLServer.Checked; - My.Settings.Default.SQLHost = txtSQLServer.Text; - My.Settings.Default.SQLDatabaseName = txtSQLDatabaseName.Text; - My.Settings.Default.SQLUser = txtSQLUsername.Text; - My.Settings.Default.SQLPass = Crypt.Encrypt(txtSQLPassword.Text, App.Info.General.EncryptionKey); - - Runtime.Startup.DestroySQLUpdateHandlerAndStopTimer(); - frmMain.Default.UsingSqlServer = System.Convert.ToBoolean(My.Settings.Default.UseSQLServer); - if (My.Settings.Default.UseSQLServer) - { - Runtime.Startup.CreateSQLUpdateHandlerAndStartTimer(); - } - } - - public void chkUseSQLServer_CheckedChanged(object sender, EventArgs e) - { - lblSQLServer.Enabled = chkUseSQLServer.Checked; - lblSQLDatabaseName.Enabled = chkUseSQLServer.Checked; - lblSQLUsername.Enabled = chkUseSQLServer.Checked; - lblSQLPassword.Enabled = chkUseSQLServer.Checked; - txtSQLServer.Enabled = chkUseSQLServer.Checked; - txtSQLDatabaseName.Enabled = chkUseSQLServer.Checked; - txtSQLUsername.Enabled = chkUseSQLServer.Checked; - txtSQLPassword.Enabled = chkUseSQLServer.Checked; - } - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.Designer.cs deleted file mode 100644 index 690099ca3..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.Designer.cs +++ /dev/null @@ -1,114 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class StartupExitPage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StartupExitPage)); - this.chkReconnectOnStart = new System.Windows.Forms.CheckBox(); - base.Load += new System.EventHandler(StartupExitPage_Load); - this.chkSaveConsOnExit = new System.Windows.Forms.CheckBox(); - this.chkSingleInstance = new System.Windows.Forms.CheckBox(); - this.chkProperInstallationOfComponentsAtStartup = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - //chkReconnectOnStart - // - this.chkReconnectOnStart.AutoSize = true; - this.chkReconnectOnStart.Location = new System.Drawing.Point(3, 24); - this.chkReconnectOnStart.Name = "chkReconnectOnStart"; - this.chkReconnectOnStart.Size = new System.Drawing.Size(273, 17); - this.chkReconnectOnStart.TabIndex = 7; - this.chkReconnectOnStart.Text = "Reconnect to previously opened sessions on startup"; - this.chkReconnectOnStart.UseVisualStyleBackColor = true; - // - //chkSaveConsOnExit - // - this.chkSaveConsOnExit.AutoSize = true; - this.chkSaveConsOnExit.Location = new System.Drawing.Point(3, 0); - this.chkSaveConsOnExit.Name = "chkSaveConsOnExit"; - this.chkSaveConsOnExit.Size = new System.Drawing.Size(146, 17); - this.chkSaveConsOnExit.TabIndex = 6; - this.chkSaveConsOnExit.Text = "Save connections on exit"; - this.chkSaveConsOnExit.UseVisualStyleBackColor = true; - // - //chkSingleInstance - // - this.chkSingleInstance.AutoSize = true; - this.chkSingleInstance.Location = new System.Drawing.Point(3, 48); - this.chkSingleInstance.Name = "chkSingleInstance"; - this.chkSingleInstance.Size = new System.Drawing.Size(366, 17); - this.chkSingleInstance.TabIndex = 8; - this.chkSingleInstance.Text = "Allow only a single instance of the application (mRemote restart required)"; - this.chkSingleInstance.UseVisualStyleBackColor = true; - // - //chkProperInstallationOfComponentsAtStartup - // - this.chkProperInstallationOfComponentsAtStartup.AutoSize = true; - this.chkProperInstallationOfComponentsAtStartup.Location = new System.Drawing.Point(3, 72); - this.chkProperInstallationOfComponentsAtStartup.Name = "chkProperInstallationOfComponentsAtStartup"; - this.chkProperInstallationOfComponentsAtStartup.Size = new System.Drawing.Size(262, 17); - this.chkProperInstallationOfComponentsAtStartup.TabIndex = 9; - this.chkProperInstallationOfComponentsAtStartup.Text = "Check proper installation of components at startup"; - this.chkProperInstallationOfComponentsAtStartup.UseVisualStyleBackColor = true; - // - //StartupExitPage - // - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.chkReconnectOnStart); - this.Controls.Add(this.chkSaveConsOnExit); - this.Controls.Add(this.chkSingleInstance); - this.Controls.Add(this.chkProperInstallationOfComponentsAtStartup); - this.Name = "StartupExitPage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - this.ResumeLayout(false); - this.PerformLayout(); - - } - internal System.Windows.Forms.CheckBox chkReconnectOnStart; - internal System.Windows.Forms.CheckBox chkSaveConsOnExit; - internal System.Windows.Forms.CheckBox chkSingleInstance; - internal System.Windows.Forms.CheckBox chkProperInstallationOfComponentsAtStartup; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.cs b/mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.cs deleted file mode 100644 index 610e2c577..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.cs +++ /dev/null @@ -1,64 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using mRemoteNG.My; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class StartupExitPage - { - public StartupExitPage() - { - InitializeComponent(); - } -public override string PageName - { - get - { - return Language.strStartupExit; - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - - chkSaveConsOnExit.Text = Language.strSaveConsOnExit; - chkReconnectOnStart.Text = Language.strReconnectAtStartup; - chkSingleInstance.Text = Language.strAllowOnlySingleInstance; - chkProperInstallationOfComponentsAtStartup.Text = Language.strCheckProperInstallationOfComponentsAtStartup; - } - - public override void SaveSettings() - { - base.SaveSettings(); - - Settings.SaveConsOnExit = chkSaveConsOnExit.Checked; - Settings.OpenConsFromLastSession = chkReconnectOnStart.Checked; - Settings.SingleInstance = chkSingleInstance.Checked; - Settings.StartupComponentsCheck = chkProperInstallationOfComponentsAtStartup.Checked; - } - - public void StartupExitPage_Load(System.Object sender, EventArgs e) - { - chkSaveConsOnExit.Checked = Settings.SaveConsOnExit; - chkReconnectOnStart.Checked = Settings.OpenConsFromLastSession; - chkSingleInstance.Checked = Settings.SingleInstance; - chkProperInstallationOfComponentsAtStartup.Checked = Settings.StartupComponentsCheck; - } - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.Designer.cs deleted file mode 100644 index f0c04391c..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.Designer.cs +++ /dev/null @@ -1,220 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class TabsPanelsPage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TabsPanelsPage)); - this.chkAlwaysShowPanelTabs = new System.Windows.Forms.CheckBox(); - this.chkIdentifyQuickConnectTabs = new System.Windows.Forms.CheckBox(); - this.chkUseOnlyErrorsAndInfosPanel = new System.Windows.Forms.CheckBox(); - this.chkUseOnlyErrorsAndInfosPanel.CheckedChanged += new System.EventHandler(this.chkUseOnlyErrorsAndInfosPanel_CheckedChanged); - this.chkOpenNewTabRightOfSelected = new System.Windows.Forms.CheckBox(); - this.lblSwitchToErrorsAndInfos = new System.Windows.Forms.Label(); - this.chkAlwaysShowPanelSelectionDlg = new System.Windows.Forms.CheckBox(); - this.chkMCInformation = new System.Windows.Forms.CheckBox(); - this.chkShowLogonInfoOnTabs = new System.Windows.Forms.CheckBox(); - this.chkMCErrors = new System.Windows.Forms.CheckBox(); - this.chkDoubleClickClosesTab = new System.Windows.Forms.CheckBox(); - this.chkMCWarnings = new System.Windows.Forms.CheckBox(); - this.chkShowProtocolOnTabs = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - //chkAlwaysShowPanelTabs - // - this.chkAlwaysShowPanelTabs.AutoSize = true; - this.chkAlwaysShowPanelTabs.Location = new System.Drawing.Point(3, 0); - this.chkAlwaysShowPanelTabs.Name = "chkAlwaysShowPanelTabs"; - this.chkAlwaysShowPanelTabs.Size = new System.Drawing.Size(139, 17); - this.chkAlwaysShowPanelTabs.TabIndex = 12; - this.chkAlwaysShowPanelTabs.Text = "Always show panel tabs"; - this.chkAlwaysShowPanelTabs.UseVisualStyleBackColor = true; - // - //chkIdentifyQuickConnectTabs - // - this.chkIdentifyQuickConnectTabs.AutoSize = true; - this.chkIdentifyQuickConnectTabs.Location = new System.Drawing.Point(3, 92); - this.chkIdentifyQuickConnectTabs.Name = "chkIdentifyQuickConnectTabs"; - this.chkIdentifyQuickConnectTabs.Size = new System.Drawing.Size(293, 17); - this.chkIdentifyQuickConnectTabs.TabIndex = 16; - this.chkIdentifyQuickConnectTabs.Text = global::mRemoteNG.My.Language.strIdentifyQuickConnectTabs; - this.chkIdentifyQuickConnectTabs.UseVisualStyleBackColor = true; - // - //chkUseOnlyErrorsAndInfosPanel - // - this.chkUseOnlyErrorsAndInfosPanel.AutoSize = true; - this.chkUseOnlyErrorsAndInfosPanel.Location = new System.Drawing.Point(3, 185); - this.chkUseOnlyErrorsAndInfosPanel.Name = "chkUseOnlyErrorsAndInfosPanel"; - this.chkUseOnlyErrorsAndInfosPanel.Size = new System.Drawing.Size(278, 17); - this.chkUseOnlyErrorsAndInfosPanel.TabIndex = 19; - this.chkUseOnlyErrorsAndInfosPanel.Text = "Use only Notifications panel (no messagebox popups)"; - this.chkUseOnlyErrorsAndInfosPanel.UseVisualStyleBackColor = true; - // - //chkOpenNewTabRightOfSelected - // - this.chkOpenNewTabRightOfSelected.AutoSize = true; - this.chkOpenNewTabRightOfSelected.Location = new System.Drawing.Point(3, 23); - this.chkOpenNewTabRightOfSelected.Name = "chkOpenNewTabRightOfSelected"; - this.chkOpenNewTabRightOfSelected.Size = new System.Drawing.Size(280, 17); - this.chkOpenNewTabRightOfSelected.TabIndex = 13; - this.chkOpenNewTabRightOfSelected.Text = "Open new tab to the right of the currently selected tab"; - this.chkOpenNewTabRightOfSelected.UseVisualStyleBackColor = true; - // - //lblSwitchToErrorsAndInfos - // - this.lblSwitchToErrorsAndInfos.AutoSize = true; - this.lblSwitchToErrorsAndInfos.Location = new System.Drawing.Point(3, 210); - this.lblSwitchToErrorsAndInfos.Name = "lblSwitchToErrorsAndInfos"; - this.lblSwitchToErrorsAndInfos.Size = new System.Drawing.Size(159, 13); - this.lblSwitchToErrorsAndInfos.TabIndex = 20; - this.lblSwitchToErrorsAndInfos.Text = "Switch to Notifications panel on:"; - // - //chkAlwaysShowPanelSelectionDlg - // - this.chkAlwaysShowPanelSelectionDlg.AutoSize = true; - this.chkAlwaysShowPanelSelectionDlg.Location = new System.Drawing.Point(3, 138); - this.chkAlwaysShowPanelSelectionDlg.Name = "chkAlwaysShowPanelSelectionDlg"; - this.chkAlwaysShowPanelSelectionDlg.Size = new System.Drawing.Size(317, 17); - this.chkAlwaysShowPanelSelectionDlg.TabIndex = 18; - this.chkAlwaysShowPanelSelectionDlg.Text = "Always show panel selection dialog when opening connectins"; - this.chkAlwaysShowPanelSelectionDlg.UseVisualStyleBackColor = true; - // - //chkMCInformation - // - this.chkMCInformation.AutoSize = true; - this.chkMCInformation.Enabled = false; - this.chkMCInformation.Location = new System.Drawing.Point(19, 230); - this.chkMCInformation.Name = "chkMCInformation"; - this.chkMCInformation.Size = new System.Drawing.Size(83, 17); - this.chkMCInformation.TabIndex = 21; - this.chkMCInformation.Text = "Informations"; - this.chkMCInformation.UseVisualStyleBackColor = true; - // - //chkShowLogonInfoOnTabs - // - this.chkShowLogonInfoOnTabs.AutoSize = true; - this.chkShowLogonInfoOnTabs.Location = new System.Drawing.Point(3, 46); - this.chkShowLogonInfoOnTabs.Name = "chkShowLogonInfoOnTabs"; - this.chkShowLogonInfoOnTabs.Size = new System.Drawing.Size(203, 17); - this.chkShowLogonInfoOnTabs.TabIndex = 14; - this.chkShowLogonInfoOnTabs.Text = "Show logon information on tab names"; - this.chkShowLogonInfoOnTabs.UseVisualStyleBackColor = true; - // - //chkMCErrors - // - this.chkMCErrors.AutoSize = true; - this.chkMCErrors.Enabled = false; - this.chkMCErrors.Location = new System.Drawing.Point(19, 276); - this.chkMCErrors.Name = "chkMCErrors"; - this.chkMCErrors.Size = new System.Drawing.Size(53, 17); - this.chkMCErrors.TabIndex = 23; - this.chkMCErrors.Text = "Errors"; - this.chkMCErrors.UseVisualStyleBackColor = true; - // - //chkDoubleClickClosesTab - // - this.chkDoubleClickClosesTab.AutoSize = true; - this.chkDoubleClickClosesTab.Location = new System.Drawing.Point(3, 115); - this.chkDoubleClickClosesTab.Name = "chkDoubleClickClosesTab"; - this.chkDoubleClickClosesTab.Size = new System.Drawing.Size(159, 17); - this.chkDoubleClickClosesTab.TabIndex = 17; - this.chkDoubleClickClosesTab.Text = "Double click on tab closes it"; - this.chkDoubleClickClosesTab.UseVisualStyleBackColor = true; - // - //chkMCWarnings - // - this.chkMCWarnings.AutoSize = true; - this.chkMCWarnings.Enabled = false; - this.chkMCWarnings.Location = new System.Drawing.Point(19, 253); - this.chkMCWarnings.Name = "chkMCWarnings"; - this.chkMCWarnings.Size = new System.Drawing.Size(71, 17); - this.chkMCWarnings.TabIndex = 22; - this.chkMCWarnings.Text = "Warnings"; - this.chkMCWarnings.UseVisualStyleBackColor = true; - // - //chkShowProtocolOnTabs - // - this.chkShowProtocolOnTabs.AutoSize = true; - this.chkShowProtocolOnTabs.Location = new System.Drawing.Point(3, 69); - this.chkShowProtocolOnTabs.Name = "chkShowProtocolOnTabs"; - this.chkShowProtocolOnTabs.Size = new System.Drawing.Size(166, 17); - this.chkShowProtocolOnTabs.TabIndex = 15; - this.chkShowProtocolOnTabs.Text = "Show protocols on tab names"; - this.chkShowProtocolOnTabs.UseVisualStyleBackColor = true; - // - //TabsPanelsPage - // - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.chkAlwaysShowPanelTabs); - this.Controls.Add(this.chkIdentifyQuickConnectTabs); - this.Controls.Add(this.chkUseOnlyErrorsAndInfosPanel); - this.Controls.Add(this.chkOpenNewTabRightOfSelected); - this.Controls.Add(this.lblSwitchToErrorsAndInfos); - this.Controls.Add(this.chkAlwaysShowPanelSelectionDlg); - this.Controls.Add(this.chkMCInformation); - this.Controls.Add(this.chkShowLogonInfoOnTabs); - this.Controls.Add(this.chkMCErrors); - this.Controls.Add(this.chkDoubleClickClosesTab); - this.Controls.Add(this.chkMCWarnings); - this.Controls.Add(this.chkShowProtocolOnTabs); - this.Name = "TabsPanelsPage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - this.ResumeLayout(false); - this.PerformLayout(); - - } - internal System.Windows.Forms.CheckBox chkAlwaysShowPanelTabs; - internal System.Windows.Forms.CheckBox chkIdentifyQuickConnectTabs; - internal System.Windows.Forms.CheckBox chkUseOnlyErrorsAndInfosPanel; - internal System.Windows.Forms.CheckBox chkOpenNewTabRightOfSelected; - internal System.Windows.Forms.Label lblSwitchToErrorsAndInfos; - internal System.Windows.Forms.CheckBox chkAlwaysShowPanelSelectionDlg; - internal System.Windows.Forms.CheckBox chkMCInformation; - internal System.Windows.Forms.CheckBox chkShowLogonInfoOnTabs; - internal System.Windows.Forms.CheckBox chkMCErrors; - internal System.Windows.Forms.CheckBox chkDoubleClickClosesTab; - internal System.Windows.Forms.CheckBox chkMCWarnings; - internal System.Windows.Forms.CheckBox chkShowProtocolOnTabs; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.cs b/mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.cs deleted file mode 100644 index c4385fc82..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.cs +++ /dev/null @@ -1,100 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using mRemoteNG.My; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class TabsPanelsPage - { - public TabsPanelsPage() - { - InitializeComponent(); - } -public override string PageName - { - get - { - return Language.strTabsAndPanels.Replace("&&", "&"); - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - - chkAlwaysShowPanelTabs.Text = Language.strAlwaysShowPanelTabs; - chkOpenNewTabRightOfSelected.Text = Language.strOpenNewTabRight; - chkShowLogonInfoOnTabs.Text = Language.strShowLogonInfoOnTabs; - chkShowProtocolOnTabs.Text = Language.strShowProtocolOnTabs; - chkIdentifyQuickConnectTabs.Text = Language.strIdentifyQuickConnectTabs; - chkDoubleClickClosesTab.Text = Language.strDoubleClickTabClosesIt; - chkAlwaysShowPanelSelectionDlg.Text = Language.strAlwaysShowPanelSelection; - - chkUseOnlyErrorsAndInfosPanel.Text = Language.strUseOnlyErrorsAndInfosPanel; - lblSwitchToErrorsAndInfos.Text = Language.strSwitchToErrorsAndInfos; - chkMCInformation.Text = Language.strInformations; - chkMCWarnings.Text = Language.strWarnings; - chkMCErrors.Text = Language.strErrors; - } - - public override void LoadSettings() - { - base.SaveSettings(); - - chkAlwaysShowPanelTabs.Checked = Settings.AlwaysShowPanelTabs; - chkOpenNewTabRightOfSelected.Checked = Settings.OpenTabsRightOfSelected; - chkShowLogonInfoOnTabs.Checked = Settings.ShowLogonInfoOnTabs; - chkShowProtocolOnTabs.Checked = Settings.ShowProtocolOnTabs; - chkIdentifyQuickConnectTabs.Checked = Settings.IdentifyQuickConnectTabs; - chkDoubleClickClosesTab.Checked = Settings.DoubleClickOnTabClosesIt; - chkAlwaysShowPanelSelectionDlg.Checked = Settings.AlwaysShowPanelSelectionDlg; - - chkUseOnlyErrorsAndInfosPanel.Checked = Settings.ShowNoMessageBoxes; - chkMCInformation.Checked = Settings.SwitchToMCOnInformation; - chkMCWarnings.Checked = Settings.SwitchToMCOnWarning; - chkMCErrors.Checked = Settings.SwitchToMCOnError; - } - - public override void SaveSettings() - { - base.SaveSettings(); - - Settings.AlwaysShowPanelTabs = chkAlwaysShowPanelTabs.Checked; - frmMain.Default.ShowHidePanelTabs(); - - Settings.OpenTabsRightOfSelected = chkOpenNewTabRightOfSelected.Checked; - Settings.ShowLogonInfoOnTabs = chkShowLogonInfoOnTabs.Checked; - Settings.ShowProtocolOnTabs = chkShowProtocolOnTabs.Checked; - Settings.IdentifyQuickConnectTabs = chkIdentifyQuickConnectTabs.Checked; - Settings.DoubleClickOnTabClosesIt = chkDoubleClickClosesTab.Checked; - Settings.AlwaysShowPanelSelectionDlg = chkAlwaysShowPanelSelectionDlg.Checked; - - Settings.ShowNoMessageBoxes = chkUseOnlyErrorsAndInfosPanel.Checked; - Settings.SwitchToMCOnInformation = chkMCInformation.Checked; - Settings.SwitchToMCOnWarning = chkMCWarnings.Checked; - Settings.SwitchToMCOnError = chkMCErrors.Checked; - } - - public void chkUseOnlyErrorsAndInfosPanel_CheckedChanged(object sender, EventArgs e) - { - chkMCInformation.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked; - chkMCWarnings.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked; - chkMCErrors.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked; - } - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/ThemePage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/ThemePage.Designer.cs deleted file mode 100644 index 7b5111d9b..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/ThemePage.Designer.cs +++ /dev/null @@ -1,113 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class ThemePage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ThemePage)); - this.btnThemeDelete = new System.Windows.Forms.Button(); - this.btnThemeDelete.Click += new System.EventHandler(this.btnThemeDelete_Click); - this.btnThemeNew = new System.Windows.Forms.Button(); - this.btnThemeNew.Click += new System.EventHandler(this.btnThemeNew_Click); - this.cboTheme = new System.Windows.Forms.ComboBox(); - this.cboTheme.DropDown += new System.EventHandler(this.cboTheme_DropDown); - this.cboTheme.SelectionChangeCommitted += new System.EventHandler(this.cboTheme_SelectionChangeCommitted); - this.ThemePropertyGrid = new System.Windows.Forms.PropertyGrid(); - this.SuspendLayout(); - // - //btnThemeDelete - // - this.btnThemeDelete.Location = new System.Drawing.Point(535, 0); - this.btnThemeDelete.Name = "btnThemeDelete"; - this.btnThemeDelete.Size = new System.Drawing.Size(75, 23); - this.btnThemeDelete.TabIndex = 6; - this.btnThemeDelete.Text = "&Delete"; - this.btnThemeDelete.UseVisualStyleBackColor = true; - // - //btnThemeNew - // - this.btnThemeNew.Location = new System.Drawing.Point(454, 0); - this.btnThemeNew.Name = "btnThemeNew"; - this.btnThemeNew.Size = new System.Drawing.Size(75, 23); - this.btnThemeNew.TabIndex = 5; - this.btnThemeNew.Text = "&New"; - this.btnThemeNew.UseVisualStyleBackColor = true; - // - //cboTheme - // - this.cboTheme.FormattingEnabled = true; - this.cboTheme.Location = new System.Drawing.Point(3, 1); - this.cboTheme.Name = "cboTheme"; - this.cboTheme.Size = new System.Drawing.Size(445, 21); - this.cboTheme.TabIndex = 4; - // - //ThemePropertyGrid - // - this.ThemePropertyGrid.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.ThemePropertyGrid.Location = new System.Drawing.Point(3, 29); - this.ThemePropertyGrid.Name = "ThemePropertyGrid"; - this.ThemePropertyGrid.Size = new System.Drawing.Size(607, 460); - this.ThemePropertyGrid.TabIndex = 7; - this.ThemePropertyGrid.UseCompatibleTextRendering = true; - // - //ThemePage - // - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.btnThemeDelete); - this.Controls.Add(this.btnThemeNew); - this.Controls.Add(this.cboTheme); - this.Controls.Add(this.ThemePropertyGrid); - this.Name = "ThemePage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - this.ResumeLayout(false); - - } - internal System.Windows.Forms.Button btnThemeDelete; - internal System.Windows.Forms.Button btnThemeNew; - internal System.Windows.Forms.ComboBox cboTheme; - internal System.Windows.Forms.PropertyGrid ThemePropertyGrid; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/ThemePage.cs b/mRemoteV1/CS/Forms/OptionsPages/ThemePage.cs deleted file mode 100644 index 7adcddb39..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/ThemePage.cs +++ /dev/null @@ -1,143 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using System.ComponentModel; -using mRemoteNG.My; -using mRemoteNG.Themes; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class ThemePage - { - public ThemePage() - { - InitializeComponent(); - } -public override string PageName - { - get - { - return Language.strOptionsTabTheme; - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - - btnThemeDelete.Text = Language.strOptionsThemeButtonDelete; - btnThemeNew.Text = Language.strOptionsThemeButtonNew; - } - - public override void LoadSettings() - { - base.SaveSettings(); - - _themeList = new BindingList(ThemeManager.LoadThemes()); - cboTheme.DataSource = _themeList; - cboTheme.SelectedItem = ThemeManager.ActiveTheme; - cboTheme_SelectionChangeCommitted(this, new EventArgs()); - - ThemePropertyGrid.PropertySort = PropertySort.Categorized; - - _originalTheme = ThemeManager.ActiveTheme; - } - - public override void SaveSettings() - { - base.SaveSettings(); - - ThemeManager.SaveThemes(_themeList); - Settings.ThemeName = ThemeManager.ActiveTheme.Name; - } - - public override void RevertSettings() - { - ThemeManager.ActiveTheme = _originalTheme; - } - -#region Private Fields - private BindingList _themeList; - private ThemeInfo _originalTheme; -#endregion - -#region Private Methods -#region Event Handlers - public void cboTheme_DropDown(object sender, EventArgs e) - { - if (ThemeManager.ActiveTheme == ThemeManager.DefaultTheme) - { - return ; - } - ThemeManager.ActiveTheme.Name = cboTheme.Text; - } - - public void cboTheme_SelectionChangeCommitted(object sender, EventArgs e) - { - if (cboTheme.SelectedItem == null) - { - cboTheme.SelectedItem = ThemeManager.DefaultTheme; - } - - if (cboTheme.SelectedItem == ThemeManager.DefaultTheme) - { - cboTheme.DropDownStyle = ComboBoxStyle.DropDownList; - btnThemeDelete.Enabled = false; - ThemePropertyGrid.Enabled = false; - } - else - { - cboTheme.DropDownStyle = ComboBoxStyle.DropDown; - btnThemeDelete.Enabled = true; - ThemePropertyGrid.Enabled = true; - } - - ThemeManager.ActiveTheme = cboTheme.SelectedItem; - ThemePropertyGrid.SelectedObject = ThemeManager.ActiveTheme; - ThemePropertyGrid.Refresh(); - } - - public void btnThemeNew_Click(object sender, EventArgs e) - { - ThemeInfo newTheme = ThemeManager.ActiveTheme.Clone(); - newTheme.Name = Language.strUnnamedTheme; - - _themeList.Add(newTheme); - - cboTheme.SelectedItem = newTheme; - cboTheme_SelectionChangeCommitted(this, new EventArgs()); - - cboTheme.Focus(); - } - - public void btnThemeDelete_Click(object sender, EventArgs e) - { - ThemeInfo theme = cboTheme.SelectedItem; - if (theme == null) - { - return ; - } - - _themeList.Remove(theme); - - cboTheme.SelectedItem = ThemeManager.DefaultTheme; - cboTheme_SelectionChangeCommitted(this, new EventArgs()); - } -#endregion -#endregion - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.Designer.cs b/mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.Designer.cs deleted file mode 100644 index 3de8c0dd4..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.Designer.cs +++ /dev/null @@ -1,305 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms.OptionsPages -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class UpdatesPage : OptionsPage - { - - //UserControl overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UpdatesPage)); - this.lblUpdatesExplanation = new System.Windows.Forms.Label(); - this.pnlUpdateCheck = new System.Windows.Forms.Panel(); - this.btnUpdateCheckNow = new System.Windows.Forms.Button(); - this.btnUpdateCheckNow.Click += new System.EventHandler(this.btnUpdateCheckNow_Click); - this.chkCheckForUpdatesOnStartup = new System.Windows.Forms.CheckBox(); - this.chkCheckForUpdatesOnStartup.CheckedChanged += new System.EventHandler(this.chkCheckForUpdatesOnStartup_CheckedChanged); - this.cboUpdateCheckFrequency = new System.Windows.Forms.ComboBox(); - this.pnlProxy = new System.Windows.Forms.Panel(); - this.pnlProxyBasic = new System.Windows.Forms.Panel(); - this.lblProxyAddress = new System.Windows.Forms.Label(); - this.txtProxyAddress = new System.Windows.Forms.TextBox(); - this.lblProxyPort = new System.Windows.Forms.Label(); - this.numProxyPort = new System.Windows.Forms.NumericUpDown(); - this.chkUseProxyForAutomaticUpdates = new System.Windows.Forms.CheckBox(); - this.chkUseProxyForAutomaticUpdates.CheckedChanged += new System.EventHandler(this.chkUseProxyForAutomaticUpdates_CheckedChanged); - this.chkUseProxyAuthentication = new System.Windows.Forms.CheckBox(); - this.chkUseProxyAuthentication.CheckedChanged += new System.EventHandler(this.chkUseProxyAuthentication_CheckedChanged); - this.pnlProxyAuthentication = new System.Windows.Forms.Panel(); - this.lblProxyUsername = new System.Windows.Forms.Label(); - this.txtProxyUsername = new System.Windows.Forms.TextBox(); - this.lblProxyPassword = new System.Windows.Forms.Label(); - this.txtProxyPassword = new System.Windows.Forms.TextBox(); - this.btnTestProxy = new System.Windows.Forms.Button(); - this.btnTestProxy.Click += new System.EventHandler(this.btnTestProxy_Click); - this.pnlUpdateCheck.SuspendLayout(); - this.pnlProxy.SuspendLayout(); - this.pnlProxyBasic.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize) this.numProxyPort).BeginInit(); - this.pnlProxyAuthentication.SuspendLayout(); - this.SuspendLayout(); - // - //lblUpdatesExplanation - // - this.lblUpdatesExplanation.Location = new System.Drawing.Point(3, 0); - this.lblUpdatesExplanation.Name = "lblUpdatesExplanation"; - this.lblUpdatesExplanation.Size = new System.Drawing.Size(536, 40); - this.lblUpdatesExplanation.TabIndex = 3; - this.lblUpdatesExplanation.Text = "mRemoteNG can periodically connect to the mRemoteNG website to check for updates " + - "and product announcements."; - // - //pnlUpdateCheck - // - this.pnlUpdateCheck.Controls.Add(this.btnUpdateCheckNow); - this.pnlUpdateCheck.Controls.Add(this.chkCheckForUpdatesOnStartup); - this.pnlUpdateCheck.Controls.Add(this.cboUpdateCheckFrequency); - this.pnlUpdateCheck.Location = new System.Drawing.Point(0, 48); - this.pnlUpdateCheck.Name = "pnlUpdateCheck"; - this.pnlUpdateCheck.Size = new System.Drawing.Size(610, 120); - this.pnlUpdateCheck.TabIndex = 4; - // - //btnUpdateCheckNow - // - this.btnUpdateCheckNow.Location = new System.Drawing.Point(3, 80); - this.btnUpdateCheckNow.Name = "btnUpdateCheckNow"; - this.btnUpdateCheckNow.Size = new System.Drawing.Size(120, 32); - this.btnUpdateCheckNow.TabIndex = 2; - this.btnUpdateCheckNow.Text = "Check Now"; - this.btnUpdateCheckNow.UseVisualStyleBackColor = true; - // - //chkCheckForUpdatesOnStartup - // - this.chkCheckForUpdatesOnStartup.AutoSize = true; - this.chkCheckForUpdatesOnStartup.Location = new System.Drawing.Point(3, 8); - this.chkCheckForUpdatesOnStartup.Name = "chkCheckForUpdatesOnStartup"; - this.chkCheckForUpdatesOnStartup.Size = new System.Drawing.Size(213, 17); - this.chkCheckForUpdatesOnStartup.TabIndex = 0; - this.chkCheckForUpdatesOnStartup.Text = "Check for updates and announcements"; - this.chkCheckForUpdatesOnStartup.UseVisualStyleBackColor = true; - // - //cboUpdateCheckFrequency - // - this.cboUpdateCheckFrequency.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboUpdateCheckFrequency.FormattingEnabled = true; - this.cboUpdateCheckFrequency.Location = new System.Drawing.Point(48, 40); - this.cboUpdateCheckFrequency.Name = "cboUpdateCheckFrequency"; - this.cboUpdateCheckFrequency.Size = new System.Drawing.Size(128, 21); - this.cboUpdateCheckFrequency.TabIndex = 1; - // - //pnlProxy - // - this.pnlProxy.Controls.Add(this.pnlProxyBasic); - this.pnlProxy.Controls.Add(this.chkUseProxyForAutomaticUpdates); - this.pnlProxy.Controls.Add(this.chkUseProxyAuthentication); - this.pnlProxy.Controls.Add(this.pnlProxyAuthentication); - this.pnlProxy.Controls.Add(this.btnTestProxy); - this.pnlProxy.Location = new System.Drawing.Point(0, 200); - this.pnlProxy.Name = "pnlProxy"; - this.pnlProxy.Size = new System.Drawing.Size(610, 224); - this.pnlProxy.TabIndex = 5; - // - //pnlProxyBasic - // - this.pnlProxyBasic.Controls.Add(this.lblProxyAddress); - this.pnlProxyBasic.Controls.Add(this.txtProxyAddress); - this.pnlProxyBasic.Controls.Add(this.lblProxyPort); - this.pnlProxyBasic.Controls.Add(this.numProxyPort); - this.pnlProxyBasic.Enabled = false; - this.pnlProxyBasic.Location = new System.Drawing.Point(3, 32); - this.pnlProxyBasic.Name = "pnlProxyBasic"; - this.pnlProxyBasic.Size = new System.Drawing.Size(604, 40); - this.pnlProxyBasic.TabIndex = 1; - // - //lblProxyAddress - // - this.lblProxyAddress.Location = new System.Drawing.Point(8, 4); - this.lblProxyAddress.Name = "lblProxyAddress"; - this.lblProxyAddress.Size = new System.Drawing.Size(96, 24); - this.lblProxyAddress.TabIndex = 0; - this.lblProxyAddress.Text = "Address:"; - this.lblProxyAddress.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - //txtProxyAddress - // - this.txtProxyAddress.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtProxyAddress.Location = new System.Drawing.Point(104, 8); - this.txtProxyAddress.Name = "txtProxyAddress"; - this.txtProxyAddress.Size = new System.Drawing.Size(240, 20); - this.txtProxyAddress.TabIndex = 1; - // - //lblProxyPort - // - this.lblProxyPort.Location = new System.Drawing.Point(350, 5); - this.lblProxyPort.Name = "lblProxyPort"; - this.lblProxyPort.Size = new System.Drawing.Size(64, 23); - this.lblProxyPort.TabIndex = 2; - this.lblProxyPort.Text = "Port:"; - this.lblProxyPort.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - //numProxyPort - // - this.numProxyPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.numProxyPort.Location = new System.Drawing.Point(420, 8); - this.numProxyPort.Maximum = new decimal(new int[] {65535, 0, 0, 0}); - this.numProxyPort.Minimum = new decimal(new int[] {1, 0, 0, 0}); - this.numProxyPort.Name = "numProxyPort"; - this.numProxyPort.Size = new System.Drawing.Size(64, 20); - this.numProxyPort.TabIndex = 3; - this.numProxyPort.Value = new decimal(new int[] {80, 0, 0, 0}); - // - //chkUseProxyForAutomaticUpdates - // - this.chkUseProxyForAutomaticUpdates.AutoSize = true; - this.chkUseProxyForAutomaticUpdates.Location = new System.Drawing.Point(3, 8); - this.chkUseProxyForAutomaticUpdates.Name = "chkUseProxyForAutomaticUpdates"; - this.chkUseProxyForAutomaticUpdates.Size = new System.Drawing.Size(168, 17); - this.chkUseProxyForAutomaticUpdates.TabIndex = 0; - this.chkUseProxyForAutomaticUpdates.Text = "Use a proxy server to connect"; - this.chkUseProxyForAutomaticUpdates.UseVisualStyleBackColor = true; - // - //chkUseProxyAuthentication - // - this.chkUseProxyAuthentication.AutoSize = true; - this.chkUseProxyAuthentication.Enabled = false; - this.chkUseProxyAuthentication.Location = new System.Drawing.Point(27, 80); - this.chkUseProxyAuthentication.Name = "chkUseProxyAuthentication"; - this.chkUseProxyAuthentication.Size = new System.Drawing.Size(216, 17); - this.chkUseProxyAuthentication.TabIndex = 2; - this.chkUseProxyAuthentication.Text = "This proxy server requires authentication"; - this.chkUseProxyAuthentication.UseVisualStyleBackColor = true; - // - //pnlProxyAuthentication - // - this.pnlProxyAuthentication.Controls.Add(this.lblProxyUsername); - this.pnlProxyAuthentication.Controls.Add(this.txtProxyUsername); - this.pnlProxyAuthentication.Controls.Add(this.lblProxyPassword); - this.pnlProxyAuthentication.Controls.Add(this.txtProxyPassword); - this.pnlProxyAuthentication.Enabled = false; - this.pnlProxyAuthentication.Location = new System.Drawing.Point(3, 104); - this.pnlProxyAuthentication.Name = "pnlProxyAuthentication"; - this.pnlProxyAuthentication.Size = new System.Drawing.Size(604, 72); - this.pnlProxyAuthentication.TabIndex = 3; - // - //lblProxyUsername - // - this.lblProxyUsername.Location = new System.Drawing.Point(8, 4); - this.lblProxyUsername.Name = "lblProxyUsername"; - this.lblProxyUsername.Size = new System.Drawing.Size(96, 24); - this.lblProxyUsername.TabIndex = 0; - this.lblProxyUsername.Text = "Username:"; - this.lblProxyUsername.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - //txtProxyUsername - // - this.txtProxyUsername.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtProxyUsername.Location = new System.Drawing.Point(104, 8); - this.txtProxyUsername.Name = "txtProxyUsername"; - this.txtProxyUsername.Size = new System.Drawing.Size(240, 20); - this.txtProxyUsername.TabIndex = 1; - // - //lblProxyPassword - // - this.lblProxyPassword.Location = new System.Drawing.Point(8, 36); - this.lblProxyPassword.Name = "lblProxyPassword"; - this.lblProxyPassword.Size = new System.Drawing.Size(96, 24); - this.lblProxyPassword.TabIndex = 2; - this.lblProxyPassword.Text = "Password:"; - this.lblProxyPassword.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - //txtProxyPassword - // - this.txtProxyPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtProxyPassword.Location = new System.Drawing.Point(104, 40); - this.txtProxyPassword.Name = "txtProxyPassword"; - this.txtProxyPassword.Size = new System.Drawing.Size(240, 20); - this.txtProxyPassword.TabIndex = 3; - this.txtProxyPassword.UseSystemPasswordChar = true; - // - //btnTestProxy - // - this.btnTestProxy.Location = new System.Drawing.Point(3, 184); - this.btnTestProxy.Name = "btnTestProxy"; - this.btnTestProxy.Size = new System.Drawing.Size(120, 32); - this.btnTestProxy.TabIndex = 4; - this.btnTestProxy.Text = "Test Proxy"; - this.btnTestProxy.UseVisualStyleBackColor = true; - // - //UpdatesPage - // - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.lblUpdatesExplanation); - this.Controls.Add(this.pnlUpdateCheck); - this.Controls.Add(this.pnlProxy); - this.Name = "UpdatesPage"; - this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); - this.Size = new System.Drawing.Size(610, 489); - this.pnlUpdateCheck.ResumeLayout(false); - this.pnlUpdateCheck.PerformLayout(); - this.pnlProxy.ResumeLayout(false); - this.pnlProxy.PerformLayout(); - this.pnlProxyBasic.ResumeLayout(false); - this.pnlProxyBasic.PerformLayout(); - ((System.ComponentModel.ISupportInitialize) this.numProxyPort).EndInit(); - this.pnlProxyAuthentication.ResumeLayout(false); - this.pnlProxyAuthentication.PerformLayout(); - this.ResumeLayout(false); - - } - internal System.Windows.Forms.Label lblUpdatesExplanation; - internal System.Windows.Forms.Panel pnlUpdateCheck; - internal System.Windows.Forms.Button btnUpdateCheckNow; - internal System.Windows.Forms.CheckBox chkCheckForUpdatesOnStartup; - internal System.Windows.Forms.ComboBox cboUpdateCheckFrequency; - internal System.Windows.Forms.Panel pnlProxy; - internal System.Windows.Forms.Panel pnlProxyBasic; - internal System.Windows.Forms.Label lblProxyAddress; - internal System.Windows.Forms.TextBox txtProxyAddress; - internal System.Windows.Forms.Label lblProxyPort; - internal System.Windows.Forms.NumericUpDown numProxyPort; - internal System.Windows.Forms.CheckBox chkUseProxyForAutomaticUpdates; - internal System.Windows.Forms.CheckBox chkUseProxyAuthentication; - internal System.Windows.Forms.Panel pnlProxyAuthentication; - internal System.Windows.Forms.Label lblProxyUsername; - internal System.Windows.Forms.TextBox txtProxyUsername; - internal System.Windows.Forms.Label lblProxyPassword; - internal System.Windows.Forms.TextBox txtProxyPassword; - internal System.Windows.Forms.Button btnTestProxy; - - } -} diff --git a/mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.cs b/mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.cs deleted file mode 100644 index 9c513920c..000000000 --- a/mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.cs +++ /dev/null @@ -1,261 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using System.ComponentModel; -using mRemoteNG.My; -using mRemoteNG.App; -//using mRemoteNG.App.Info; -using mRemoteNG.Security; -using mRemoteNG.Tools; -using mRemoteNG.UI.Window; -using PSTaskDialog; - - -namespace mRemoteNG.Forms.OptionsPages -{ - public partial class UpdatesPage - { - public UpdatesPage() - { - InitializeComponent(); - } -#region Public Methods -public override string PageName - { - get - { - return Language.strTabUpdates; - } - set - { - } - } - - public override void ApplyLanguage() - { - base.ApplyLanguage(); - -#if !PORTABLE - lblUpdatesExplanation.Text = Language.strUpdateCheck; -#else - lblUpdatesExplanation.Text = Language.strUpdateCheckPortableEdition; -#endif - - chkCheckForUpdatesOnStartup.Text = Language.strCheckForUpdatesOnStartup; - btnUpdateCheckNow.Text = Language.strCheckNow; - - chkUseProxyForAutomaticUpdates.Text = Language.strCheckboxUpdateUseProxy; - lblProxyAddress.Text = Language.strLabelAddress; - lblProxyPort.Text = Language.strLabelPort; - - chkUseProxyAuthentication.Text = Language.strCheckboxProxyAuthentication; - lblProxyUsername.Text = Language.strLabelUsername; - lblProxyPassword.Text = Language.strLabelPassword; - - btnTestProxy.Text = Language.strButtonTestProxy; - } - - public override void LoadSettings() - { - base.SaveSettings(); - - chkCheckForUpdatesOnStartup.Checked = System.Convert.ToBoolean(My.Settings.Default.CheckForUpdatesOnStartup); - cboUpdateCheckFrequency.Enabled = chkCheckForUpdatesOnStartup.Checked; - cboUpdateCheckFrequency.Items.Clear(); - int nDaily = cboUpdateCheckFrequency.Items.Add(Language.strUpdateFrequencyDaily); - int nWeekly = cboUpdateCheckFrequency.Items.Add(Language.strUpdateFrequencyWeekly); - int nMonthly = cboUpdateCheckFrequency.Items.Add(Language.strUpdateFrequencyMonthly); - if (My.Settings.Default.CheckForUpdatesFrequencyDays < 1) - { - chkCheckForUpdatesOnStartup.Checked = false; - cboUpdateCheckFrequency.SelectedIndex = nDaily; - } // Daily - else if ((int) My.Settings.Default.CheckForUpdatesFrequencyDays == 1) - { - cboUpdateCheckFrequency.SelectedIndex = nDaily; - } // Weekly - else if ((int) My.Settings.Default.CheckForUpdatesFrequencyDays == 7) - { - cboUpdateCheckFrequency.SelectedIndex = nWeekly; - } // Monthly - else if ((int) My.Settings.Default.CheckForUpdatesFrequencyDays == 31) - { - cboUpdateCheckFrequency.SelectedIndex = nMonthly; - } - else - { - int nCustom = cboUpdateCheckFrequency.Items.Add(string.Format(Language.strUpdateFrequencyCustom, My.Settings.Default.CheckForUpdatesFrequencyDays)); - cboUpdateCheckFrequency.SelectedIndex = nCustom; - } - - chkUseProxyForAutomaticUpdates.Checked = System.Convert.ToBoolean(My.Settings.Default.UpdateUseProxy); - pnlProxyBasic.Enabled = System.Convert.ToBoolean(My.Settings.Default.UpdateUseProxy); - txtProxyAddress.Text = System.Convert.ToString(My.Settings.Default.UpdateProxyAddress); - numProxyPort.Value = System.Convert.ToDecimal(My.Settings.Default.UpdateProxyPort); - - chkUseProxyAuthentication.Checked = System.Convert.ToBoolean(My.Settings.Default.UpdateProxyUseAuthentication); - pnlProxyAuthentication.Enabled = System.Convert.ToBoolean(My.Settings.Default.UpdateProxyUseAuthentication); - txtProxyUsername.Text = System.Convert.ToString(My.Settings.Default.UpdateProxyAuthUser); - txtProxyPassword.Text = Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.UpdateProxyAuthPass), App.Info.General.EncryptionKey); - - btnTestProxy.Enabled = System.Convert.ToBoolean(My.Settings.Default.UpdateUseProxy); - -#if PORTABLE - foreach (Control Control in Controls) - { - if (Control != lblUpdatesExplanation) - { - Control.Visible = false; - } - } -#endif - } - - public override void SaveSettings() - { - base.SaveSettings(); - - My.Settings.Default.CheckForUpdatesOnStartup = chkCheckForUpdatesOnStartup.Checked; - if (cboUpdateCheckFrequency.SelectedItem.ToString() == Language.strUpdateFrequencyDaily) - { - My.Settings.Default.CheckForUpdatesFrequencyDays = 1; - } - else if (cboUpdateCheckFrequency.SelectedItem.ToString() == Language.strUpdateFrequencyWeekly) - { - My.Settings.Default.CheckForUpdatesFrequencyDays = 7; - } - else if (cboUpdateCheckFrequency.SelectedItem.ToString() == Language.strUpdateFrequencyMonthly) - { - My.Settings.Default.CheckForUpdatesFrequencyDays = 31; - } - - My.Settings.Default.UpdateUseProxy = chkUseProxyForAutomaticUpdates.Checked; - My.Settings.Default.UpdateProxyAddress = txtProxyAddress.Text; - My.Settings.Default.UpdateProxyPort = numProxyPort.Value; - - My.Settings.Default.UpdateProxyUseAuthentication = chkUseProxyAuthentication.Checked; - My.Settings.Default.UpdateProxyAuthUser = txtProxyUsername.Text; - My.Settings.Default.UpdateProxyAuthPass = Crypt.Encrypt(txtProxyPassword.Text, App.Info.General.EncryptionKey); - } -#endregion - -#region Private Fields - private App.Update _appUpdate; -#endregion - -#region Private Methods -#region Event Handlers - public void chkCheckForUpdatesOnStartup_CheckedChanged(object sender, EventArgs e) - { - cboUpdateCheckFrequency.Enabled = chkCheckForUpdatesOnStartup.Checked; - } - - public void btnUpdateCheckNow_Click(object sender, EventArgs e) - { - Runtime.Windows.Show(Type.Update); - } - - public void chkUseProxyForAutomaticUpdates_CheckedChanged(object sender, EventArgs e) - { - pnlProxyBasic.Enabled = chkUseProxyForAutomaticUpdates.Checked; - btnTestProxy.Enabled = chkUseProxyForAutomaticUpdates.Checked; - - if (chkUseProxyForAutomaticUpdates.Checked) - { - chkUseProxyAuthentication.Enabled = true; - - if (chkUseProxyAuthentication.Checked) - { - pnlProxyAuthentication.Enabled = true; - } - } - else - { - chkUseProxyAuthentication.Enabled = false; - pnlProxyAuthentication.Enabled = false; - } - } - - public void btnTestProxy_Click(object sender, EventArgs e) - { - if (_appUpdate != null) - { - if (_appUpdate.IsGetUpdateInfoRunning) - { - return ; - } - } - - _appUpdate = new App.Update(); - _appUpdate.Load += _appUpdate.Update_Load; - _appUpdate.SetProxySettings(chkUseProxyForAutomaticUpdates.Checked, txtProxyAddress.Text, (int) numProxyPort.Value, chkUseProxyAuthentication.Checked, txtProxyUsername.Text, txtProxyPassword.Text); - - btnTestProxy.Enabled = false; - btnTestProxy.Text = Language.strOptionsProxyTesting; - - _appUpdate.GetUpdateInfoCompletedEvent += GetUpdateInfoCompleted; - - _appUpdate.GetUpdateInfoAsync(); - } - - public void chkUseProxyAuthentication_CheckedChanged(object sender, EventArgs e) - { - if (chkUseProxyForAutomaticUpdates.Checked) - { - if (chkUseProxyAuthentication.Checked) - { - pnlProxyAuthentication.Enabled = true; - } - else - { - pnlProxyAuthentication.Enabled = false; - } - } - } -#endregion - - private void GetUpdateInfoCompleted(object sender, AsyncCompletedEventArgs e) - { - if (InvokeRequired) - { - AsyncCompletedEventHandler myDelegate = new AsyncCompletedEventHandler(GetUpdateInfoCompleted); - Invoke(myDelegate, new object[] {sender, e}); - return ; - } - - try - { - _appUpdate.GetUpdateInfoCompletedEvent -= GetUpdateInfoCompleted; - - btnTestProxy.Enabled = true; - btnTestProxy.Text = Language.strButtonTestProxy; - - if (e.Cancelled) - { - return ; - } - if (e.Error != null) - { - throw (e.Error); - } - - cTaskDialog.ShowCommandBox(this, System.Convert.ToString(Application.Info.ProductName), Language.strProxyTestSucceeded, "", Language.strButtonOK, false); - } - catch (Exception ex) - { - cTaskDialog.ShowCommandBox(this, System.Convert.ToString(Application.Info.ProductName), Language.strProxyTestFailed, Misc.GetExceptionMessageRecursive(ex), "", "", "", Language.strButtonOK, false, eSysIcons.Error, (PSTaskDialog.eSysIcons) 0); - } - } -#endregion - } -} diff --git a/mRemoteV1/CS/Forms/PasswordForm.Designer.cs b/mRemoteV1/CS/Forms/PasswordForm.Designer.cs deleted file mode 100644 index 22bc13c42..000000000 --- a/mRemoteV1/CS/Forms/PasswordForm.Designer.cs +++ /dev/null @@ -1,183 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -namespace mRemoteNG.Forms -{ - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class PasswordForm : System.Windows.Forms.Form - { - - //Form overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) - { - try - { - if (disposing && components != null) - { - components.Dispose(); - } - } - finally - { - base.Dispose(disposing); - } - } - - //Required by the Windows Form Designer - private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() - { - this.lblPassword = new System.Windows.Forms.Label(); - this.Load += new System.EventHandler(frmPassword_Load); - this.lblVerify = new System.Windows.Forms.Label(); - this.btnOK = new System.Windows.Forms.Button(); - this.btnOK.Click += new System.EventHandler(this.btnOK_Click); - this.btnCancel = new System.Windows.Forms.Button(); - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - this.lblStatus = new System.Windows.Forms.Label(); - this.pbLock = new System.Windows.Forms.PictureBox(); - this.txtVerify = new mRemoteNG.Controls.TextBox(); - this.txtVerify.TextChanged += new System.EventHandler(this.txtPassword_TextChanged); - this.txtPassword = new mRemoteNG.Controls.TextBox(); - this.txtPassword.TextChanged += new System.EventHandler(this.txtPassword_TextChanged); - ((System.ComponentModel.ISupportInitialize) this.pbLock).BeginInit(); - this.SuspendLayout(); - // - //lblPassword - // - this.lblPassword.AutoSize = true; - this.lblPassword.Location = new System.Drawing.Point(82, 12); - this.lblPassword.Name = "lblPassword"; - this.lblPassword.Size = new System.Drawing.Size(56, 13); - this.lblPassword.TabIndex = 1; - this.lblPassword.Text = "Password:"; - // - //lblVerify - // - this.lblVerify.AutoSize = true; - this.lblVerify.Location = new System.Drawing.Point(82, 51); - this.lblVerify.Name = "lblVerify"; - this.lblVerify.Size = new System.Drawing.Size(36, 13); - this.lblVerify.TabIndex = 3; - this.lblVerify.Text = "Verify:"; - // - //btnOK - // - this.btnOK.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); - this.btnOK.Location = new System.Drawing.Point(291, 119); - this.btnOK.Name = "btnOK"; - this.btnOK.Size = new System.Drawing.Size(75, 23); - this.btnOK.TabIndex = 7; - this.btnOK.Text = global::mRemoteNG.My.Language.strButtonOK; - this.btnOK.UseVisualStyleBackColor = true; - // - //btnCancel - // - this.btnCancel.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); - this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(210, 119); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(75, 23); - this.btnCancel.TabIndex = 6; - this.btnCancel.Text = global::mRemoteNG.My.Language.strButtonCancel; - this.btnCancel.UseVisualStyleBackColor = true; - // - //lblStatus - // - this.lblStatus.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.lblStatus.ForeColor = System.Drawing.Color.Red; - this.lblStatus.Location = new System.Drawing.Point(85, 90); - this.lblStatus.Name = "lblStatus"; - this.lblStatus.Size = new System.Drawing.Size(281, 13); - this.lblStatus.TabIndex = 5; - this.lblStatus.Text = "Status"; - this.lblStatus.TextAlign = System.Drawing.ContentAlignment.TopRight; - this.lblStatus.Visible = false; - // - //pbLock - // - this.pbLock.Image = global::My.Resources.Resources.Lock; - this.pbLock.Location = new System.Drawing.Point(12, 12); - this.pbLock.Name = "pbLock"; - this.pbLock.Size = new System.Drawing.Size(64, 64); - this.pbLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - this.pbLock.TabIndex = 7; - this.pbLock.TabStop = false; - // - //txtVerify - // - this.txtVerify.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.txtVerify.Location = new System.Drawing.Point(85, 67); - this.txtVerify.Name = "txtVerify"; - this.txtVerify.SelectAllOnFocus = true; - this.txtVerify.Size = new System.Drawing.Size(281, 20); - this.txtVerify.TabIndex = 4; - this.txtVerify.UseSystemPasswordChar = true; - // - //txtPassword - // - this.txtPassword.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.txtPassword.Location = new System.Drawing.Point(85, 28); - this.txtPassword.Name = "txtPassword"; - this.txtPassword.SelectAllOnFocus = true; - this.txtPassword.Size = new System.Drawing.Size(281, 20); - this.txtPassword.TabIndex = 2; - this.txtPassword.UseSystemPasswordChar = true; - // - //frmPassword - // - this.AcceptButton = this.btnOK; - this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.CancelButton = this.btnCancel; - this.ClientSize = new System.Drawing.Size(378, 154); - this.ControlBox = false; - this.Controls.Add(this.pbLock); - this.Controls.Add(this.txtVerify); - this.Controls.Add(this.txtPassword); - this.Controls.Add(this.lblStatus); - this.Controls.Add(this.lblVerify); - this.Controls.Add(this.lblPassword); - this.Controls.Add(this.btnCancel); - this.Controls.Add(this.btnOK); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "PasswordForm"; - this.ShowIcon = false; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Password"; - ((System.ComponentModel.ISupportInitialize) this.pbLock).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - private Controls.TextBox txtPassword; - private Controls.TextBox txtVerify; - private System.Windows.Forms.Label lblPassword; - private System.Windows.Forms.Label lblVerify; - private System.Windows.Forms.Button btnOK; - private System.Windows.Forms.Button btnCancel; - private System.Windows.Forms.Label lblStatus; - private System.Windows.Forms.PictureBox pbLock; - } -} diff --git a/mRemoteV1/CS/Forms/PasswordForm.cs b/mRemoteV1/CS/Forms/PasswordForm.cs deleted file mode 100644 index 73387d542..000000000 --- a/mRemoteV1/CS/Forms/PasswordForm.cs +++ /dev/null @@ -1,159 +0,0 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using mRemoteNG.My; - - -namespace mRemoteNG.Forms -{ - public partial class PasswordForm - { -#region Public Properties - private bool _Verify = true; -public bool Verify - { - get - { - return _Verify; - } - set - { - _Verify = value; - } - } - -public string Password - { - get - { - if (Verify) - { - return txtVerify.Text; - } - else - { - return txtPassword.Text; - } - } - } -#endregion - - -#region Constructors - public PasswordForm(string passwordName = null, bool verify = true) - { - // This call is required by the designer. - InitializeComponent(); - - // Add any initialization after the InitializeComponent() call. - _passwordName = passwordName; - this.Verify = verify; - } -#endregion - -#region Event Handlers - public void frmPassword_Load(object sender, EventArgs e) - { - ApplyLanguage(); - - if (!Verify) - { - Height = Height - (txtVerify.Top - txtPassword.Top); - lblVerify.Visible = false; - txtVerify.Visible = false; - } - } - - public void btnCancel_Click(System.Object sender, EventArgs e) - { - DialogResult = DialogResult.Cancel; - } - - public void btnOK_Click(System.Object sender, EventArgs e) - { - if (Verify) - { - if (VerifyPassword()) - { - DialogResult = DialogResult.OK; - } - } - else - { - DialogResult = DialogResult.OK; - } - } - - public void txtPassword_TextChanged(System.Object sender, EventArgs e) - { - HideStatus(); - } -#endregion - -#region Private Fields - private string _passwordName; -#endregion - -#region Private Methods - private void ApplyLanguage() - { - if (string.IsNullOrEmpty(_passwordName)) - { - Text = Language.strTitlePassword; - } - else - { - Text = string.Format(Language.strTitlePasswordWithName, _passwordName); - } - - lblPassword.Text = Language.strLabelPassword; - lblVerify.Text = Language.strLabelVerify; - - btnCancel.Text = Language.strButtonCancel; - btnOK.Text = Language.strButtonOK; - } - - private bool VerifyPassword() - { - if (txtPassword.Text.Length >= 3) - { - if (txtPassword.Text == txtVerify.Text) - { - return true; - } - else - { - ShowStatus(Language.strPasswordStatusMustMatch); - return false; - } - } - else - { - ShowStatus(Language.strPasswordStatusTooShort); - return false; - } - } - - private void ShowStatus(string status) - { - lblStatus.Visible = true; - lblStatus.Text = status; - } - - private void HideStatus() - { - lblStatus.Visible = false; - } -#endregion - } -} diff --git a/mRemoteV1/CS/Language/Language.Designer.cs b/mRemoteV1/CS/Language/Language.Designer.cs index cb65b81b5..ffc7bb4d5 100644 --- a/mRemoteV1/CS/Language/Language.Designer.cs +++ b/mRemoteV1/CS/Language/Language.Designer.cs @@ -1,8298 +1,6787 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - - -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.18408 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ - - -namespace mRemoteNG -{ - namespace My - { - - //This class was auto-generated by the StronglyTypedResourceBuilder - //class via a tool like ResGen or Visual Studio. - //To add or remove a member, edit your .ResX file then rerun ResGen - //with the /str option, or rebuild your VS project. - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), - global::System.Diagnostics.DebuggerNonUserCodeAttribute(), - global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]internal class Language - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]internal Language() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// -[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if (object.ReferenceEquals(resourceMan, null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("mRemoteNG.Language", typeof(Language).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// -[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to About. - /// -internal static string strAbout - { - get - { - return ResourceManager.GetString("strAbout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Active. - /// -internal static string strActive - { - get - { - return ResourceManager.GetString("strActive", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Active Directory. - /// -internal static string strActiveDirectory - { - get - { - return ResourceManager.GetString("strActiveDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Activity. - /// -internal static string strActivity - { - get - { - return ResourceManager.GetString("strActivity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Connection. - /// -internal static string strAddConnection - { - get - { - return ResourceManager.GetString("strAddConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New folder. - /// -internal static string strAddFolder - { - get - { - return ResourceManager.GetString("strAddFolder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AddNodeFromXML failed!. - /// -internal static string strAddNodeFromXmlFailed - { - get - { - return ResourceManager.GetString("strAddNodeFromXmlFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AddNodesFromSQL failed!. - /// -internal static string strAddNodesFromSqlFailed - { - get - { - return ResourceManager.GetString("strAddNodesFromSqlFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Allow only a single instance of the application (mRemoteNG restart required). - /// -internal static string strAllowOnlySingleInstance - { - get - { - return ResourceManager.GetString("strAllowOnlySingleInstance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Always. - /// -internal static string strAlways - { - get - { - return ResourceManager.GetString("strAlways", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Always connect, even if authentication fails. - /// -internal static string strAlwaysConnectEvenIfAuthFails - { - get - { - return ResourceManager.GetString("strAlwaysConnectEvenIfAuthFails", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Always show panel selection dialog when opening connections. - /// -internal static string strAlwaysShowPanelSelection - { - get - { - return ResourceManager.GetString("strAlwaysShowPanelSelection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Always show panel tabs. - /// -internal static string strAlwaysShowPanelTabs - { - get - { - return ResourceManager.GetString("strAlwaysShowPanelTabs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Always show notification area icon. - /// -internal static string strAlwaysShowSysTrayIcon - { - get - { - return ResourceManager.GetString("strAlwaysShowSysTrayIcon", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ask me again later. - /// -internal static string strAskUpdatesCommandAskLater - { - get - { - return ResourceManager.GetString("strAskUpdatesCommandAskLater", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Customize the settings now. - /// -internal static string strAskUpdatesCommandCustom - { - get - { - return ResourceManager.GetString("strAskUpdatesCommandCustom", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use the recommended settings. - /// -internal static string strAskUpdatesCommandRecommended - { - get - { - return ResourceManager.GetString("strAskUpdatesCommandRecommended", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} can automatically check for updates that may provide new features and bug fixes. It is recommended that you allow {0} to check for updates weekly.. - /// -internal static string strAskUpdatesContent - { - get - { - return ResourceManager.GetString("strAskUpdatesContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Automatic update settings. - /// -internal static string strAskUpdatesMainInstruction - { - get - { - return ResourceManager.GetString("strAskUpdatesMainInstruction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Aspect. - /// -internal static string strAspect - { - get - { - return ResourceManager.GetString("strAspect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Automatically get session information. - /// -internal static string strAutomaticallyGetSessionInfo - { - get - { - return ResourceManager.GetString("strAutomaticallyGetSessionInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Auto save every:. - /// -internal static string strAutoSaveEvery - { - get - { - return ResourceManager.GetString("strAutoSaveEvery", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Minutes (0 means disabled). - /// -internal static string strAutoSaveMins - { - get - { - return ResourceManager.GetString("strAutoSaveMins", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Latest version. - /// -internal static string strAvailableVersion - { - get - { - return ResourceManager.GetString("strAvailableVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Browse.... - /// -internal static string strButtonBrowse - { - get - { - return ResourceManager.GetString("strButtonBrowse", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Cancel. - /// -internal static string strButtonCancel - { - get - { - return ResourceManager.GetString("strButtonCancel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Change. - /// -internal static string strButtonChange - { - get - { - return ResourceManager.GetString("strButtonChange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Close. - /// -internal static string strButtonClose - { - get - { - return ResourceManager.GetString("strButtonClose", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Default Inheritance. - /// -internal static string strButtonDefaultInheritance - { - get - { - return ResourceManager.GetString("strButtonDefaultInheritance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Default Properties. - /// -internal static string strButtonDefaultProperties - { - get - { - return ResourceManager.GetString("strButtonDefaultProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disconnect. - /// -internal static string strButtonDisconnect - { - get - { - return ResourceManager.GetString("strButtonDisconnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Icon. - /// -internal static string strButtonIcon - { - get - { - return ResourceManager.GetString("strButtonIcon", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Import. - /// -internal static string strButtonImport - { - get - { - return ResourceManager.GetString("strButtonImport", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inheritance. - /// -internal static string strButtonInheritance - { - get - { - return ResourceManager.GetString("strButtonInheritance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Launch. - /// -internal static string strButtonLaunch - { - get - { - return ResourceManager.GetString("strButtonLaunch", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Launch PuTTY. - /// -internal static string strButtonLaunchPutty - { - get - { - return ResourceManager.GetString("strButtonLaunchPutty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &New. - /// -internal static string strButtonNew - { - get - { - return ResourceManager.GetString("strButtonNew", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &OK. - /// -internal static string strButtonOK - { - get - { - return ResourceManager.GetString("strButtonOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Properties. - /// -internal static string strButtonProperties - { - get - { - return ResourceManager.GetString("strButtonProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Scan. - /// -internal static string strButtonScan - { - get - { - return ResourceManager.GetString("strButtonScan", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Stop. - /// -internal static string strButtonStop - { - get - { - return ResourceManager.GetString("strButtonStop", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Test Proxy. - /// -internal static string strButtonTestProxy - { - get - { - return ResourceManager.GetString("strButtonTestProxy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You cannot import a normal connection file. - ///Please use File - Load Connections for normal connection files!. - /// -internal static string strCannotImportNormalSessionFile - { - get - { - return ResourceManager.GetString("strCannotImportNormalSessionFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot start Port Scan, incorrect IP format!. - /// -internal static string strCannotStartPortScan - { - get - { - return ResourceManager.GetString("strCannotStartPortScan", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Appearance. - /// -internal static string strCategoryAppearance - { - get - { - return ResourceManager.GetString("strCategoryAppearance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection. - /// -internal static string strCategoryConnection - { - get - { - return ResourceManager.GetString("strCategoryConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Credentials. - /// -internal static string strCategoryCredentials - { - get - { - return ResourceManager.GetString("strCategoryCredentials", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display. - /// -internal static string strCategoryDisplay - { - get - { - return ResourceManager.GetString("strCategoryDisplay", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Gateway. - /// -internal static string strCategoryGateway - { - get - { - return ResourceManager.GetString("strCategoryGateway", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to General. - /// -internal static string strCategoryGeneral - { - get - { - return ResourceManager.GetString("strCategoryGeneral", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Miscellaneous. - /// -internal static string strCategoryMiscellaneous - { - get - { - return ResourceManager.GetString("strCategoryMiscellaneous", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol. - /// -internal static string strCategoryProtocol - { - get - { - return ResourceManager.GetString("strCategoryProtocol", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Redirect. - /// -internal static string strCategoryRedirect - { - get - { - return ResourceManager.GetString("strCategoryRedirect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Always show this screen at startup. - /// -internal static string strCcAlwaysShowScreen - { - get - { - return ResourceManager.GetString("strCcAlwaysShowScreen", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Refresh. - /// -internal static string strCcCheckAgain - { - get - { - return ResourceManager.GetString("strCcCheckAgain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check failed!. - /// -internal static string strCcCheckFailed - { - get - { - return ResourceManager.GetString("strCcCheckFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check succeeded!. - /// -internal static string strCcCheckSucceeded - { - get - { - return ResourceManager.GetString("strCcCheckSucceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The (RDP) Sessions feature requires that you have a copy of eolwtscom.dll registered on your system. - ///mRemoteNG ships with this component but it is not registered automatically if you do not use the mRemoteNG Installer. - ///To register it manually, run the following command from an elevated command prompt: regsvr32 "C:\Program Files\mRemoteNG\eolwtscom.dll" (where C:\Program Files\mRemoteNG\ is the path to your mRemoteNG installation). - ///If this check still fails or you are unable to use the (RDP) Sessions feat [rest of string was truncated]";. - /// -internal static string strCcEOLFailed - { - get - { - return ResourceManager.GetString("strCcEOLFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to EOLWTSCOM was found and seems to be registered properly.. - /// -internal static string strCcEOLOK - { - get - { - return ResourceManager.GetString("strCcEOLOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To use the Gecko Rendering Engine you need to have XULrunner 1.8.1.x and the path to the installation set in your Options. - ///You can download XULrunner 1.8.1.3 here: ftp://ftp.mozilla.org/pub/xulrunner/releases/1.8.1.3/contrib/win32/ - ///When you are finished downloading extract the package to a path of your choice. Then in mRemoteNG go to Tools - Options - Advanced and enter the correct path in the XULrunner path field. - ///If you are still not able to pass this check or use the Gecko Engine in mRemoteNG please c [rest of string was truncated]";. - /// -internal static string strCcGeckoFailed - { - get - { - return ResourceManager.GetString("strCcGeckoFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to XULrunner was found and seems to be installed properly.. - /// -internal static string strCcGeckoOK - { - get - { - return ResourceManager.GetString("strCcGeckoOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ICA requires that the XenDesktop Online Plugin is installed and that the wfica.ocx library is registered. You can download the client here: http://www.citrix.com/download/ - ///If you have the XenDesktop Online Plugin installed and the check still fails, try to register wfica.ocx manually. - ///To do this open up the run dialog (Start - Run) and enter the following: regsvr32 "c:\Program Files\Citrix\ICA Client\wfica.ocx" (Where c:\Program Files\Citrix\ICA Client\ is the path to your XenDesktop Online Plugin install [rest of string was truncated]";. - /// -internal static string strCcICAFailed - { - get - { - return ResourceManager.GetString("strCcICAFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to All ICA components were found and seem to be registered properly. - ///Citrix ICA Client Control Version {0}. - /// -internal static string strCcICAOK - { - get - { - return ResourceManager.GetString("strCcICAOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to not installed properly. - /// -internal static string strCcNotInstalledProperly - { - get - { - return ResourceManager.GetString("strCcNotInstalledProperly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The SSH, Telnet, Rlogin and RAW protocols need PuTTY to work. PuTTY comes with every mRemoteNG package and is located in the installation path. - ///Please make sure that either you have the Putty.exe in your mRemoteNG directory (default: c:\Program Files\mRemoteNG\) or that you specified a valid path to your PuTTY executable in the Options (Tools - Options - Advanced - Custom PuTTY path). - /// -internal static string strCcPuttyFailed - { - get - { - return ResourceManager.GetString("strCcPuttyFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The PuTTY executable was found and should be ready to use.. - /// -internal static string strCcPuttyOK - { - get - { - return ResourceManager.GetString("strCcPuttyOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to For RDP to work properly you need to have at least Remote Desktop Connection (Terminal Services) Client 6.0 installed. You can download it here: http://support.microsoft.com/kb/925876 - ///If this check still fails or you are unable to use RDP, please consult the mRemoteNG Forum at http://forum.mremoteng.org/.. - /// -internal static string strCcRDPFailed - { - get - { - return ResourceManager.GetString("strCcRDPFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to All RDP components were found and seem to be registered properly. - ///Remote Desktop Connection Control Version {0}. - /// -internal static string strCcRDPOK - { - get - { - return ResourceManager.GetString("strCcRDPOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC requires VncSharpNG.dll to be located in your mRemoteNG application folder. - ///Please make sure that you have the VncSharpNG.dll file in your mRemoteNG application folder (usually C:\Program Files\mRemoteNG\). - ///If you are still not able to pass this check or use VNC in mRemoteNG please consult the mRemoteNG Forum at http://forum.mremoteng.org/. - /// -internal static string strCcVNCFailed - { - get - { - return ResourceManager.GetString("strCcVNCFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to All VNC components were found and seem to be registered properly. - ///VncSharpNG Control Version {0}. - /// -internal static string strCcVNCOK - { - get - { - return ResourceManager.GetString("strCcVNCOK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Automatically try to reconnect when disconnected from server (RDP && ICA only). - /// -internal static string strCheckboxAutomaticReconnect - { - get - { - return ResourceManager.GetString("strCheckboxAutomaticReconnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Domain. - /// -internal static string strCheckboxDomain - { - get - { - return ResourceManager.GetString("strCheckboxDomain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do not show this message again.. - /// -internal static string strCheckboxDoNotShowThisMessageAgain - { - get - { - return ResourceManager.GetString("strCheckboxDoNotShowThisMessageAgain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inheritance. - /// -internal static string strCheckboxInheritance - { - get - { - return ResourceManager.GetString("strCheckboxInheritance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password. - /// -internal static string strCheckboxPassword - { - get - { - return ResourceManager.GetString("strCheckboxPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This proxy server requires authentication. - /// -internal static string strCheckboxProxyAuthentication - { - get - { - return ResourceManager.GetString("strCheckboxProxyAuthentication", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use custom PuTTY path:. - /// -internal static string strCheckboxPuttyPath - { - get - { - return ResourceManager.GetString("strCheckboxPuttyPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reconnect when ready. - /// -internal static string strCheckboxReconnectWhenReady - { - get - { - return ResourceManager.GetString("strCheckboxReconnectWhenReady", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use a proxy server to connect. - /// -internal static string strCheckboxUpdateUseProxy - { - get - { - return ResourceManager.GetString("strCheckboxUpdateUseProxy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username. - /// -internal static string strCheckboxUsername - { - get - { - return ResourceManager.GetString("strCheckboxUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Wait for exit. - /// -internal static string strCheckboxWaitForExit - { - get - { - return ResourceManager.GetString("strCheckboxWaitForExit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check Again. - /// -internal static string strCheckForUpdate - { - get - { - return ResourceManager.GetString("strCheckForUpdate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check for updates and announcements at startup. - /// -internal static string strCheckForUpdatesOnStartup - { - get - { - return ResourceManager.GetString("strCheckForUpdatesOnStartup", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check now. - /// -internal static string strCheckNow - { - get - { - return ResourceManager.GetString("strCheckNow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check proper installation of components at startup. - /// -internal static string strCheckProperInstallationOfComponentsAtStartup - { - get - { - return ResourceManager.GetString("strCheckProperInstallationOfComponentsAtStartup", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Choose panel before connecting. - /// -internal static string strChoosePanelBeforeConnecting - { - get - { - return ResourceManager.GetString("strChoosePanelBeforeConnecting", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Closed Ports. - /// -internal static string strClosedPorts - { - get - { - return ResourceManager.GetString("strClosedPorts", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Collapse all folders. - /// -internal static string strCollapseAllFolders - { - get - { - return ResourceManager.GetString("strCollapseAllFolders", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Arguments. - /// -internal static string strColumnArguments - { - get - { - return ResourceManager.GetString("strColumnArguments", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display Name. - /// -internal static string strColumnDisplayName - { - get - { - return ResourceManager.GetString("strColumnDisplayName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Filename. - /// -internal static string strColumnFilename - { - get - { - return ResourceManager.GetString("strColumnFilename", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hostname/IP. - /// -internal static string strColumnHostnameIP - { - get - { - return ResourceManager.GetString("strColumnHostnameIP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Message. - /// -internal static string strColumnMessage - { - get - { - return ResourceManager.GetString("strColumnMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username. - /// -internal static string strColumnUsername - { - get - { - return ResourceManager.GetString("strColumnUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Wait For Exit. - /// -internal static string strColumnWaitForExit - { - get - { - return ResourceManager.GetString("strColumnWaitForExit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to E&xit {0}. - /// -internal static string strCommandExitProgram - { - get - { - return ResourceManager.GetString("strCommandExitProgram", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't parse command line args!. - /// -internal static string strCommandLineArgsCouldNotBeParsed - { - get - { - return ResourceManager.GetString("strCommandLineArgsCouldNotBeParsed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Open a connection file. - /// -internal static string strCommandOpenConnectionFile - { - get - { - return ResourceManager.GetString("strCommandOpenConnectionFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Try again. - /// -internal static string strCommandTryAgain - { - get - { - return ResourceManager.GetString("strCommandTryAgain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} has detected the Lenovo Auto Scroll Utility running on this system. This utility is known to cause problems with {0}. It is recommended that you disable or uninstall it.. - /// -internal static string strCompatibilityLenovoAutoScrollUtilityDetected - { - get - { - return ResourceManager.GetString("strCompatibilityLenovoAutoScrollUtilityDetected", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Compatibility problem detected. - /// -internal static string strCompatibilityProblemDetected - { - get - { - return ResourceManager.GetString("strCompatibilityProblemDetected", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Components Check. - /// -internal static string strComponentsCheck - { - get - { - return ResourceManager.GetString("strComponentsCheck", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to btnIcon_Click failed!. - /// -internal static string strConfigPropertyGridButtonIconClickFailed - { - get - { - return ResourceManager.GetString("strConfigPropertyGridButtonIconClickFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ShowHideGridItems failed!. - /// -internal static string strConfigPropertyGridHideItemsFailed - { - get - { - return ResourceManager.GetString("strConfigPropertyGridHideItemsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to IconMenu_Click failed!. - /// -internal static string strConfigPropertyGridMenuClickFailed - { - get - { - return ResourceManager.GetString("strConfigPropertyGridMenuClickFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Property Grid object failed!. - /// -internal static string strConfigPropertyGridObjectFailed - { - get - { - return ResourceManager.GetString("strConfigPropertyGridObjectFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SetHostStatus failed!. - /// -internal static string strConfigPropertyGridSetHostStatusFailed - { - get - { - return ResourceManager.GetString("strConfigPropertyGridSetHostStatusFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to pGrid_PopertyValueChanged failed!. - /// -internal static string strConfigPropertyGridValueFailed - { - get - { - return ResourceManager.GetString("strConfigPropertyGridValueFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config UI load failed!. - /// -internal static string strConfigUiLoadFailed - { - get - { - return ResourceManager.GetString("strConfigUiLoadFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do you want to close the connection, "{0}"?. - /// -internal static string strConfirmCloseConnectionMainInstruction - { - get - { - return ResourceManager.GetString("strConfirmCloseConnectionMainInstruction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to close the panel, "{0}"? Any connections that it contains will also be closed.. - /// -internal static string strConfirmCloseConnectionPanelMainInstruction - { - get - { - return ResourceManager.GetString("strConfirmCloseConnectionPanelMainInstruction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to delete the external tool, "{0}"?. - /// -internal static string strConfirmDeleteExternalTool - { - get - { - return ResourceManager.GetString("strConfirmDeleteExternalTool", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to delete the {0} selected external tools?. - /// -internal static string strConfirmDeleteExternalToolMultiple - { - get - { - return ResourceManager.GetString("strConfirmDeleteExternalToolMultiple", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to delete the connection, "{0}"?. - /// -internal static string strConfirmDeleteNodeConnection - { - get - { - return ResourceManager.GetString("strConfirmDeleteNodeConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to delete the empty folder, "{0}"?. - /// -internal static string strConfirmDeleteNodeFolder - { - get - { - return ResourceManager.GetString("strConfirmDeleteNodeFolder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to delete the folder, "{0}"? Any folders or connections that it contains will also be deleted.. - /// -internal static string strConfirmDeleteNodeFolderNotEmpty - { - get - { - return ResourceManager.GetString("strConfirmDeleteNodeFolderNotEmpty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do you want to close all open connections?. - /// -internal static string strConfirmExitMainInstruction - { - get - { - return ResourceManager.GetString("strConfirmExitMainInstruction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Are you sure you want to reset the panels to their default layout?. - /// -internal static string strConfirmResetLayout - { - get - { - return ResourceManager.GetString("strConfirmResetLayout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connect. - /// -internal static string strConnect - { - get - { - return ResourceManager.GetString("strConnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connect in fullscreen mode. - /// -internal static string strConnectInFullscreen - { - get - { - return ResourceManager.GetString("strConnectInFullscreen", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connecting.... - /// -internal static string strConnecting - { - get - { - return ResourceManager.GetString("strConnecting", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol Event Connected. - /// -internal static string strConnectionEventConnected - { - get - { - return ResourceManager.GetString("strConnectionEventConnected", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection to "{0}" via "{1}" established by user "{2}" (Description: "{3}"; User Field: "{4}"). - /// -internal static string strConnectionEventConnectedDetail - { - get - { - return ResourceManager.GetString("strConnectionEventConnectedDetail", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Conenction failed!. - /// -internal static string strConnectionEventConnectionFailed - { - get - { - return ResourceManager.GetString("strConnectionEventConnectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol Event ErrorOccured. - /// -internal static string strConnectionEventErrorOccured - { - get - { - return ResourceManager.GetString("strConnectionEventErrorOccured", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Opening connection failed!. - /// -internal static string strConnectionOpenFailed - { - get - { - return ResourceManager.GetString("strConnectionOpenFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot open connection: No hostname specified!. - /// -internal static string strConnectionOpenFailedNoHostname - { - get - { - return ResourceManager.GetString("strConnectionOpenFailedNoHostname", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP error! - ///Error Code: {0} - ///Error Description: {1}. - /// -internal static string strConnectionRdpErrorDetail - { - get - { - return ResourceManager.GetString("strConnectionRdpErrorDetail", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections. - /// -internal static string strConnections - { - get - { - return ResourceManager.GetString("strConnections", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't set default port!. - /// -internal static string strConnectionSetDefaultPortFailed - { - get - { - return ResourceManager.GetString("strConnectionSetDefaultPortFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't create backup of connections file!. - /// -internal static string strConnectionsFileBackupFailed - { - get - { - return ResourceManager.GetString("strConnectionsFileBackupFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't import connections file!. - /// -internal static string strConnectionsFileCouldNotBeImported - { - get - { - return ResourceManager.GetString("strConnectionsFileCouldNotBeImported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections file "{0}" could not be loaded!. - /// -internal static string strConnectionsFileCouldNotBeLoaded - { - get - { - return ResourceManager.GetString("strConnectionsFileCouldNotBeLoaded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections file "{0}" could not be loaded! - ///Starting with new connections file.. - /// -internal static string strConnectionsFileCouldNotBeLoadedNew - { - get - { - return ResourceManager.GetString("strConnectionsFileCouldNotBeLoadedNew", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't save connections file!. - /// -internal static string strConnectionsFileCouldNotBeSaved - { - get - { - return ResourceManager.GetString("strConnectionsFileCouldNotBeSaved", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't save connections file as "{0}"!. - /// -internal static string strConnectionsFileCouldNotSaveAs - { - get - { - return ResourceManager.GetString("strConnectionsFileCouldNotSaveAs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connect without credentials. - /// -internal static string strConnectNoCredentials - { - get - { - return ResourceManager.GetString("strConnectNoCredentials", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connect to console session. - /// -internal static string strConnectToConsoleSession - { - get - { - return ResourceManager.GetString("strConnectToConsoleSession", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connect (with options). - /// -internal static string strConnectWithOptions - { - get - { - return ResourceManager.GetString("strConnectWithOptions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection to {0} via {1} closed by user {2}.. - /// -internal static string strConnenctionClosedByUser - { - get - { - return ResourceManager.GetString("strConnenctionClosedByUser", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection to {0} via {1} closed by user {2}. (Description: "{3}"; User Field: "{4}"). - /// -internal static string strConnenctionClosedByUserDetail - { - get - { - return ResourceManager.GetString("strConnenctionClosedByUserDetail", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Event Closed. - /// -internal static string strConnenctionCloseEvent - { - get - { - return ResourceManager.GetString("strConnenctionCloseEvent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Event Closed failed!. - /// -internal static string strConnenctionCloseEventFailed - { - get - { - return ResourceManager.GetString("strConnenctionCloseEventFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't create new connections file!. - /// -internal static string strCouldNotCreateNewConnectionsFile - { - get - { - return ResourceManager.GetString("strCouldNotCreateNewConnectionsFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not find ToolStrip control in FilteredPropertyGrid.. - /// -internal static string strCouldNotFindToolStripInFilteredPropertyGrid - { - get - { - return ResourceManager.GetString("strCouldNotFindToolStripInFilteredPropertyGrid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Installed version. - /// -internal static string strCurrentVersion - { - get - { - return ResourceManager.GetString("strCurrentVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Default Theme. - /// -internal static string strDefaultTheme - { - get - { - return ResourceManager.GetString("strDefaultTheme", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Detect. - /// -internal static string strDetect - { - get - { - return ResourceManager.GetString("strDetect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Don't connect to console session. - /// -internal static string strDontConnectToConsoleSessionMenuItem - { - get - { - return ResourceManager.GetString("strDontConnectToConsoleSessionMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Don't connect if authentication fails. - /// -internal static string strDontConnectWhenAuthFails - { - get - { - return ResourceManager.GetString("strDontConnectWhenAuthFails", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Double click on tab closes it. - /// -internal static string strDoubleClickTabClosesIt - { - get - { - return ResourceManager.GetString("strDoubleClickTabClosesIt", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Download and Install. - /// -internal static string strDownloadAndInstall - { - get - { - return ResourceManager.GetString("strDownloadAndInstall", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Duplicate. - /// -internal static string strDuplicate - { - get - { - return ResourceManager.GetString("strDuplicate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do you want to continue with no password?. - /// -internal static string strEmptyPasswordContinue - { - get - { - return ResourceManager.GetString("strEmptyPasswordContinue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to For empty Username, Password or Domain fields use:. - /// -internal static string strEmptyUsernamePasswordDomainFields - { - get - { - return ResourceManager.GetString("strEmptyUsernamePasswordDomainFields", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 128-bit. - /// -internal static string strEnc128Bit - { - get - { - return ResourceManager.GetString("strEnc128Bit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 128-bit (logon only). - /// -internal static string strEnc128BitLogonOnly - { - get - { - return ResourceManager.GetString("strEnc128BitLogonOnly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 40-bit. - /// -internal static string strEnc40Bit - { - get - { - return ResourceManager.GetString("strEnc40Bit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 56-bit. - /// -internal static string strEnc56Bit - { - get - { - return ResourceManager.GetString("strEnc56Bit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Basic. - /// -internal static string strEncBasic - { - get - { - return ResourceManager.GetString("strEncBasic", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Completely encrypt connection file. - /// -internal static string strEncryptCompleteConnectionFile - { - get - { - return ResourceManager.GetString("strEncryptCompleteConnectionFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to End IP. - /// -internal static string strEndIP - { - get - { - return ResourceManager.GetString("strEndIP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to End Port. - /// -internal static string strEndPort - { - get - { - return ResourceManager.GetString("strEndPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AddExternalToolsToToolBar (frmMain) failed. {0}. - /// -internal static string strErrorAddExternalToolsToToolBarFailed - { - get - { - return ResourceManager.GetString("strErrorAddExternalToolsToToolBarFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to AddFolder (UI.Window.Tree) failed. {0}. - /// -internal static string strErrorAddFolderFailed - { - get - { - return ResourceManager.GetString("strErrorAddFolderFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The database version {0} is not compatible with this version of {1}.. - /// -internal static string strErrorBadDatabaseVersion - { - get - { - return ResourceManager.GetString("strErrorBadDatabaseVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to CloneNode (Tree.Node) failed . {0}. - /// -internal static string strErrorCloneNodeFailed - { - get - { - return ResourceManager.GetString("strErrorCloneNodeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error code {0}.. - /// -internal static string strErrorCode - { - get - { - return ResourceManager.GetString("strErrorCode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection list could not be saved.. - /// -internal static string strErrorConnectionListSaveFailed - { - get - { - return ResourceManager.GetString("strErrorConnectionListSaveFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to PuTTY could not be launched.. - /// -internal static string strErrorCouldNotLaunchPutty - { - get - { - return ResourceManager.GetString("strErrorCouldNotLaunchPutty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Decryption failed. {0}. - /// -internal static string strErrorDecryptionFailed - { - get - { - return ResourceManager.GetString("strErrorDecryptionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption failed. {0}. - /// -internal static string strErrorEncryptionFailed - { - get - { - return ResourceManager.GetString("strErrorEncryptionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Windows security setting, "System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing", is enabled. This setting is not compatible with {0}. - /// - ///See the Microsoft Support article at http://support.microsoft.com/kb/811833 for more information. - /// - ///{0} will now close.. - /// -internal static string strErrorFipsPolicyIncompatible - { - get - { - return ResourceManager.GetString("strErrorFipsPolicyIncompatible", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Errors. - /// -internal static string strErrors - { - get - { - return ResourceManager.GetString("strErrors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The startup connection file could not be loaded.{0}{0}{2}{0}{3}{0}{0}In order to prevent data loss, {1} will now exit.. - /// -internal static string strErrorStartupConnectionFileLoad - { - get - { - return ResourceManager.GetString("strErrorStartupConnectionFileLoad", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VerifyDatabaseVersion (Config.Connections.Save) failed. {0}. - /// -internal static string strErrorVerifyDatabaseVersionFailed - { - get - { - return ResourceManager.GetString("strErrorVerifyDatabaseVersionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Expand all folders. - /// -internal static string strExpandAllFolders - { - get - { - return ResourceManager.GetString("strExpandAllFolders", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Experimental. - /// -internal static string strExperimental - { - get - { - return ResourceManager.GetString("strExperimental", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export. - /// -internal static string strExport - { - get - { - return ResourceManager.GetString("strExport", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export everything. - /// -internal static string strExportEverything - { - get - { - return ResourceManager.GetString("strExportEverything", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export File. - /// -internal static string strExportFile - { - get - { - return ResourceManager.GetString("strExportFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export Items. - /// -internal static string strExportItems - { - get - { - return ResourceManager.GetString("strExportItems", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export mRemote/mRemoteNG XML. - /// -internal static string strExportmRemoteXML - { - get - { - return ResourceManager.GetString("strExportmRemoteXML", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export Properties. - /// -internal static string strExportProperties - { - get - { - return ResourceManager.GetString("strExportProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export the currently selected connection. - /// -internal static string strExportSelectedConnection - { - get - { - return ResourceManager.GetString("strExportSelectedConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Export the currently selected folder. - /// -internal static string strExportSelectedFolder - { - get - { - return ResourceManager.GetString("strExportSelectedFolder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Export to File.... - /// -internal static string strExportToFileMenuItem - { - get - { - return ResourceManager.GetString("strExportToFileMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ext. App. - /// -internal static string strExtApp - { - get - { - return ResourceManager.GetString("strExtApp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New External Tool. - /// -internal static string strExternalToolDefaultName - { - get - { - return ResourceManager.GetString("strExternalToolDefaultName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Includes icons by [FAMFAMFAM]. - /// -internal static string strFAMFAMFAMAttribution - { - get - { - return ResourceManager.GetString("strFAMFAMFAMAttribution", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to http://www.famfamfam.com/. - /// -internal static string strFAMFAMFAMAttributionURL - { - get - { - return ResourceManager.GetString("strFAMFAMFAMAttributionURL", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to File &Format:. - /// -internal static string strFileFormatLabel - { - get - { - return ResourceManager.GetString("strFileFormatLabel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to All Files (*.*). - /// -internal static string strFilterAll - { - get - { - return ResourceManager.GetString("strFilterAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to All importable files. - /// -internal static string strFilterAllImportable - { - get - { - return ResourceManager.GetString("strFilterAllImportable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Application Files (*.exe). - /// -internal static string strFilterApplication - { - get - { - return ResourceManager.GetString("strFilterApplication", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemote CSV Files (*.csv). - /// -internal static string strFiltermRemoteCSV - { - get - { - return ResourceManager.GetString("strFiltermRemoteCSV", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemote XML Files (*.xml). - /// -internal static string strFiltermRemoteXML - { - get - { - return ResourceManager.GetString("strFiltermRemoteXML", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to PuTTY Connection Manager files. - /// -internal static string strFilterPuttyConnectionManager - { - get - { - return ResourceManager.GetString("strFilterPuttyConnectionManager", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remote Desktop Connection Manager files (*.rdg). - /// -internal static string strFilterRdgFiles - { - get - { - return ResourceManager.GetString("strFilterRdgFiles", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP Files (*.rdp). - /// -internal static string strFilterRDP - { - get - { - return ResourceManager.GetString("strFilterRDP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to visionapp Remote Desktop 2008 CSV Files (*.csv). - /// -internal static string strFiltervRD2008CSV - { - get - { - return ResourceManager.GetString("strFiltervRD2008CSV", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inherit {0}. - /// -internal static string strFormatInherit - { - get - { - return ResourceManager.GetString("strFormatInherit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Description of inherited property: {0}. - /// -internal static string strFormatInheritDescription - { - get - { - return ResourceManager.GetString("strFormatInheritDescription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Free. - /// -internal static string strFree - { - get - { - return ResourceManager.GetString("strFree", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Fullscreen. - /// -internal static string strFullscreen - { - get - { - return ResourceManager.GetString("strFullscreen", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to General. - /// -internal static string strGeneral - { - get - { - return ResourceManager.GetString("strGeneral", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Get Connection Info From SQL failed. - /// -internal static string strGetConnectionInfoFromSqlFailed - { - get - { - return ResourceManager.GetString("strGetConnectionInfoFromSqlFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An error occured while loading the connection entry for "{0}" from "{1}". {2}. - /// -internal static string strGetConnectionInfoFromXmlFailed - { - get - { - return ResourceManager.GetString("strGetConnectionInfoFromXmlFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Automatic Reconnect. - /// -internal static string strGroupboxAutomaticReconnect - { - get - { - return ResourceManager.GetString("strGroupboxAutomaticReconnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection. - /// -internal static string strGroupboxConnection - { - get - { - return ResourceManager.GetString("strGroupboxConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to External Tool Properties. - /// -internal static string strGroupboxExternalToolProperties - { - get - { - return ResourceManager.GetString("strGroupboxExternalToolProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Files. - /// -internal static string strGroupboxFiles - { - get - { - return ResourceManager.GetString("strGroupboxFiles", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Host. - /// -internal static string strHost - { - get - { - return ResourceManager.GetString("strHost", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to HTTP. - /// -internal static string strHttp - { - get - { - return ResourceManager.GetString("strHttp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to HTTP Connect Failed!. - /// -internal static string strHttpConnectFailed - { - get - { - return ResourceManager.GetString("strHttpConnectFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't create new HTTP Connection!. - /// -internal static string strHttpConnectionFailed - { - get - { - return ResourceManager.GetString("strHttpConnectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Changing HTTP Document Tile Failed!. - /// -internal static string strHttpDocumentTileChangeFailed - { - get - { - return ResourceManager.GetString("strHttpDocumentTileChangeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Gecko (Firefox). - /// -internal static string strHttpGecko - { - get - { - return ResourceManager.GetString("strHttpGecko", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internet Explorer. - /// -internal static string strHttpInternetExplorer - { - get - { - return ResourceManager.GetString("strHttpInternetExplorer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to HTTPS. - /// -internal static string strHttps - { - get - { - return ResourceManager.GetString("strHttps", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Set HTTP Props failed!. - /// -internal static string strHttpSetPropsFailed - { - get - { - return ResourceManager.GetString("strHttpSetPropsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ICA. - /// -internal static string strICA - { - get - { - return ResourceManager.GetString("strICA", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't create new ICA Connection!. - /// -internal static string strIcaConnectionFailed - { - get - { - return ResourceManager.GetString("strIcaConnectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Loading ICA Plugin failed!. - /// -internal static string strIcaControlFailed - { - get - { - return ResourceManager.GetString("strIcaControlFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ICA SetCredentials failed!. - /// -internal static string strIcaSetCredentialsFailed - { - get - { - return ResourceManager.GetString("strIcaSetCredentialsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ICA Set Event Handlers Failed!. - /// -internal static string strIcaSetEventHandlersFailed - { - get - { - return ResourceManager.GetString("strIcaSetEventHandlersFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ICA Set Props Failed!. - /// -internal static string strIcaSetPropsFailed - { - get - { - return ResourceManager.GetString("strIcaSetPropsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ICA Set Resolution Failed!. - /// -internal static string strIcaSetResolutionFailed - { - get - { - return ResourceManager.GetString("strIcaSetResolutionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Identify quick connect tabs by adding the prefix "Quick:". - /// -internal static string strIdentifyQuickConnectTabs - { - get - { - return ResourceManager.GetString("strIdentifyQuickConnectTabs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import from Active Directory. - /// -internal static string strImportAD - { - get - { - return ResourceManager.GetString("strImportAD", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import/Export. - /// -internal static string strImportExport - { - get - { - return ResourceManager.GetString("strImportExport", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An error occurred while importing the file, "{0}".. - /// -internal static string strImportFileFailedContent - { - get - { - return ResourceManager.GetString("strImportFileFailedContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import failed. - /// -internal static string strImportFileFailedMainInstruction - { - get - { - return ResourceManager.GetString("strImportFileFailedMainInstruction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import from &File.... - /// -internal static string strImportFromFileMenuItem - { - get - { - return ResourceManager.GetString("strImportFromFileMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Under the root{0}{1}|Under the selected folder{0}{2}. - /// -internal static string strImportLocationCommandButtons - { - get - { - return ResourceManager.GetString("strImportLocationCommandButtons", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Where would you like the imported items to be placed?. - /// -internal static string strImportLocationContent - { - get - { - return ResourceManager.GetString("strImportLocationContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import location. - /// -internal static string strImportLocationMainInstruction - { - get - { - return ResourceManager.GetString("strImportLocationMainInstruction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Import. - /// -internal static string strImportMenuItem - { - get - { - return ResourceManager.GetString("strImportMenuItem", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import mRemote/mRemoteNG XML. - /// -internal static string strImportmRemoteXML - { - get - { - return ResourceManager.GetString("strImportmRemoteXML", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import from Port Scan. - /// -internal static string strImportPortScan - { - get - { - return ResourceManager.GetString("strImportPortScan", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import from .RDP file(s). - /// -internal static string strImportRDPFiles - { - get - { - return ResourceManager.GetString("strImportRDPFiles", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Inactive. - /// -internal static string strInactive - { - get - { - return ResourceManager.GetString("strInactive", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Informations. - /// -internal static string strInformations - { - get - { - return ResourceManager.GetString("strInformations", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemoteNG is up to date. - /// -internal static string strInheritNewConnection - { - get - { - return ResourceManager.GetString("strInheritNewConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection failed!. - /// -internal static string strIntAppConnectionFailed - { - get - { - return ResourceManager.GetString("strIntAppConnectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Dispose of Int App process failed!. - /// -internal static string strIntAppDisposeFailed - { - get - { - return ResourceManager.GetString("strIntAppDisposeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Int App Focus Failed!. - /// -internal static string strIntAppFocusFailed - { - get - { - return ResourceManager.GetString("strIntAppFocusFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Int App Handle: {0}. - /// -internal static string strIntAppHandle - { - get - { - return ResourceManager.GetString("strIntAppHandle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Killing Int App Process failed!. - /// -internal static string strIntAppKillFailed - { - get - { - return ResourceManager.GetString("strIntAppKillFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Panel Handle: {0}. - /// -internal static string strIntAppParentHandle - { - get - { - return ResourceManager.GetString("strIntAppParentHandle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Int App Resize failed!. - /// -internal static string strIntAppResizeFailed - { - get - { - return ResourceManager.GetString("strIntAppResizeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to --- IntApp Stuff ---. - /// -internal static string strIntAppStuff - { - get - { - return ResourceManager.GetString("strIntAppStuff", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Int App Title: {0}. - /// -internal static string strIntAppTitle - { - get - { - return ResourceManager.GetString("strIntAppTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to CTRL-ALT-DEL. - /// -internal static string strKeysCtrlAltDel - { - get - { - return ResourceManager.GetString("strKeysCtrlAltDel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to CTRL-ESC. - /// -internal static string strKeysCtrlEsc - { - get - { - return ResourceManager.GetString("strKeysCtrlEsc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Address:. - /// -internal static string strLabelAddress - { - get - { - return ResourceManager.GetString("strLabelAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Arguments:. - /// -internal static string strLabelArguments - { - get - { - return ResourceManager.GetString("strLabelArguments", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Change Log:. - /// -internal static string strLabelChangeLog - { - get - { - return ResourceManager.GetString("strLabelChangeLog", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to When closing connections:. - /// -internal static string strLabelClosingConnections - { - get - { - return ResourceManager.GetString("strLabelClosingConnections", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Connect:. - /// -internal static string strLabelConnect - { - get - { - return ResourceManager.GetString("strLabelConnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display Name. - /// -internal static string strLabelDisplayName - { - get - { - return ResourceManager.GetString("strLabelDisplayName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Domain:. - /// -internal static string strLabelDomain - { - get - { - return ResourceManager.GetString("strLabelDomain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Filename:. - /// -internal static string strLabelFilename - { - get - { - return ResourceManager.GetString("strLabelFilename", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hostname:. - /// -internal static string strLabelHostname - { - get - { - return ResourceManager.GetString("strLabelHostname", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Options:. - /// -internal static string strLabelOptions - { - get - { - return ResourceManager.GetString("strLabelOptions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password:. - /// -internal static string strLabelPassword - { - get - { - return ResourceManager.GetString("strLabelPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Port:. - /// -internal static string strLabelPort - { - get - { - return ResourceManager.GetString("strLabelPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Portable Edition. - /// -internal static string strLabelPortableEdition - { - get - { - return ResourceManager.GetString("strLabelPortableEdition", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol:. - /// -internal static string strLabelProtocol - { - get - { - return ResourceManager.GetString("strLabelProtocol", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to To configure PuTTY sessions click this button:. - /// -internal static string strLabelPuttySessionsConfig - { - get - { - return ResourceManager.GetString("strLabelPuttySessionsConfig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Maximum PuTTY and integrated external tools wait time:. - /// -internal static string strLabelPuttyTimeout - { - get - { - return ResourceManager.GetString("strLabelPuttyTimeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Released under the GNU General Public License (GPL). - /// -internal static string strLabelReleasedUnderGPL - { - get - { - return ResourceManager.GetString("strLabelReleasedUnderGPL", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to seconds. - /// -internal static string strLabelSeconds - { - get - { - return ResourceManager.GetString("strLabelSeconds", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select a panel from the list below or click New to add a new one. Click OK to continue.. - /// -internal static string strLabelSelectPanel - { - get - { - return ResourceManager.GetString("strLabelSelectPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Server Status:. - /// -internal static string strLabelServerStatus - { - get - { - return ResourceManager.GetString("strLabelServerStatus", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Database:. - /// -internal static string strLabelSQLDatabaseName - { - get - { - return ResourceManager.GetString("strLabelSQLDatabaseName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Database:. - /// -internal static string strLabelSQLServerDatabaseName - { - get - { - return ResourceManager.GetString("strLabelSQLServerDatabaseName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username:. - /// -internal static string strLabelUsername - { - get - { - return ResourceManager.GetString("strLabelUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Verify:. - /// -internal static string strLabelVerify - { - get - { - return ResourceManager.GetString("strLabelVerify", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Language. - /// -internal static string strLanguage - { - get - { - return ResourceManager.GetString("strLanguage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to (Automatically Detect). - /// -internal static string strLanguageDefault - { - get - { - return ResourceManager.GetString("strLanguageDefault", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} must be restarted before changes to the language will take effect.. - /// -internal static string strLanguageRestartRequired - { - get - { - return ResourceManager.GetString("strLanguageRestartRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Load from SQL failed. - /// -internal static string strLoadFromSqlFailed - { - get - { - return ResourceManager.GetString("strLoadFromSqlFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection information could not be loaded from the SQL server.. - /// -internal static string strLoadFromSqlFailedContent - { - get - { - return ResourceManager.GetString("strLoadFromSqlFailedContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Load From XML failed!. - /// -internal static string strLoadFromXmlFailed - { - get - { - return ResourceManager.GetString("strLoadFromXmlFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Local file. - /// -internal static string strLocalFile - { - get - { - return ResourceManager.GetString("strLocalFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Local file does not exist!. - /// -internal static string strLocalFileDoesNotExist - { - get - { - return ResourceManager.GetString("strLocalFileDoesNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Logoff. - /// -internal static string strLogOff - { - get - { - return ResourceManager.GetString("strLogOff", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Writing to report file failed!. - /// -internal static string strLogWriteToFileFailed - { - get - { - return ResourceManager.GetString("strLogWriteToFileFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't save report to final location.. - /// -internal static string strLogWriteToFileFinalLocationFailed - { - get - { - return ResourceManager.GetString("strLogWriteToFileFinalLocationFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Uses the Magic library by [Crownwood Software]. - /// -internal static string strMagicLibraryAttribution - { - get - { - return ResourceManager.GetString("strMagicLibraryAttribution", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to http://www.dotnetmagic.com/. - /// -internal static string strMagicLibraryAttributionURL - { - get - { - return ResourceManager.GetString("strMagicLibraryAttributionURL", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to About. - /// -internal static string strMenuAbout - { - get - { - return ResourceManager.GetString("strMenuAbout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add Connection Panel. - /// -internal static string strMenuAddConnectionPanel - { - get - { - return ResourceManager.GetString("strMenuAddConnectionPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Announcements. - /// -internal static string strMenuAnnouncements - { - get - { - return ResourceManager.GetString("strMenuAnnouncements", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check for Updates. - /// -internal static string strMenuCheckForUpdates - { - get - { - return ResourceManager.GetString("strMenuCheckForUpdates", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config. - /// -internal static string strMenuConfig - { - get - { - return ResourceManager.GetString("strMenuConfig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connect. - /// -internal static string strMenuConnect - { - get - { - return ResourceManager.GetString("strMenuConnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Panels. - /// -internal static string strMenuConnectionPanels - { - get - { - return ResourceManager.GetString("strMenuConnectionPanels", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections. - /// -internal static string strMenuConnections - { - get - { - return ResourceManager.GetString("strMenuConnections", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections and Config. - /// -internal static string strMenuConnectionsAndConfig - { - get - { - return ResourceManager.GetString("strMenuConnectionsAndConfig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy. - /// -internal static string strMenuCopy - { - get - { - return ResourceManager.GetString("strMenuCopy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ctrl-Alt-Del. - /// -internal static string strMenuCtrlAltDel - { - get - { - return ResourceManager.GetString("strMenuCtrlAltDel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ctrl-Esc. - /// -internal static string strMenuCtrlEsc - { - get - { - return ResourceManager.GetString("strMenuCtrlEsc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete.... - /// -internal static string strMenuDelete - { - get - { - return ResourceManager.GetString("strMenuDelete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete Connection.... - /// -internal static string strMenuDeleteConnection - { - get - { - return ResourceManager.GetString("strMenuDeleteConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete External Tool.... - /// -internal static string strMenuDeleteExternalTool - { - get - { - return ResourceManager.GetString("strMenuDeleteExternalTool", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete Folder.... - /// -internal static string strMenuDeleteFolder - { - get - { - return ResourceManager.GetString("strMenuDeleteFolder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disconnect. - /// -internal static string strMenuDisconnect - { - get - { - return ResourceManager.GetString("strMenuDisconnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Donate. - /// -internal static string strMenuDonate - { - get - { - return ResourceManager.GetString("strMenuDonate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Duplicate. - /// -internal static string strMenuDuplicate - { - get - { - return ResourceManager.GetString("strMenuDuplicate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Duplicate Connection. - /// -internal static string strMenuDuplicateConnection - { - get - { - return ResourceManager.GetString("strMenuDuplicateConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Duplicate Folder. - /// -internal static string strMenuDuplicateFolder - { - get - { - return ResourceManager.GetString("strMenuDuplicateFolder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Duplicate Tab. - /// -internal static string strMenuDuplicateTab - { - get - { - return ResourceManager.GetString("strMenuDuplicateTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Exit. - /// -internal static string strMenuExit - { - get - { - return ResourceManager.GetString("strMenuExit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to External Tools. - /// -internal static string strMenuExternalTools - { - get - { - return ResourceManager.GetString("strMenuExternalTools", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to External Tools Toolbar. - /// -internal static string strMenuExternalToolsToolbar - { - get - { - return ResourceManager.GetString("strMenuExternalToolsToolbar", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &File. - /// -internal static string strMenuFile - { - get - { - return ResourceManager.GetString("strMenuFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Full Screen. - /// -internal static string strMenuFullScreen - { - get - { - return ResourceManager.GetString("strMenuFullScreen", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Full Screen (RDP). - /// -internal static string strMenuFullScreenRDP - { - get - { - return ResourceManager.GetString("strMenuFullScreenRDP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Help. - /// -internal static string strMenuHelp - { - get - { - return ResourceManager.GetString("strMenuHelp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemoteNG Help. - /// -internal static string strMenuHelpContents - { - get - { - return ResourceManager.GetString("strMenuHelpContents", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Jump To. - /// -internal static string strMenuJumpTo - { - get - { - return ResourceManager.GetString("strMenuJumpTo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Launch External Tool. - /// -internal static string strMenuLaunchExternalTool - { - get - { - return ResourceManager.GetString("strMenuLaunchExternalTool", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Connection File. - /// -internal static string strMenuNewConnectionFile - { - get - { - return ResourceManager.GetString("strMenuNewConnectionFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New External Tool. - /// -internal static string strMenuNewExternalTool - { - get - { - return ResourceManager.GetString("strMenuNewExternalTool", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Notifications. - /// -internal static string strMenuNotifications - { - get - { - return ResourceManager.GetString("strMenuNotifications", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Copy All. - /// -internal static string strMenuNotificationsCopyAll - { - get - { - return ResourceManager.GetString("strMenuNotificationsCopyAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete. - /// -internal static string strMenuNotificationsDelete - { - get - { - return ResourceManager.GetString("strMenuNotificationsDelete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete All. - /// -internal static string strMenuNotificationsDeleteAll - { - get - { - return ResourceManager.GetString("strMenuNotificationsDeleteAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Open Connection File.... - /// -internal static string strMenuOpenConnectionFile - { - get - { - return ResourceManager.GetString("strMenuOpenConnectionFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Options. - /// -internal static string strMenuOptions - { - get - { - return ResourceManager.GetString("strMenuOptions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Paste. - /// -internal static string strMenuPaste - { - get - { - return ResourceManager.GetString("strMenuPaste", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Port Scan. - /// -internal static string strMenuPortScan - { - get - { - return ResourceManager.GetString("strMenuPortScan", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Quick Connect Toolbar. - /// -internal static string strMenuQuickConnectToolbar - { - get - { - return ResourceManager.GetString("strMenuQuickConnectToolbar", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reconnect. - /// -internal static string strMenuReconnect - { - get - { - return ResourceManager.GetString("strMenuReconnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Refresh Screen (VNC). - /// -internal static string strMenuRefreshScreen - { - get - { - return ResourceManager.GetString("strMenuRefreshScreen", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rename. - /// -internal static string strMenuRename - { - get - { - return ResourceManager.GetString("strMenuRename", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rename Connection. - /// -internal static string strMenuRenameConnection - { - get - { - return ResourceManager.GetString("strMenuRenameConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rename Folder. - /// -internal static string strMenuRenameFolder - { - get - { - return ResourceManager.GetString("strMenuRenameFolder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rename Tab. - /// -internal static string strMenuRenameTab - { - get - { - return ResourceManager.GetString("strMenuRenameTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Report a Bug. - /// -internal static string strMenuReportBug - { - get - { - return ResourceManager.GetString("strMenuReportBug", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reset layout. - /// -internal static string strMenuResetLayout - { - get - { - return ResourceManager.GetString("strMenuResetLayout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save Connection File. - /// -internal static string strMenuSaveConnectionFile - { - get - { - return ResourceManager.GetString("strMenuSaveConnectionFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save Connection File As.... - /// -internal static string strMenuSaveConnectionFileAs - { - get - { - return ResourceManager.GetString("strMenuSaveConnectionFileAs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Screenshot. - /// -internal static string strMenuScreenshot - { - get - { - return ResourceManager.GetString("strMenuScreenshot", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Screenshot Manager. - /// -internal static string strMenuScreenshotManager - { - get - { - return ResourceManager.GetString("strMenuScreenshotManager", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Send Special Keys (VNC). - /// -internal static string strMenuSendSpecialKeys - { - get - { - return ResourceManager.GetString("strMenuSendSpecialKeys", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Retrieve. - /// -internal static string strMenuSessionRetrieve - { - get - { - return ResourceManager.GetString("strMenuSessionRetrieve", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sessions. - /// -internal static string strMenuSessions - { - get - { - return ResourceManager.GetString("strMenuSessions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sessions and Screenshots. - /// -internal static string strMenuSessionsAndScreenshots - { - get - { - return ResourceManager.GetString("strMenuSessionsAndScreenshots", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Show Help Text. - /// -internal static string strMenuShowHelpText - { - get - { - return ResourceManager.GetString("strMenuShowHelpText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show Text. - /// -internal static string strMenuShowText - { - get - { - return ResourceManager.GetString("strMenuShowText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SmartSize (RDP/VNC). - /// -internal static string strMenuSmartSize - { - get - { - return ResourceManager.GetString("strMenuSmartSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSH File Transfer. - /// -internal static string strMenuSSHFileTransfer - { - get - { - return ResourceManager.GetString("strMenuSSHFileTransfer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Start Chat (VNC). - /// -internal static string strMenuStartChat - { - get - { - return ResourceManager.GetString("strMenuStartChat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Support Forum. - /// -internal static string strMenuSupportForum - { - get - { - return ResourceManager.GetString("strMenuSupportForum", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Tools. - /// -internal static string strMenuTools - { - get - { - return ResourceManager.GetString("strMenuTools", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Transfer File (SSH). - /// -internal static string strMenuTransferFile - { - get - { - return ResourceManager.GetString("strMenuTransferFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &View. - /// -internal static string strMenuView - { - get - { - return ResourceManager.GetString("strMenuView", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to View Only (VNC). - /// -internal static string strMenuViewOnly - { - get - { - return ResourceManager.GetString("strMenuViewOnly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Website. - /// -internal static string strMenuWebsite - { - get - { - return ResourceManager.GetString("strMenuWebsite", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Minimize to notification area. - /// -internal static string strMinimizeToSysTray - { - get - { - return ResourceManager.GetString("strMinimizeToSysTray", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move down. - /// -internal static string strMoveDown - { - get - { - return ResourceManager.GetString("strMoveDown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move up. - /// -internal static string strMoveUp - { - get - { - return ResourceManager.GetString("strMoveUp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemoteNG CSV. - /// -internal static string strMremoteNgCsv - { - get - { - return ResourceManager.GetString("strMremoteNgCsv", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemoteNG XML. - /// -internal static string strMremoteNgXml - { - get - { - return ResourceManager.GetString("strMremoteNgXml", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to My current credentials (Windows logon information). - /// -internal static string strMyCurrentWindowsCreds - { - get - { - return ResourceManager.GetString("strMyCurrentWindowsCreds", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Never. - /// -internal static string strNever - { - get - { - return ResourceManager.GetString("strNever", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Connection. - /// -internal static string strNewConnection - { - get - { - return ResourceManager.GetString("strNewConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Folder. - /// -internal static string strNewFolder - { - get - { - return ResourceManager.GetString("strNewFolder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Panel. - /// -internal static string strNewPanel - { - get - { - return ResourceManager.GetString("strNewPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Root. - /// -internal static string strNewRoot - { - get - { - return ResourceManager.GetString("strNewRoot", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Title. - /// -internal static string strNewTitle - { - get - { - return ResourceManager.GetString("strNewTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No. - /// -internal static string strNo - { - get - { - return ResourceManager.GetString("strNo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No Compression. - /// -internal static string strNoCompression - { - get - { - return ResourceManager.GetString("strNoCompression", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No Ext. App specified.. - /// -internal static string strNoExtAppDefined - { - get - { - return ResourceManager.GetString("strNoExtAppDefined", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to None. - /// -internal static string strNoInformation - { - get - { - return ResourceManager.GetString("strNoInformation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to None. - /// -internal static string strNone - { - get - { - return ResourceManager.GetString("strNone", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Normal. - /// -internal static string strNormal - { - get - { - return ResourceManager.GetString("strNormal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No SmartSize. - /// -internal static string strNoSmartSize - { - get - { - return ResourceManager.GetString("strNoSmartSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No update available. - /// -internal static string strNoUpdateAvailable - { - get - { - return ResourceManager.GetString("strNoUpdateAvailable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You are trying to load a connection file that was created using an very early version of mRemote, this could result in an runtime error. - ///If you run into such an error, please create a new connection file!. - /// -internal static string strOldConffile - { - get - { - return ResourceManager.GetString("strOldConffile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Open new tab to the right of the currently selected tab. - /// -internal static string strOpenNewTabRight - { - get - { - return ResourceManager.GetString("strOpenNewTabRight", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Open Ports. - /// -internal static string strOpenPorts - { - get - { - return ResourceManager.GetString("strOpenPorts", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Delete. - /// -internal static string strOptionsKeyboardButtonDelete - { - get - { - return ResourceManager.GetString("strOptionsKeyboardButtonDelete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &New. - /// -internal static string strOptionsKeyboardButtonNew - { - get - { - return ResourceManager.GetString("strOptionsKeyboardButtonNew", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Reset to Default. - /// -internal static string strOptionsKeyboardButtonReset - { - get - { - return ResourceManager.GetString("strOptionsKeyboardButtonReset", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reset &All to Default. - /// -internal static string strOptionsKeyboardButtonResetAll - { - get - { - return ResourceManager.GetString("strOptionsKeyboardButtonResetAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Tabs. - /// -internal static string strOptionsKeyboardCommandsGroupTabs - { - get - { - return ResourceManager.GetString("strOptionsKeyboardCommandsGroupTabs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Next Tab. - /// -internal static string strOptionsKeyboardCommandsNextTab - { - get - { - return ResourceManager.GetString("strOptionsKeyboardCommandsNextTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Previous Tab. - /// -internal static string strOptionsKeyboardCommandsPreviousTab - { - get - { - return ResourceManager.GetString("strOptionsKeyboardCommandsPreviousTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Modify Shortcut. - /// -internal static string strOptionsKeyboardGroupModifyShortcut - { - get - { - return ResourceManager.GetString("strOptionsKeyboardGroupModifyShortcut", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Keyboard Shortcuts. - /// -internal static string strOptionsKeyboardLabelKeyboardShortcuts - { - get - { - return ResourceManager.GetString("strOptionsKeyboardLabelKeyboardShortcuts", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Testing.... - /// -internal static string strOptionsProxyTesting - { - get - { - return ResourceManager.GetString("strOptionsProxyTesting", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Keyboard. - /// -internal static string strOptionsTabKeyboard - { - get - { - return ResourceManager.GetString("strOptionsTabKeyboard", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Theme. - /// -internal static string strOptionsTabTheme - { - get - { - return ResourceManager.GetString("strOptionsTabTheme", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Delete. - /// -internal static string strOptionsThemeButtonDelete - { - get - { - return ResourceManager.GetString("strOptionsThemeButtonDelete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &New. - /// -internal static string strOptionsThemeButtonNew - { - get - { - return ResourceManager.GetString("strOptionsThemeButtonNew", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Panel Name. - /// -internal static string strPanelName - { - get - { - return ResourceManager.GetString("strPanelName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password protect. - /// -internal static string strPasswordProtect - { - get - { - return ResourceManager.GetString("strPasswordProtect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Both passwords must match.. - /// -internal static string strPasswordStatusMustMatch - { - get - { - return ResourceManager.GetString("strPasswordStatusMustMatch", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The password must be at least 3 characters long.. - /// -internal static string strPasswordStatusTooShort - { - get - { - return ResourceManager.GetString("strPasswordStatusTooShort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please fill all fields. - /// -internal static string strPleaseFillAllFields - { - get - { - return ResourceManager.GetString("strPleaseFillAllFields", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Port scan complete.. - /// -internal static string strPortScanComplete - { - get - { - return ResourceManager.GetString("strPortScanComplete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't load PortScan panel!. - /// -internal static string strPortScanCouldNotLoadPanel - { - get - { - return ResourceManager.GetString("strPortScanCouldNotLoadPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to (These properties will only be saved if you select mRemote/mRemoteNG XML as output file format!). - /// -internal static string strPropertiesWillOnlyBeSavedMRemoteXML - { - get - { - return ResourceManager.GetString("strPropertiesWillOnlyBeSavedMRemoteXML", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter the hostname or ip you want to connect to.. - /// -internal static string strPropertyDescriptionAddress - { - get - { - return ResourceManager.GetString("strPropertyDescriptionAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Toggle all inheritance options.. - /// -internal static string strPropertyDescriptionAll - { - get - { - return ResourceManager.GetString("strPropertyDescriptionAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select which authentication level this connection should use.. - /// -internal static string strPropertyDescriptionAuthenticationLevel - { - get - { - return ResourceManager.GetString("strPropertyDescriptionAuthenticationLevel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select how you want to authenticate against the VNC server.. - /// -internal static string strPropertyDescriptionAuthenticationMode - { - get - { - return ResourceManager.GetString("strPropertyDescriptionAuthenticationMode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether to automatically resize the connection when the window is resized or when fullscreen mode is toggled. Requires RDC 8.0 or higher.. - /// -internal static string strPropertyDescriptionAutomaticResize - { - get - { - return ResourceManager.GetString("strPropertyDescriptionAutomaticResize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether to use bitmap caching or not.. - /// -internal static string strPropertyDescriptionCacheBitmaps - { - get - { - return ResourceManager.GetString("strPropertyDescriptionCacheBitmaps", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the colour quality to be used.. - /// -internal static string strPropertyDescriptionColors - { - get - { - return ResourceManager.GetString("strPropertyDescriptionColors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the compression value to be used.. - /// -internal static string strPropertyDescriptionCompression - { - get - { - return ResourceManager.GetString("strPropertyDescriptionCompression", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Put your notes or a description for the host here.. - /// -internal static string strPropertyDescriptionDescription - { - get - { - return ResourceManager.GetString("strPropertyDescriptionDescription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select yes if the theme of the remote host should be displayed.. - /// -internal static string strPropertyDescriptionDisplayThemes - { - get - { - return ResourceManager.GetString("strPropertyDescriptionDisplayThemes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select yes if the wallpaper of the remote host should be displayed.. - /// -internal static string strPropertyDescriptionDisplayWallpaper - { - get - { - return ResourceManager.GetString("strPropertyDescriptionDisplayWallpaper", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter your domain.. - /// -internal static string strPropertyDescriptionDomain - { - get - { - return ResourceManager.GetString("strPropertyDescriptionDomain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether to use desktop composition or not.. - /// -internal static string strPropertyDescriptionEnableDesktopComposition - { - get - { - return ResourceManager.GetString("strPropertyDescriptionEnableDesktopComposition", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether to use font smoothing or not.. - /// -internal static string strPropertyDescriptionEnableFontSmoothing - { - get - { - return ResourceManager.GetString("strPropertyDescriptionEnableFontSmoothing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the encoding mode to be used.. - /// -internal static string strPropertyDescriptionEncoding - { - get - { - return ResourceManager.GetString("strPropertyDescriptionEncoding", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the encryption strength of the remote host.. - /// -internal static string strPropertyDescriptionEncryptionStrength - { - get - { - return ResourceManager.GetString("strPropertyDescriptionEncryptionStrength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the external tool to be started.. - /// -internal static string strPropertyDescriptionExternalTool - { - get - { - return ResourceManager.GetString("strPropertyDescriptionExternalTool", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select a external tool to be started after the disconnection to the remote host.. - /// -internal static string strPropertyDescriptionExternalToolAfter - { - get - { - return ResourceManager.GetString("strPropertyDescriptionExternalToolAfter", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select a external tool to be started before the connection to the remote host is established.. - /// -internal static string strPropertyDescriptionExternalToolBefore - { - get - { - return ResourceManager.GetString("strPropertyDescriptionExternalToolBefore", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Choose a icon that will be displayed when connected to the host.. - /// -internal static string strPropertyDescriptionIcon - { - get - { - return ResourceManager.GetString("strPropertyDescriptionIcon", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the load balancing information for use by load balancing routers to choose the best server.. - /// -internal static string strPropertyDescriptionLoadBalanceInfo - { - get - { - return ResourceManager.GetString("strPropertyDescriptionLoadBalanceInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter the MAC address of the remote host if you wish to use it in an external tool.. - /// -internal static string strPropertyDescriptionMACAddress - { - get - { - return ResourceManager.GetString("strPropertyDescriptionMACAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This is the name that will be displayed in the connections tree.. - /// -internal static string strPropertyDescriptionName - { - get - { - return ResourceManager.GetString("strPropertyDescriptionName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sets the panel in which the connection will open.. - /// -internal static string strPropertyDescriptionPanel - { - get - { - return ResourceManager.GetString("strPropertyDescriptionPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter your password.. - /// -internal static string strPropertyDescriptionPassword - { - get - { - return ResourceManager.GetString("strPropertyDescriptionPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter the port the selected protocol is listening on.. - /// -internal static string strPropertyDescriptionPort - { - get - { - return ResourceManager.GetString("strPropertyDescriptionPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Choose the protocol mRemoteNG should use to connect to the host.. - /// -internal static string strPropertyDescriptionProtocol - { - get - { - return ResourceManager.GetString("strPropertyDescriptionProtocol", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select a PuTTY session to be used when connecting.. - /// -internal static string strPropertyDescriptionPuttySession - { - get - { - return ResourceManager.GetString("strPropertyDescriptionPuttySession", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the domain name that a user provides to connect to the RD Gateway server.. - /// -internal static string strPropertyDescriptionRDGatewayDomain - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRDGatewayDomain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the host name of the Remote Desktop Gateway server.. - /// -internal static string strPropertyDescriptionRDGatewayHostname - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRDGatewayHostname", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies when to use a Remote Desktop Gateway (RD Gateway) server.. - /// -internal static string strPropertyDescriptionRDGatewayUsageMethod - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRDGatewayUsageMethod", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies whether or not to log on to the gateway using the same username and password as the connection.. - /// -internal static string strPropertyDescriptionRDGatewayUseConnectionCredentials - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRDGatewayUseConnectionCredentials", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the user name that a user provides to connect to the RD Gateway server.. - /// -internal static string strPropertyDescriptionRDGatewayUsername - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRDGatewayUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether local disk drives should be shown on the remote host.. - /// -internal static string strPropertyDescriptionRedirectDrives - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRedirectDrives", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether key combinations (e.g. Alt-Tab) should be redirected to the remote host.. - /// -internal static string strPropertyDescriptionRedirectKeys - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRedirectKeys", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether local ports (ie. com, parallel) should be shown on the remote host.. - /// -internal static string strPropertyDescriptionRedirectPorts - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRedirectPorts", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether local printers should be shown on the remote host.. - /// -internal static string strPropertyDescriptionRedirectPrinters - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRedirectPrinters", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select whether local smart cards should be available on the remote host.. - /// -internal static string strPropertyDescriptionRedirectSmartCards - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRedirectSmartCards", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select how remote sound should be redirected.. - /// -internal static string strPropertyDescriptionRedirectSounds - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRedirectSounds", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select one of the available rendering engines that will be used to display HTML.. - /// -internal static string strPropertyDescriptionRenderingEngine - { - get - { - return ResourceManager.GetString("strPropertyDescriptionRenderingEngine", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Choose the resolution or mode this connection will open in.. - /// -internal static string strPropertyDescriptionResolution - { - get - { - return ResourceManager.GetString("strPropertyDescriptionResolution", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the SmartSize mode to be used.. - /// -internal static string strPropertyDescriptionSmartSizeMode - { - get - { - return ResourceManager.GetString("strPropertyDescriptionSmartSizeMode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connect to the console session of the remote host.. - /// -internal static string strPropertyDescriptionUseConsoleSession - { - get - { - return ResourceManager.GetString("strPropertyDescriptionUseConsoleSession", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use the Credential Security Support Provider (CredSSP) for authentication if it is available.. - /// -internal static string strPropertyDescriptionUseCredSsp - { - get - { - return ResourceManager.GetString("strPropertyDescriptionUseCredSsp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Feel free to enter any information you need here.. - /// -internal static string strPropertyDescriptionUser1 - { - get - { - return ResourceManager.GetString("strPropertyDescriptionUser1", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter your username.. - /// -internal static string strPropertyDescriptionUsername - { - get - { - return ResourceManager.GetString("strPropertyDescriptionUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to If you want to establish a view only connection to the host select yes.. - /// -internal static string strPropertyDescriptionViewOnly - { - get - { - return ResourceManager.GetString("strPropertyDescriptionViewOnly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter the proxy address to be used.. - /// -internal static string strPropertyDescriptionVNCProxyAddress - { - get - { - return ResourceManager.GetString("strPropertyDescriptionVNCProxyAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter your password for authenticating against the proxy.. - /// -internal static string strPropertyDescriptionVNCProxyPassword - { - get - { - return ResourceManager.GetString("strPropertyDescriptionVNCProxyPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter the port the proxy server listens on.. - /// -internal static string strPropertyDescriptionVNCProxyPort - { - get - { - return ResourceManager.GetString("strPropertyDescriptionVNCProxyPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to If you use a proxy to tunnel VNC connections, select which type it is.. - /// -internal static string strPropertyDescriptionVNCProxyType - { - get - { - return ResourceManager.GetString("strPropertyDescriptionVNCProxyType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter your username for authenticating against the proxy.. - /// -internal static string strPropertyDescriptionVNCProxyUsername - { - get - { - return ResourceManager.GetString("strPropertyDescriptionVNCProxyUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hostname/IP. - /// -internal static string strPropertyNameAddress - { - get - { - return ResourceManager.GetString("strPropertyNameAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to All. - /// -internal static string strPropertyNameAll - { - get - { - return ResourceManager.GetString("strPropertyNameAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Server Authentication. - /// -internal static string strPropertyNameAuthenticationLevel - { - get - { - return ResourceManager.GetString("strPropertyNameAuthenticationLevel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Authentication Mode. - /// -internal static string strPropertyNameAuthenticationMode - { - get - { - return ResourceManager.GetString("strPropertyNameAuthenticationMode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Automatic Resize. - /// -internal static string strPropertyNameAutomaticResize - { - get - { - return ResourceManager.GetString("strPropertyNameAutomaticResize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cache Bitmaps. - /// -internal static string strPropertyNameCacheBitmaps - { - get - { - return ResourceManager.GetString("strPropertyNameCacheBitmaps", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Colours. - /// -internal static string strPropertyNameColors - { - get - { - return ResourceManager.GetString("strPropertyNameColors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Compression. - /// -internal static string strPropertyNameCompression - { - get - { - return ResourceManager.GetString("strPropertyNameCompression", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Description. - /// -internal static string strPropertyNameDescription - { - get - { - return ResourceManager.GetString("strPropertyNameDescription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display Themes. - /// -internal static string strPropertyNameDisplayThemes - { - get - { - return ResourceManager.GetString("strPropertyNameDisplayThemes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display Wallpaper. - /// -internal static string strPropertyNameDisplayWallpaper - { - get - { - return ResourceManager.GetString("strPropertyNameDisplayWallpaper", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Domain. - /// -internal static string strPropertyNameDomain - { - get - { - return ResourceManager.GetString("strPropertyNameDomain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Desktop Composition. - /// -internal static string strPropertyNameEnableDesktopComposition - { - get - { - return ResourceManager.GetString("strPropertyNameEnableDesktopComposition", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Font Smoothing. - /// -internal static string strPropertyNameEnableFontSmoothing - { - get - { - return ResourceManager.GetString("strPropertyNameEnableFontSmoothing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encoding. - /// -internal static string strPropertyNameEncoding - { - get - { - return ResourceManager.GetString("strPropertyNameEncoding", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption Strength. - /// -internal static string strPropertyNameEncryptionStrength - { - get - { - return ResourceManager.GetString("strPropertyNameEncryptionStrength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to External Tool. - /// -internal static string strPropertyNameExternalTool - { - get - { - return ResourceManager.GetString("strPropertyNameExternalTool", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to External Tool After. - /// -internal static string strPropertyNameExternalToolAfter - { - get - { - return ResourceManager.GetString("strPropertyNameExternalToolAfter", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to External Tool Before. - /// -internal static string strPropertyNameExternalToolBefore - { - get - { - return ResourceManager.GetString("strPropertyNameExternalToolBefore", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Icon. - /// -internal static string strPropertyNameIcon - { - get - { - return ResourceManager.GetString("strPropertyNameIcon", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Load Balance Info. - /// -internal static string strPropertyNameLoadBalanceInfo - { - get - { - return ResourceManager.GetString("strPropertyNameLoadBalanceInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to MAC Address. - /// -internal static string strPropertyNameMACAddress - { - get - { - return ResourceManager.GetString("strPropertyNameMACAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Name. - /// -internal static string strPropertyNameName - { - get - { - return ResourceManager.GetString("strPropertyNameName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Panel. - /// -internal static string strPropertyNamePanel - { - get - { - return ResourceManager.GetString("strPropertyNamePanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password. - /// -internal static string strPropertyNamePassword - { - get - { - return ResourceManager.GetString("strPropertyNamePassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Port. - /// -internal static string strPropertyNamePort - { - get - { - return ResourceManager.GetString("strPropertyNamePort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol. - /// -internal static string strPropertyNameProtocol - { - get - { - return ResourceManager.GetString("strPropertyNameProtocol", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to PuTTY Session. - /// -internal static string strPropertyNamePuttySession - { - get - { - return ResourceManager.GetString("strPropertyNamePuttySession", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Gateway Domain. - /// -internal static string strPropertyNameRDGatewayDomain - { - get - { - return ResourceManager.GetString("strPropertyNameRDGatewayDomain", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Gateway Hostname. - /// -internal static string strPropertyNameRDGatewayHostname - { - get - { - return ResourceManager.GetString("strPropertyNameRDGatewayHostname", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remote Desktop Gateway Password. - /// -internal static string strPropertyNameRDGatewayPassword - { - get - { - return ResourceManager.GetString("strPropertyNameRDGatewayPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use Gateway. - /// -internal static string strPropertyNameRDGatewayUsageMethod - { - get - { - return ResourceManager.GetString("strPropertyNameRDGatewayUsageMethod", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Gateway Credentials. - /// -internal static string strPropertyNameRDGatewayUseConnectionCredentials - { - get - { - return ResourceManager.GetString("strPropertyNameRDGatewayUseConnectionCredentials", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Gateway Username. - /// -internal static string strPropertyNameRDGatewayUsername - { - get - { - return ResourceManager.GetString("strPropertyNameRDGatewayUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disk Drives. - /// -internal static string strPropertyNameRedirectDrives - { - get - { - return ResourceManager.GetString("strPropertyNameRedirectDrives", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Key Combinations. - /// -internal static string strPropertyNameRedirectKeys - { - get - { - return ResourceManager.GetString("strPropertyNameRedirectKeys", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ports. - /// -internal static string strPropertyNameRedirectPorts - { - get - { - return ResourceManager.GetString("strPropertyNameRedirectPorts", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Printers. - /// -internal static string strPropertyNameRedirectPrinters - { - get - { - return ResourceManager.GetString("strPropertyNameRedirectPrinters", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Smart Cards. - /// -internal static string strPropertyNameRedirectSmartCards - { - get - { - return ResourceManager.GetString("strPropertyNameRedirectSmartCards", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sounds. - /// -internal static string strPropertyNameRedirectSounds - { - get - { - return ResourceManager.GetString("strPropertyNameRedirectSounds", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rendering Engine. - /// -internal static string strPropertyNameRenderingEngine - { - get - { - return ResourceManager.GetString("strPropertyNameRenderingEngine", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Resolution. - /// -internal static string strPropertyNameResolution - { - get - { - return ResourceManager.GetString("strPropertyNameResolution", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SmartSize Mode. - /// -internal static string strPropertyNameSmartSizeMode - { - get - { - return ResourceManager.GetString("strPropertyNameSmartSizeMode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use Console Session. - /// -internal static string strPropertyNameUseConsoleSession - { - get - { - return ResourceManager.GetString("strPropertyNameUseConsoleSession", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use CredSSP. - /// -internal static string strPropertyNameUseCredSsp - { - get - { - return ResourceManager.GetString("strPropertyNameUseCredSsp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User Field. - /// -internal static string strPropertyNameUser1 - { - get - { - return ResourceManager.GetString("strPropertyNameUser1", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username. - /// -internal static string strPropertyNameUsername - { - get - { - return ResourceManager.GetString("strPropertyNameUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to View Only. - /// -internal static string strPropertyNameViewOnly - { - get - { - return ResourceManager.GetString("strPropertyNameViewOnly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Proxy Address. - /// -internal static string strPropertyNameVNCProxyAddress - { - get - { - return ResourceManager.GetString("strPropertyNameVNCProxyAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Proxy Password. - /// -internal static string strPropertyNameVNCProxyPassword - { - get - { - return ResourceManager.GetString("strPropertyNameVNCProxyPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Proxy Port. - /// -internal static string strPropertyNameVNCProxyPort - { - get - { - return ResourceManager.GetString("strPropertyNameVNCProxyPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Proxy Type. - /// -internal static string strPropertyNameVNCProxyType - { - get - { - return ResourceManager.GetString("strPropertyNameVNCProxyType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Proxy Username. - /// -internal static string strPropertyNameVNCProxyUsername - { - get - { - return ResourceManager.GetString("strPropertyNameVNCProxyUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol Event Disconnected. - ///Message: - ///{0}. - /// -internal static string strProtocolEventDisconnected - { - get - { - return ResourceManager.GetString("strProtocolEventDisconnected", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol Event Disconnected failed. - ///{0}. - /// -internal static string strProtocolEventDisconnectFailed - { - get - { - return ResourceManager.GetString("strProtocolEventDisconnectFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol to import. - /// -internal static string strProtocolToImport - { - get - { - return ResourceManager.GetString("strProtocolToImport", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Proxy test failed!. - /// -internal static string strProxyTestFailed - { - get - { - return ResourceManager.GetString("strProxyTestFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Proxy test succeeded!. - /// -internal static string strProxyTestSucceeded - { - get - { - return ResourceManager.GetString("strProxyTestSucceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection failed!. - /// -internal static string strPuttyConnectionFailed - { - get - { - return ResourceManager.GetString("strPuttyConnectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Dispose of Putty process failed!. - /// -internal static string strPuttyDisposeFailed - { - get - { - return ResourceManager.GetString("strPuttyDisposeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't set focus!. - /// -internal static string strPuttyFocusFailed - { - get - { - return ResourceManager.GetString("strPuttyFocusFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Get Putty Sessions Failed!. - /// -internal static string strPuttyGetSessionsFailed - { - get - { - return ResourceManager.GetString("strPuttyGetSessionsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Putty Handle: {0}. - /// -internal static string strPuttyHandle - { - get - { - return ResourceManager.GetString("strPuttyHandle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Killing Putty Process failed!. - /// -internal static string strPuttyKillFailed - { - get - { - return ResourceManager.GetString("strPuttyKillFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Panel Handle: {0}. - /// -internal static string strPuttyParentHandle - { - get - { - return ResourceManager.GetString("strPuttyParentHandle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Putty Resize Failed!. - /// -internal static string strPuttyResizeFailed - { - get - { - return ResourceManager.GetString("strPuttyResizeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to PuTTY Saved Sessions. - /// -internal static string strPuttySavedSessionsRootName - { - get - { - return ResourceManager.GetString("strPuttySavedSessionsRootName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to PuTTY Session Settings. - /// -internal static string strPuttySessionSettings - { - get - { - return ResourceManager.GetString("strPuttySessionSettings", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to PuTTY Settings. - /// -internal static string strPuttySettings - { - get - { - return ResourceManager.GetString("strPuttySettings", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show PuTTY Settings Dialog failed!. - /// -internal static string strPuttyShowSettingsDialogFailed - { - get - { - return ResourceManager.GetString("strPuttyShowSettingsDialogFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Putty Start Failed!. - /// -internal static string strPuttyStartFailed - { - get - { - return ResourceManager.GetString("strPuttyStartFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to --- PuTTY Stuff ---. - /// -internal static string strPuttyStuff - { - get - { - return ResourceManager.GetString("strPuttyStuff", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to PuTTY Title: {0}. - /// -internal static string strPuttyTitle - { - get - { - return ResourceManager.GetString("strPuttyTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Quick: {0}. - /// -internal static string strQuick - { - get - { - return ResourceManager.GetString("strQuick", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Quick Connect. - /// -internal static string strQuickConnect - { - get - { - return ResourceManager.GetString("strQuickConnect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Quick Connect Add Failed!. - /// -internal static string strQuickConnectAddFailed - { - get - { - return ResourceManager.GetString("strQuickConnectAddFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Creating quick connect failed. - /// -internal static string strQuickConnectFailed - { - get - { - return ResourceManager.GetString("strQuickConnectFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Warn me when closing connections. - /// -internal static string strRadioCloseWarnAll - { - get - { - return ResourceManager.GetString("strRadioCloseWarnAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Warn me only when e&xiting mRemoteNG. - /// -internal static string strRadioCloseWarnExit - { - get - { - return ResourceManager.GetString("strRadioCloseWarnExit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Warn me only when closing &multiple connections. - /// -internal static string strRadioCloseWarnMultiple - { - get - { - return ResourceManager.GetString("strRadioCloseWarnMultiple", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do &not warn me when closing connections. - /// -internal static string strRadioCloseWarnNever - { - get - { - return ResourceManager.GetString("strRadioCloseWarnNever", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RAW. - /// -internal static string strRAW - { - get - { - return ResourceManager.GetString("strRAW", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP. - /// -internal static string strRDP - { - get - { - return ResourceManager.GetString("strRDP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 16777216 Colours (24-bit). - /// -internal static string strRDP16777216Colors - { - get - { - return ResourceManager.GetString("strRDP16777216Colors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 256 Colours (8-bit). - /// -internal static string strRDP256Colors - { - get - { - return ResourceManager.GetString("strRDP256Colors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 32768 Colours (15-bit). - /// -internal static string strRDP32768Colors - { - get - { - return ResourceManager.GetString("strRDP32768Colors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 16777216 Colours (32-bit). - /// -internal static string strRDP4294967296Colors - { - get - { - return ResourceManager.GetString("strRDP4294967296Colors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to 65536 Colours (16-bit). - /// -internal static string strRDP65536Colors - { - get - { - return ResourceManager.GetString("strRDP65536Colors", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP Add Resolution failed!. - /// -internal static string strRdpAddResolutionFailed - { - get - { - return ResourceManager.GetString("strRdpAddResolutionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP Add Resolutions failed!. - /// -internal static string strRdpAddResolutionsFailed - { - get - { - return ResourceManager.GetString("strRdpAddResolutionsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add Session failed. - /// -internal static string strRdpAddSessionFailed - { - get - { - return ResourceManager.GetString("strRdpAddSessionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Close RDP Connection failed!. - /// -internal static string strRdpCloseConnectionFailed - { - get - { - return ResourceManager.GetString("strRdpCloseConnectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Opening connection failed!. - /// -internal static string strRdpConnectionOpenFailed - { - get - { - return ResourceManager.GetString("strRdpConnectionOpenFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't create RDP control, please check mRemoteNG requirements.. - /// -internal static string strRdpControlCreationFailed - { - get - { - return ResourceManager.GetString("strRdpControlCreationFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disable Cursor blinking. - /// -internal static string strRDPDisableCursorblinking - { - get - { - return ResourceManager.GetString("strRDPDisableCursorblinking", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disable Cursor Shadow. - /// -internal static string strRDPDisableCursorShadow - { - get - { - return ResourceManager.GetString("strRDPDisableCursorShadow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disable Full Window drag. - /// -internal static string strRDPDisableFullWindowdrag - { - get - { - return ResourceManager.GetString("strRDPDisableFullWindowdrag", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disable Menu Animations. - /// -internal static string strRDPDisableMenuAnimations - { - get - { - return ResourceManager.GetString("strRDPDisableMenuAnimations", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disable Themes. - /// -internal static string strRDPDisableThemes - { - get - { - return ResourceManager.GetString("strRDPDisableThemes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disable Wallpaper. - /// -internal static string strRDPDisableWallpaper - { - get - { - return ResourceManager.GetString("strRDPDisableWallpaper", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP disconnected!. - /// -internal static string strRdpDisconnected - { - get - { - return ResourceManager.GetString("strRdpDisconnected", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP Disconnect failed, trying to close!. - /// -internal static string strRdpDisconnectFailed - { - get - { - return ResourceManager.GetString("strRdpDisconnectFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error code 1.. - /// -internal static string strRdpErrorCode1 - { - get - { - return ResourceManager.GetString("strRdpErrorCode1", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error code 2.. - /// -internal static string strRdpErrorCode2 - { - get - { - return ResourceManager.GetString("strRdpErrorCode2", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error code 3. This is not a valid state.. - /// -internal static string strRdpErrorCode3 - { - get - { - return ResourceManager.GetString("strRdpErrorCode3", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error code 4.. - /// -internal static string strRdpErrorCode4 - { - get - { - return ResourceManager.GetString("strRdpErrorCode4", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An unrecoverable error has occurred during client connection.. - /// -internal static string strRdpErrorConnection - { - get - { - return ResourceManager.GetString("strRdpErrorConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to GetError failed (FatalErrors). - /// -internal static string strRdpErrorGetFailure - { - get - { - return ResourceManager.GetString("strRdpErrorGetFailure", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An unknown fatal RDP error has occurred. Error code {0}.. - /// -internal static string strRdpErrorGetUnknown - { - get - { - return ResourceManager.GetString("strRdpErrorGetUnknown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An out-of-memory error has occurred.. - /// -internal static string strRdpErrorOutOfMemory - { - get - { - return ResourceManager.GetString("strRdpErrorOutOfMemory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An unknown error has occurred.. - /// -internal static string strRdpErrorUnknown - { - get - { - return ResourceManager.GetString("strRdpErrorUnknown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A window-creation error has occurred.. - /// -internal static string strRdpErrorWindowCreation - { - get - { - return ResourceManager.GetString("strRdpErrorWindowCreation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Winsock initialization error.. - /// -internal static string strRdpErrorWinsock - { - get - { - return ResourceManager.GetString("strRdpErrorWinsock", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't import rdp file!. - /// -internal static string strRdpFileCouldNotBeImported - { - get - { - return ResourceManager.GetString("strRdpFileCouldNotBeImported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Fit To Panel. - /// -internal static string strRDPFitToPanel - { - get - { - return ResourceManager.GetString("strRDPFitToPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP Focus failed!. - /// -internal static string strRdpFocusFailed - { - get - { - return ResourceManager.GetString("strRdpFocusFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RD Gateway is supported.. - /// -internal static string strRdpGatewayIsSupported - { - get - { - return ResourceManager.GetString("strRdpGatewayIsSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RD Gateway is not supported!. - /// -internal static string strRdpGatewayNotSupported - { - get - { - return ResourceManager.GetString("strRdpGatewayNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to GetSessions failed!. - /// -internal static string strRdpGetSessionsFailed - { - get - { - return ResourceManager.GetString("strRdpGetSessionsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Open RDP Connection failed!. - /// -internal static string strRdpOpenConnectionFailed - { - get - { - return ResourceManager.GetString("strRdpOpenConnectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP reconnection count:. - /// -internal static string strRdpReconnectCount - { - get - { - return ResourceManager.GetString("strRdpReconnectCount", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetAuthenticationLevel failed!. - /// -internal static string strRdpSetAuthenticationLevelFailed - { - get - { - return ResourceManager.GetString("strRdpSetAuthenticationLevelFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetUseConsoleSession failed!. - /// -internal static string strRdpSetConsoleSessionFailed - { - get - { - return ResourceManager.GetString("strRdpSetConsoleSessionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Setting Console switch for RDC {0}.. - /// -internal static string strRdpSetConsoleSwitch - { - get - { - return ResourceManager.GetString("strRdpSetConsoleSwitch", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetCredentials failed!. - /// -internal static string strRdpSetCredentialsFailed - { - get - { - return ResourceManager.GetString("strRdpSetCredentialsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetEventHandlers failed!. - /// -internal static string strRdpSetEventHandlersFailed - { - get - { - return ResourceManager.GetString("strRdpSetEventHandlersFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetRDGateway failed!. - /// -internal static string strRdpSetGatewayFailed - { - get - { - return ResourceManager.GetString("strRdpSetGatewayFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetPerformanceFlags failed!. - /// -internal static string strRdpSetPerformanceFlagsFailed - { - get - { - return ResourceManager.GetString("strRdpSetPerformanceFlagsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetPort failed!. - /// -internal static string strRdpSetPortFailed - { - get - { - return ResourceManager.GetString("strRdpSetPortFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetProps failed!. - /// -internal static string strRdpSetPropsFailed - { - get - { - return ResourceManager.GetString("strRdpSetPropsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rdp Set Redirection Failed!. - /// -internal static string strRdpSetRedirectionFailed - { - get - { - return ResourceManager.GetString("strRdpSetRedirectionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rdp Set Redirect Keys Failed!. - /// -internal static string strRdpSetRedirectKeysFailed - { - get - { - return ResourceManager.GetString("strRdpSetRedirectKeysFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP SetResolution failed!. - /// -internal static string strRdpSetResolutionFailed - { - get - { - return ResourceManager.GetString("strRdpSetResolutionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Smart Size. - /// -internal static string strRDPSmartSize - { - get - { - return ResourceManager.GetString("strRDPSmartSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Bring to this computer. - /// -internal static string strRDPSoundBringToThisComputer - { - get - { - return ResourceManager.GetString("strRDPSoundBringToThisComputer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do not play. - /// -internal static string strRDPSoundDoNotPlay - { - get - { - return ResourceManager.GetString("strRDPSoundDoNotPlay", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Leave at remote computer. - /// -internal static string strRDPSoundLeaveAtRemoteComputer - { - get - { - return ResourceManager.GetString("strRDPSoundLeaveAtRemoteComputer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP ToggleFullscreen failed!. - /// -internal static string strRdpToggleFullscreenFailed - { - get - { - return ResourceManager.GetString("strRdpToggleFullscreenFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to RDP ToggleSmartSize failed!. - /// -internal static string strRdpToggleSmartSizeFailed - { - get - { - return ResourceManager.GetString("strRdpToggleSmartSizeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reconnect to previously opened sessions on startup. - /// -internal static string strReconnectAtStartup - { - get - { - return ResourceManager.GetString("strReconnectAtStartup", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Refresh. - /// -internal static string strRefresh - { - get - { - return ResourceManager.GetString("strRefresh", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remote file. - /// -internal static string strRemoteFile - { - get - { - return ResourceManager.GetString("strRemoteFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove All. - /// -internal static string strRemoveAll - { - get - { - return ResourceManager.GetString("strRemoveAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rename. - /// -internal static string strRename - { - get - { - return ResourceManager.GetString("strRename", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Rlogin. - /// -internal static string strRlogin - { - get - { - return ResourceManager.GetString("strRlogin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save. - /// -internal static string strSave - { - get - { - return ResourceManager.GetString("strSave", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save All. - /// -internal static string strSaveAll - { - get - { - return ResourceManager.GetString("strSaveAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do you want to save the current connections file before loading another?. - /// -internal static string strSaveConnectionsFileBeforeOpeningAnother - { - get - { - return ResourceManager.GetString("strSaveConnectionsFileBeforeOpeningAnother", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save connections on exit. - /// -internal static string strSaveConsOnExit - { - get - { - return ResourceManager.GetString("strSaveConsOnExit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Graphics Interchange Format File (.gif)|*.gif|Joint Photographic Experts Group File (.jpeg)|*.jpeg|Joint Photographic Experts Group File (.jpg)|*.jpg|Portable Network Graphics File (.png)|*.png. - /// -internal static string strSaveImageFilter - { - get - { - return ResourceManager.GetString("strSaveImageFilter", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Screen. - /// -internal static string strScreen - { - get - { - return ResourceManager.GetString("strScreen", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Screenshot. - /// -internal static string strScreenshot - { - get - { - return ResourceManager.GetString("strScreenshot", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Screenshots. - /// -internal static string strScreenshots - { - get - { - return ResourceManager.GetString("strScreenshots", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Search. - /// -internal static string strSearchPrompt - { - get - { - return ResourceManager.GetString("strSearchPrompt", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Send To.... - /// -internal static string strSendTo - { - get - { - return ResourceManager.GetString("strSendTo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Get Sessions Background failed. - /// -internal static string strSessionGetFailed - { - get - { - return ResourceManager.GetString("strSessionGetFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Kill Session Background failed. - /// -internal static string strSessionKillFailed - { - get - { - return ResourceManager.GetString("strSessionKillFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Set hostname like display name when creating or renaming connections. - /// -internal static string strSetHostnameLikeDisplayName - { - get - { - return ResourceManager.GetString("strSetHostnameLikeDisplayName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Setting main form text failed. - /// -internal static string strSettingMainFormTextFailed - { - get - { - return ResourceManager.GetString("strSettingMainFormTextFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't save settings or dispose SysTray Icon!. - /// -internal static string strSettingsCouldNotBeSavedOrTrayDispose - { - get - { - return ResourceManager.GetString("strSettingsCouldNotBeSavedOrTrayDispose", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show description tooltips in connection tree. - /// -internal static string strShowDescriptionTooltips - { - get - { - return ResourceManager.GetString("strShowDescriptionTooltips", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show full connections file path in window title. - /// -internal static string strShowFullConsFilePath - { - get - { - return ResourceManager.GetString("strShowFullConsFilePath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show logon information on tab names. - /// -internal static string strShowLogonInfoOnTabs - { - get - { - return ResourceManager.GetString("strShowLogonInfoOnTabs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show protocols on tab names. - /// -internal static string strShowProtocolOnTabs - { - get - { - return ResourceManager.GetString("strShowProtocolOnTabs", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Single click on connection opens it. - /// -internal static string strSingleClickOnConnectionOpensIt - { - get - { - return ResourceManager.GetString("strSingleClickOnConnectionOpensIt", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Single click on opened connection switches to it. - /// -internal static string strSingleClickOnOpenConnectionSwitchesToIt - { - get - { - return ResourceManager.GetString("strSingleClickOnOpenConnectionSwitchesToIt", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Aspect. - /// -internal static string strSmartSizeModeAspect - { - get - { - return ResourceManager.GetString("strSmartSizeModeAspect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Free. - /// -internal static string strSmartSizeModeFree - { - get - { - return ResourceManager.GetString("strSmartSizeModeFree", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No SmartSize. - /// -internal static string strSmartSizeModeNone - { - get - { - return ResourceManager.GetString("strSmartSizeModeNone", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Socks 5. - /// -internal static string strSocks5 - { - get - { - return ResourceManager.GetString("strSocks5", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sort. - /// -internal static string strSort - { - get - { - return ResourceManager.GetString("strSort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ascending (A-Z). - /// -internal static string strSortAsc - { - get - { - return ResourceManager.GetString("strSortAsc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Descending (Z-A). - /// -internal static string strSortDesc - { - get - { - return ResourceManager.GetString("strSortDesc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Special Keys. - /// -internal static string strSpecialKeys - { - get - { - return ResourceManager.GetString("strSpecialKeys", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please see Help - Getting started - SQL Configuration for more Info!. - /// -internal static string strSQLInfo - { - get - { - return ResourceManager.GetString("strSQLInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SQL Server. - /// -internal static string strSQLServer - { - get - { - return ResourceManager.GetString("strSQLServer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SQL Update check finished and there is an update available! Going to refresh connections.. - /// -internal static string strSqlUpdateCheckUpdateAvailable - { - get - { - return ResourceManager.GetString("strSqlUpdateCheckUpdateAvailable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSH version 1. - /// -internal static string strSsh1 - { - get - { - return ResourceManager.GetString("strSsh1", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSH version 2. - /// -internal static string strSsh2 - { - get - { - return ResourceManager.GetString("strSsh2", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSH background transfer failed!. - /// -internal static string strSSHStartTransferBG - { - get - { - return ResourceManager.GetString("strSSHStartTransferBG", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Transfer successful!. - /// -internal static string strSSHTranferSuccessful - { - get - { - return ResourceManager.GetString("strSSHTranferSuccessful", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSH Transfer End (UI.Window.SSHTransfer) failed!. - /// -internal static string strSSHTransferEndFailed - { - get - { - return ResourceManager.GetString("strSSHTransferEndFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSH transfer failed.. - /// -internal static string strSSHTransferFailed - { - get - { - return ResourceManager.GetString("strSSHTransferFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Start IP. - /// -internal static string strStartIP - { - get - { - return ResourceManager.GetString("strStartIP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Start Port. - /// -internal static string strStartPort - { - get - { - return ResourceManager.GetString("strStartPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Startup/Exit. - /// -internal static string strStartupExit - { - get - { - return ResourceManager.GetString("strStartupExit", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Status. - /// -internal static string strStatus - { - get - { - return ResourceManager.GetString("strStatus", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Switch to Notifications panel on:. - /// -internal static string strSwitchToErrorsAndInfos - { - get - { - return ResourceManager.GetString("strSwitchToErrorsAndInfos", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Advanced. - /// -internal static string strTabAdvanced - { - get - { - return ResourceManager.GetString("strTabAdvanced", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Appearance. - /// -internal static string strTabAppearance - { - get - { - return ResourceManager.GetString("strTabAppearance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Tabs && Panels. - /// -internal static string strTabsAndPanels - { - get - { - return ResourceManager.GetString("strTabsAndPanels", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Updates. - /// -internal static string strTabUpdates - { - get - { - return ResourceManager.GetString("strTabUpdates", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Telnet. - /// -internal static string strTelnet - { - get - { - return ResourceManager.GetString("strTelnet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The following:. - /// -internal static string strTheFollowing - { - get - { - return ResourceManager.GetString("strTheFollowing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config Panel. - /// -internal static string strThemeCategoryConfigPanel - { - get - { - return ResourceManager.GetString("strThemeCategoryConfigPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections Panel. - /// -internal static string strThemeCategoryConnectionsPanel - { - get - { - return ResourceManager.GetString("strThemeCategoryConnectionsPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to General. - /// -internal static string strThemeCategoryGeneral - { - get - { - return ResourceManager.GetString("strThemeCategoryGeneral", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The background colour of the config panel.. - /// -internal static string strThemeDescriptionConfigPanelBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConfigPanelBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the category text in the config panel.. - /// -internal static string strThemeDescriptionConfigPanelCategoryTextColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConfigPanelCategoryTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the grid lines in the config panel. - /// -internal static string strThemeDescriptionConfigPanelGridLineColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConfigPanelGridLineColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The background colour of the help area of the config panel.. - /// -internal static string strThemeDescriptionConfigPanelHelpBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConfigPanelHelpBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the text in the help area of the config panel.. - /// -internal static string strThemeDescriptionConfigPanelHelpTextColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConfigPanelHelpTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the text in the config panel.. - /// -internal static string strThemeDescriptionConfigPanelTextColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConfigPanelTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The background colour of the connections panel.. - /// -internal static string strThemeDescriptionConnectionsPanelBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConnectionsPanelBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the text in the connections panel.. - /// -internal static string strThemeDescriptionConnectionsPanelTextColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConnectionsPanelTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the tree lines in the connections panel.. - /// -internal static string strThemeDescriptionConnectionsPanelTreeLineColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionConnectionsPanelTreeLineColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The background colour of the menus.. - /// -internal static string strThemeDescriptionMenuBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionMenuBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the text in the menus.. - /// -internal static string strThemeDescriptionMenuTextColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionMenuTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The background colour of the search box.. - /// -internal static string strThemeDescriptionSearchBoxBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionSearchBoxBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the text in the search box.. - /// -internal static string strThemeDescriptionSearchBoxTextColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionSearchBoxTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the prompt text in the search box.. - /// -internal static string strThemeDescriptionSearchBoxTextPromptColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionSearchBoxTextPromptColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The background colour of the toolbars.. - /// -internal static string strThemeDescriptionToolbarBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionToolbarBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The colour of the text in the toolbars.. - /// -internal static string strThemeDescriptionToolbarTextColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionToolbarTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The background colour of the main window.. - /// -internal static string strThemeDescriptionWindowBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeDescriptionWindowBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config Panel Background Colour. - /// -internal static string strThemeNameConfigPanelBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeNameConfigPanelBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config Panel Category Text Colour. - /// -internal static string strThemeNameConfigPanelCategoryTextColor - { - get - { - return ResourceManager.GetString("strThemeNameConfigPanelCategoryTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config Panel Grid Line Colour. - /// -internal static string strThemeNameConfigPanelGridLineColor - { - get - { - return ResourceManager.GetString("strThemeNameConfigPanelGridLineColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config Panel Help Background Colour. - /// -internal static string strThemeNameConfigPanelHelpBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeNameConfigPanelHelpBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config Panel Help Text Colour. - /// -internal static string strThemeNameConfigPanelHelpTextColor - { - get - { - return ResourceManager.GetString("strThemeNameConfigPanelHelpTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Config Panel Text Colour. - /// -internal static string strThemeNameConfigPanelTextColor - { - get - { - return ResourceManager.GetString("strThemeNameConfigPanelTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections Panel Background Colour. - /// -internal static string strThemeNameConnectionsPanelBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeNameConnectionsPanelBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections Panel Text Colour. - /// -internal static string strThemeNameConnectionsPanelTextColor - { - get - { - return ResourceManager.GetString("strThemeNameConnectionsPanelTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connections Panel Tree Line Colour. - /// -internal static string strThemeNameConnectionsPanelTreeLineColor - { - get - { - return ResourceManager.GetString("strThemeNameConnectionsPanelTreeLineColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Menu Background Colour. - /// -internal static string strThemeNameMenuBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeNameMenuBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Menu Text Colour. - /// -internal static string strThemeNameMenuTextColor - { - get - { - return ResourceManager.GetString("strThemeNameMenuTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Search Box Background Colour. - /// -internal static string strThemeNameSearchBoxBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeNameSearchBoxBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Search Box Text Colour. - /// -internal static string strThemeNameSearchBoxTextColor - { - get - { - return ResourceManager.GetString("strThemeNameSearchBoxTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Search Box Text Prompt Colour. - /// -internal static string strThemeNameSearchBoxTextPromptColor - { - get - { - return ResourceManager.GetString("strThemeNameSearchBoxTextPromptColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Toolbar Background Colour. - /// -internal static string strThemeNameToolbarBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeNameToolbarBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Toolbar Text Colour. - /// -internal static string strThemeNameToolbarTextColor - { - get - { - return ResourceManager.GetString("strThemeNameToolbarTextColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Window Background Colour. - /// -internal static string strThemeNameWindowBackgroundColor - { - get - { - return ResourceManager.GetString("strThemeNameWindowBackgroundColor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error ({0}). - /// -internal static string strTitleError - { - get - { - return ResourceManager.GetString("strTitleError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Information ({0}). - /// -internal static string strTitleInformation - { - get - { - return ResourceManager.GetString("strTitleInformation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password. - /// -internal static string strTitlePassword - { - get - { - return ResourceManager.GetString("strTitlePassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password for {0}. - /// -internal static string strTitlePasswordWithName - { - get - { - return ResourceManager.GetString("strTitlePasswordWithName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select Panel. - /// -internal static string strTitleSelectPanel - { - get - { - return ResourceManager.GetString("strTitleSelectPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Warning ({0}). - /// -internal static string strTitleWarning - { - get - { - return ResourceManager.GetString("strTitleWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Transfer. - /// -internal static string strTransfer - { - get - { - return ResourceManager.GetString("strTransfer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Transfer failed!. - /// -internal static string strTransferFailed - { - get - { - return ResourceManager.GetString("strTransferFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Try to integrate. - /// -internal static string strTryIntegrate - { - get - { - return ResourceManager.GetString("strTryIntegrate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Type. - /// -internal static string strType - { - get - { - return ResourceManager.GetString("strType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ultra VNC Repeater. - /// -internal static string strUltraVncRepeater - { - get - { - return ResourceManager.GetString("strUltraVncRepeater", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to UltraVNC SingleClick port:. - /// -internal static string strUltraVNCSCListeningPort - { - get - { - return ResourceManager.GetString("strUltraVNCSCListeningPort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Uncheck the properties you want not to be saved!. - /// -internal static string strUncheckProperties - { - get - { - return ResourceManager.GetString("strUncheckProperties", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unnamed Theme. - /// -internal static string strUnnamedTheme - { - get - { - return ResourceManager.GetString("strUnnamedTheme", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemoteNG requires an update. - /// -internal static string strUpdateAvailable - { - get - { - return ResourceManager.GetString("strUpdateAvailable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemoteNG can periodically connect to the mRemoteNG website to check for updates and product announcements.. - /// -internal static string strUpdateCheck - { - get - { - return ResourceManager.GetString("strUpdateCheck", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The update information could not be downloaded.. - /// -internal static string strUpdateCheckCompleteFailed - { - get - { - return ResourceManager.GetString("strUpdateCheckCompleteFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Check failed. - /// -internal static string strUpdateCheckFailedLabel - { - get - { - return ResourceManager.GetString("strUpdateCheckFailedLabel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Checking for updates.... - /// -internal static string strUpdateCheckingLabel - { - get - { - return ResourceManager.GetString("strUpdateCheckingLabel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to mRemoteNG Portable Edition does not currently support automatic updates.. - /// -internal static string strUpdateCheckPortableEdition - { - get - { - return ResourceManager.GetString("strUpdateCheckPortableEdition", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Download complete! - ///mRemoteNG will now quit and begin with the installation.. - /// -internal static string strUpdateDownloadComplete - { - get - { - return ResourceManager.GetString("strUpdateDownloadComplete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The update could not be downloaded.. - /// -internal static string strUpdateDownloadCompleteFailed - { - get - { - return ResourceManager.GetString("strUpdateDownloadCompleteFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The update download could not be initiated.. - /// -internal static string strUpdateDownloadFailed - { - get - { - return ResourceManager.GetString("strUpdateDownloadFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Every {0} days. - /// -internal static string strUpdateFrequencyCustom - { - get - { - return ResourceManager.GetString("strUpdateFrequencyCustom", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Daily. - /// -internal static string strUpdateFrequencyDaily - { - get - { - return ResourceManager.GetString("strUpdateFrequencyDaily", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Monthly. - /// -internal static string strUpdateFrequencyMonthly - { - get - { - return ResourceManager.GetString("strUpdateFrequencyMonthly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Weekly. - /// -internal static string strUpdateFrequencyWeekly - { - get - { - return ResourceManager.GetString("strUpdateFrequencyWeekly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The announcement information could not be downloaded.. - /// -internal static string strUpdateGetAnnouncementInfoFailed - { - get - { - return ResourceManager.GetString("strUpdateGetAnnouncementInfoFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The change log could not be downloaded.. - /// -internal static string strUpdateGetChangeLogFailed - { - get - { - return ResourceManager.GetString("strUpdateGetChangeLogFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use a different username and password. - /// -internal static string strUseDifferentUsernameAndPassword - { - get - { - return ResourceManager.GetString("strUseDifferentUsernameAndPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use only Notifications panel (no messagebox popups). - /// -internal static string strUseOnlyErrorsAndInfosPanel - { - get - { - return ResourceManager.GetString("strUseOnlyErrorsAndInfosPanel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User. - /// -internal static string strUser - { - get - { - return ResourceManager.GetString("strUser", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use the same username and password. - /// -internal static string strUseSameUsernameAndPassword - { - get - { - return ResourceManager.GetString("strUseSameUsernameAndPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use a smart card. - /// -internal static string strUseSmartCard - { - get - { - return ResourceManager.GetString("strUseSmartCard", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use SQL Server to load && save connections. - /// -internal static string strUseSQLServer - { - get - { - return ResourceManager.GetString("strUseSQLServer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Version. - /// -internal static string strVersion - { - get - { - return ResourceManager.GetString("strVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to visionapp Remote Desktop 2008 CSV. - /// -internal static string strVisionAppRemoteDesktopCsv - { - get - { - return ResourceManager.GetString("strVisionAppRemoteDesktopCsv", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC. - /// -internal static string strVnc - { - get - { - return ResourceManager.GetString("strVnc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC disconnect failed!. - /// -internal static string strVncConnectionDisconnectFailed - { - get - { - return ResourceManager.GetString("strVncConnectionDisconnectFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Opening connection failed!. - /// -internal static string strVncConnectionOpenFailed - { - get - { - return ResourceManager.GetString("strVncConnectionOpenFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC Refresh Screen Failed!. - /// -internal static string strVncRefreshFailed - { - get - { - return ResourceManager.GetString("strVncRefreshFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC SendSpecialKeys failed!. - /// -internal static string strVncSendSpecialKeysFailed - { - get - { - return ResourceManager.GetString("strVncSendSpecialKeysFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC Set Event Handlers failed!. - /// -internal static string strVncSetEventHandlersFailed - { - get - { - return ResourceManager.GetString("strVncSetEventHandlersFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC Set Props Failed!. - /// -internal static string strVncSetPropsFailed - { - get - { - return ResourceManager.GetString("strVncSetPropsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC Start Chat Failed!. - /// -internal static string strVncStartChatFailed - { - get - { - return ResourceManager.GetString("strVncStartChatFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC Toggle SmartSize Failed!. - /// -internal static string strVncToggleSmartSizeFailed - { - get - { - return ResourceManager.GetString("strVncToggleSmartSizeFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to VNC Toggle ViewOnly Failed!. - /// -internal static string strVncToggleViewOnlyFailed - { - get - { - return ResourceManager.GetString("strVncToggleViewOnlyFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Warn me if authentication fails. - /// -internal static string strWarnIfAuthFails - { - get - { - return ResourceManager.GetString("strWarnIfAuthFails", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Warnings. - /// -internal static string strWarnings - { - get - { - return ResourceManager.GetString("strWarnings", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Uses the DockPanel Suite by [Weifen Luo]. - /// -internal static string strWeifenLuoAttribution - { - get - { - return ResourceManager.GetString("strWeifenLuoAttribution", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to http://sourceforge.net/projects/dockpanelsuite/. - /// -internal static string strWeifenLuoAttributionURL - { - get - { - return ResourceManager.GetString("strWeifenLuoAttributionURL", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Write log file (mRemoteNG.log). - /// -internal static string strWriteLogFile - { - get - { - return ResourceManager.GetString("strWriteLogFile", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to XULrunner path:. - /// -internal static string strXULrunnerPath - { - get - { - return ResourceManager.GetString("strXULrunnerPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Yes. - /// -internal static string strYes - { - get - { - return ResourceManager.GetString("strYes", resourceCulture); - } - } - } - } - +namespace mRemoteNG.My { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Language { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Language() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("mRemoteNG.Language.Language", typeof(Language).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to About. + /// + internal static string strAbout { + get { + return ResourceManager.GetString("strAbout", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Active. + /// + internal static string strActive { + get { + return ResourceManager.GetString("strActive", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Active Directory. + /// + internal static string strActiveDirectory { + get { + return ResourceManager.GetString("strActiveDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Activity. + /// + internal static string strActivity { + get { + return ResourceManager.GetString("strActivity", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Connection. + /// + internal static string strAddConnection { + get { + return ResourceManager.GetString("strAddConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New folder. + /// + internal static string strAddFolder { + get { + return ResourceManager.GetString("strAddFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AddNodeFromXML failed!. + /// + internal static string strAddNodeFromXmlFailed { + get { + return ResourceManager.GetString("strAddNodeFromXmlFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AddNodesFromSQL failed!. + /// + internal static string strAddNodesFromSqlFailed { + get { + return ResourceManager.GetString("strAddNodesFromSqlFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Allow only a single instance of the application (mRemoteNG restart required). + /// + internal static string strAllowOnlySingleInstance { + get { + return ResourceManager.GetString("strAllowOnlySingleInstance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Always. + /// + internal static string strAlways { + get { + return ResourceManager.GetString("strAlways", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Always connect, even if authentication fails. + /// + internal static string strAlwaysConnectEvenIfAuthFails { + get { + return ResourceManager.GetString("strAlwaysConnectEvenIfAuthFails", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Always show panel selection dialog when opening connections. + /// + internal static string strAlwaysShowPanelSelection { + get { + return ResourceManager.GetString("strAlwaysShowPanelSelection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Always show panel tabs. + /// + internal static string strAlwaysShowPanelTabs { + get { + return ResourceManager.GetString("strAlwaysShowPanelTabs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Always show notification area icon. + /// + internal static string strAlwaysShowSysTrayIcon { + get { + return ResourceManager.GetString("strAlwaysShowSysTrayIcon", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ask me again later. + /// + internal static string strAskUpdatesCommandAskLater { + get { + return ResourceManager.GetString("strAskUpdatesCommandAskLater", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Customize the settings now. + /// + internal static string strAskUpdatesCommandCustom { + get { + return ResourceManager.GetString("strAskUpdatesCommandCustom", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use the recommended settings. + /// + internal static string strAskUpdatesCommandRecommended { + get { + return ResourceManager.GetString("strAskUpdatesCommandRecommended", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} can automatically check for updates that may provide new features and bug fixes. It is recommended that you allow {0} to check for updates weekly.. + /// + internal static string strAskUpdatesContent { + get { + return ResourceManager.GetString("strAskUpdatesContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Automatic update settings. + /// + internal static string strAskUpdatesMainInstruction { + get { + return ResourceManager.GetString("strAskUpdatesMainInstruction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Aspect. + /// + internal static string strAspect { + get { + return ResourceManager.GetString("strAspect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Automatically get session information. + /// + internal static string strAutomaticallyGetSessionInfo { + get { + return ResourceManager.GetString("strAutomaticallyGetSessionInfo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Auto save every:. + /// + internal static string strAutoSaveEvery { + get { + return ResourceManager.GetString("strAutoSaveEvery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Minutes (0 means disabled). + /// + internal static string strAutoSaveMins { + get { + return ResourceManager.GetString("strAutoSaveMins", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Latest version. + /// + internal static string strAvailableVersion { + get { + return ResourceManager.GetString("strAvailableVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Browse.... + /// + internal static string strButtonBrowse { + get { + return ResourceManager.GetString("strButtonBrowse", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Cancel. + /// + internal static string strButtonCancel { + get { + return ResourceManager.GetString("strButtonCancel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Change. + /// + internal static string strButtonChange { + get { + return ResourceManager.GetString("strButtonChange", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Close. + /// + internal static string strButtonClose { + get { + return ResourceManager.GetString("strButtonClose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Default Inheritance. + /// + internal static string strButtonDefaultInheritance { + get { + return ResourceManager.GetString("strButtonDefaultInheritance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Default Properties. + /// + internal static string strButtonDefaultProperties { + get { + return ResourceManager.GetString("strButtonDefaultProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disconnect. + /// + internal static string strButtonDisconnect { + get { + return ResourceManager.GetString("strButtonDisconnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Icon. + /// + internal static string strButtonIcon { + get { + return ResourceManager.GetString("strButtonIcon", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Import. + /// + internal static string strButtonImport { + get { + return ResourceManager.GetString("strButtonImport", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Inheritance. + /// + internal static string strButtonInheritance { + get { + return ResourceManager.GetString("strButtonInheritance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Launch. + /// + internal static string strButtonLaunch { + get { + return ResourceManager.GetString("strButtonLaunch", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Launch PuTTY. + /// + internal static string strButtonLaunchPutty { + get { + return ResourceManager.GetString("strButtonLaunchPutty", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &New. + /// + internal static string strButtonNew { + get { + return ResourceManager.GetString("strButtonNew", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &OK. + /// + internal static string strButtonOK { + get { + return ResourceManager.GetString("strButtonOK", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Properties. + /// + internal static string strButtonProperties { + get { + return ResourceManager.GetString("strButtonProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Scan. + /// + internal static string strButtonScan { + get { + return ResourceManager.GetString("strButtonScan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Stop. + /// + internal static string strButtonStop { + get { + return ResourceManager.GetString("strButtonStop", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Test Proxy. + /// + internal static string strButtonTestProxy { + get { + return ResourceManager.GetString("strButtonTestProxy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You cannot import a normal connection file. + ///Please use File - Load Connections for normal connection files!. + /// + internal static string strCannotImportNormalSessionFile { + get { + return ResourceManager.GetString("strCannotImportNormalSessionFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot start Port Scan, incorrect IP format!. + /// + internal static string strCannotStartPortScan { + get { + return ResourceManager.GetString("strCannotStartPortScan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Appearance. + /// + internal static string strCategoryAppearance { + get { + return ResourceManager.GetString("strCategoryAppearance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection. + /// + internal static string strCategoryConnection { + get { + return ResourceManager.GetString("strCategoryConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Credentials. + /// + internal static string strCategoryCredentials { + get { + return ResourceManager.GetString("strCategoryCredentials", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Display. + /// + internal static string strCategoryDisplay { + get { + return ResourceManager.GetString("strCategoryDisplay", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gateway. + /// + internal static string strCategoryGateway { + get { + return ResourceManager.GetString("strCategoryGateway", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to General. + /// + internal static string strCategoryGeneral { + get { + return ResourceManager.GetString("strCategoryGeneral", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Miscellaneous. + /// + internal static string strCategoryMiscellaneous { + get { + return ResourceManager.GetString("strCategoryMiscellaneous", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol. + /// + internal static string strCategoryProtocol { + get { + return ResourceManager.GetString("strCategoryProtocol", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Redirect. + /// + internal static string strCategoryRedirect { + get { + return ResourceManager.GetString("strCategoryRedirect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Always show this screen at startup. + /// + internal static string strCcAlwaysShowScreen { + get { + return ResourceManager.GetString("strCcAlwaysShowScreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Refresh. + /// + internal static string strCcCheckAgain { + get { + return ResourceManager.GetString("strCcCheckAgain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check failed!. + /// + internal static string strCcCheckFailed { + get { + return ResourceManager.GetString("strCcCheckFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check succeeded!. + /// + internal static string strCcCheckSucceeded { + get { + return ResourceManager.GetString("strCcCheckSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The (RDP) Sessions feature requires that you have a copy of eolwtscom.dll registered on your system. + ///mRemoteNG ships with this component but it is not registered automatically if you do not use the mRemoteNG Installer. + ///To register it manually, run the following command from an elevated command prompt: regsvr32 "C:\Program Files\mRemoteNG\eolwtscom.dll" (where C:\Program Files\mRemoteNG\ is the path to your mRemoteNG installation). + ///If this check still fails or you are unable to use the (RDP) Sessions feat [rest of string was truncated]";. + /// + internal static string strCcEOLFailed { + get { + return ResourceManager.GetString("strCcEOLFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to EOLWTSCOM was found and seems to be registered properly.. + /// + internal static string strCcEOLOK { + get { + return ResourceManager.GetString("strCcEOLOK", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To use the Gecko Rendering Engine you need to have XULrunner 1.8.1.x and the path to the installation set in your Options. + ///You can download XULrunner 1.8.1.3 here: ftp://ftp.mozilla.org/pub/xulrunner/releases/1.8.1.3/contrib/win32/ + ///When you are finished downloading extract the package to a path of your choice. Then in mRemoteNG go to Tools - Options - Advanced and enter the correct path in the XULrunner path field. + ///If you are still not able to pass this check or use the Gecko Engine in mRemoteNG please c [rest of string was truncated]";. + /// + internal static string strCcGeckoFailed { + get { + return ResourceManager.GetString("strCcGeckoFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to XULrunner was found and seems to be installed properly.. + /// + internal static string strCcGeckoOK { + get { + return ResourceManager.GetString("strCcGeckoOK", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ICA requires that the XenDesktop Online Plugin is installed and that the wfica.ocx library is registered. You can download the client here: http://www.citrix.com/download/ + ///If you have the XenDesktop Online Plugin installed and the check still fails, try to register wfica.ocx manually. + ///To do this open up the run dialog (Start - Run) and enter the following: regsvr32 "c:\Program Files\Citrix\ICA Client\wfica.ocx" (Where c:\Program Files\Citrix\ICA Client\ is the path to your XenDesktop Online Plugin install [rest of string was truncated]";. + /// + internal static string strCcICAFailed { + get { + return ResourceManager.GetString("strCcICAFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to All ICA components were found and seem to be registered properly. + ///Citrix ICA Client Control Version {0}. + /// + internal static string strCcICAOK { + get { + return ResourceManager.GetString("strCcICAOK", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to not installed properly. + /// + internal static string strCcNotInstalledProperly { + get { + return ResourceManager.GetString("strCcNotInstalledProperly", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The SSH, Telnet, Rlogin and RAW protocols need PuTTY to work. PuTTY comes with every mRemoteNG package and is located in the installation path. + ///Please make sure that either you have the Putty.exe in your mRemoteNG directory (default: c:\Program Files\mRemoteNG\) or that you specified a valid path to your PuTTY executable in the Options (Tools - Options - Advanced - Custom PuTTY path). + /// + internal static string strCcPuttyFailed { + get { + return ResourceManager.GetString("strCcPuttyFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The PuTTY executable was found and should be ready to use.. + /// + internal static string strCcPuttyOK { + get { + return ResourceManager.GetString("strCcPuttyOK", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to For RDP to work properly you need to have at least Remote Desktop Connection (Terminal Services) Client 6.0 installed. You can download it here: http://support.microsoft.com/kb/925876 + ///If this check still fails or you are unable to use RDP, please consult the mRemoteNG Forum at http://forum.mremoteng.org/.. + /// + internal static string strCcRDPFailed { + get { + return ResourceManager.GetString("strCcRDPFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to All RDP components were found and seem to be registered properly. + ///Remote Desktop Connection Control Version {0}. + /// + internal static string strCcRDPOK { + get { + return ResourceManager.GetString("strCcRDPOK", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC requires VncSharpNG.dll to be located in your mRemoteNG application folder. + ///Please make sure that you have the VncSharpNG.dll file in your mRemoteNG application folder (usually C:\Program Files\mRemoteNG\). + ///If you are still not able to pass this check or use VNC in mRemoteNG please consult the mRemoteNG Forum at http://forum.mremoteng.org/. + /// + internal static string strCcVNCFailed { + get { + return ResourceManager.GetString("strCcVNCFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to All VNC components were found and seem to be registered properly. + ///VncSharpNG Control Version {0}. + /// + internal static string strCcVNCOK { + get { + return ResourceManager.GetString("strCcVNCOK", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Automatically try to reconnect when disconnected from server (RDP && ICA only). + /// + internal static string strCheckboxAutomaticReconnect { + get { + return ResourceManager.GetString("strCheckboxAutomaticReconnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Domain. + /// + internal static string strCheckboxDomain { + get { + return ResourceManager.GetString("strCheckboxDomain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Do not show this message again.. + /// + internal static string strCheckboxDoNotShowThisMessageAgain { + get { + return ResourceManager.GetString("strCheckboxDoNotShowThisMessageAgain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Inheritance. + /// + internal static string strCheckboxInheritance { + get { + return ResourceManager.GetString("strCheckboxInheritance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password. + /// + internal static string strCheckboxPassword { + get { + return ResourceManager.GetString("strCheckboxPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This proxy server requires authentication. + /// + internal static string strCheckboxProxyAuthentication { + get { + return ResourceManager.GetString("strCheckboxProxyAuthentication", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use custom PuTTY path:. + /// + internal static string strCheckboxPuttyPath { + get { + return ResourceManager.GetString("strCheckboxPuttyPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reconnect when ready. + /// + internal static string strCheckboxReconnectWhenReady { + get { + return ResourceManager.GetString("strCheckboxReconnectWhenReady", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use a proxy server to connect. + /// + internal static string strCheckboxUpdateUseProxy { + get { + return ResourceManager.GetString("strCheckboxUpdateUseProxy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username. + /// + internal static string strCheckboxUsername { + get { + return ResourceManager.GetString("strCheckboxUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Wait for exit. + /// + internal static string strCheckboxWaitForExit { + get { + return ResourceManager.GetString("strCheckboxWaitForExit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check Again. + /// + internal static string strCheckForUpdate { + get { + return ResourceManager.GetString("strCheckForUpdate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check for updates and announcements at startup. + /// + internal static string strCheckForUpdatesOnStartup { + get { + return ResourceManager.GetString("strCheckForUpdatesOnStartup", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check now. + /// + internal static string strCheckNow { + get { + return ResourceManager.GetString("strCheckNow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check proper installation of components at startup. + /// + internal static string strCheckProperInstallationOfComponentsAtStartup { + get { + return ResourceManager.GetString("strCheckProperInstallationOfComponentsAtStartup", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Choose panel before connecting. + /// + internal static string strChoosePanelBeforeConnecting { + get { + return ResourceManager.GetString("strChoosePanelBeforeConnecting", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Closed Ports. + /// + internal static string strClosedPorts { + get { + return ResourceManager.GetString("strClosedPorts", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Collapse all folders. + /// + internal static string strCollapseAllFolders { + get { + return ResourceManager.GetString("strCollapseAllFolders", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Arguments. + /// + internal static string strColumnArguments { + get { + return ResourceManager.GetString("strColumnArguments", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Display Name. + /// + internal static string strColumnDisplayName { + get { + return ResourceManager.GetString("strColumnDisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Filename. + /// + internal static string strColumnFilename { + get { + return ResourceManager.GetString("strColumnFilename", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Hostname/IP. + /// + internal static string strColumnHostnameIP { + get { + return ResourceManager.GetString("strColumnHostnameIP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Message. + /// + internal static string strColumnMessage { + get { + return ResourceManager.GetString("strColumnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username. + /// + internal static string strColumnUsername { + get { + return ResourceManager.GetString("strColumnUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Wait For Exit. + /// + internal static string strColumnWaitForExit { + get { + return ResourceManager.GetString("strColumnWaitForExit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to E&xit {0}. + /// + internal static string strCommandExitProgram { + get { + return ResourceManager.GetString("strCommandExitProgram", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't parse command line args!. + /// + internal static string strCommandLineArgsCouldNotBeParsed { + get { + return ResourceManager.GetString("strCommandLineArgsCouldNotBeParsed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Open a connection file. + /// + internal static string strCommandOpenConnectionFile { + get { + return ResourceManager.GetString("strCommandOpenConnectionFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Try again. + /// + internal static string strCommandTryAgain { + get { + return ResourceManager.GetString("strCommandTryAgain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} has detected the Lenovo Auto Scroll Utility running on this system. This utility is known to cause problems with {0}. It is recommended that you disable or uninstall it.. + /// + internal static string strCompatibilityLenovoAutoScrollUtilityDetected { + get { + return ResourceManager.GetString("strCompatibilityLenovoAutoScrollUtilityDetected", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Compatibility problem detected. + /// + internal static string strCompatibilityProblemDetected { + get { + return ResourceManager.GetString("strCompatibilityProblemDetected", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Components Check. + /// + internal static string strComponentsCheck { + get { + return ResourceManager.GetString("strComponentsCheck", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to btnIcon_Click failed!. + /// + internal static string strConfigPropertyGridButtonIconClickFailed { + get { + return ResourceManager.GetString("strConfigPropertyGridButtonIconClickFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ShowHideGridItems failed!. + /// + internal static string strConfigPropertyGridHideItemsFailed { + get { + return ResourceManager.GetString("strConfigPropertyGridHideItemsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to IconMenu_Click failed!. + /// + internal static string strConfigPropertyGridMenuClickFailed { + get { + return ResourceManager.GetString("strConfigPropertyGridMenuClickFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property Grid object failed!. + /// + internal static string strConfigPropertyGridObjectFailed { + get { + return ResourceManager.GetString("strConfigPropertyGridObjectFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SetHostStatus failed!. + /// + internal static string strConfigPropertyGridSetHostStatusFailed { + get { + return ResourceManager.GetString("strConfigPropertyGridSetHostStatusFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to pGrid_PopertyValueChanged failed!. + /// + internal static string strConfigPropertyGridValueFailed { + get { + return ResourceManager.GetString("strConfigPropertyGridValueFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config UI load failed!. + /// + internal static string strConfigUiLoadFailed { + get { + return ResourceManager.GetString("strConfigUiLoadFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Do you want to close the connection, "{0}"?. + /// + internal static string strConfirmCloseConnectionMainInstruction { + get { + return ResourceManager.GetString("strConfirmCloseConnectionMainInstruction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to close the panel, "{0}"? Any connections that it contains will also be closed.. + /// + internal static string strConfirmCloseConnectionPanelMainInstruction { + get { + return ResourceManager.GetString("strConfirmCloseConnectionPanelMainInstruction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the external tool, "{0}"?. + /// + internal static string strConfirmDeleteExternalTool { + get { + return ResourceManager.GetString("strConfirmDeleteExternalTool", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the {0} selected external tools?. + /// + internal static string strConfirmDeleteExternalToolMultiple { + get { + return ResourceManager.GetString("strConfirmDeleteExternalToolMultiple", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the connection, "{0}"?. + /// + internal static string strConfirmDeleteNodeConnection { + get { + return ResourceManager.GetString("strConfirmDeleteNodeConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the empty folder, "{0}"?. + /// + internal static string strConfirmDeleteNodeFolder { + get { + return ResourceManager.GetString("strConfirmDeleteNodeFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the folder, "{0}"? Any folders or connections that it contains will also be deleted.. + /// + internal static string strConfirmDeleteNodeFolderNotEmpty { + get { + return ResourceManager.GetString("strConfirmDeleteNodeFolderNotEmpty", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Do you want to close all open connections?. + /// + internal static string strConfirmExitMainInstruction { + get { + return ResourceManager.GetString("strConfirmExitMainInstruction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to reset the panels to their default layout?. + /// + internal static string strConfirmResetLayout { + get { + return ResourceManager.GetString("strConfirmResetLayout", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect. + /// + internal static string strConnect { + get { + return ResourceManager.GetString("strConnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect in fullscreen mode. + /// + internal static string strConnectInFullscreen { + get { + return ResourceManager.GetString("strConnectInFullscreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connecting.... + /// + internal static string strConnecting { + get { + return ResourceManager.GetString("strConnecting", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol Event Connected. + /// + internal static string strConnectionEventConnected { + get { + return ResourceManager.GetString("strConnectionEventConnected", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection to "{0}" via "{1}" established by user "{2}" (Description: "{3}"; User Field: "{4}"). + /// + internal static string strConnectionEventConnectedDetail { + get { + return ResourceManager.GetString("strConnectionEventConnectedDetail", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Conenction failed!. + /// + internal static string strConnectionEventConnectionFailed { + get { + return ResourceManager.GetString("strConnectionEventConnectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol Event ErrorOccured. + /// + internal static string strConnectionEventErrorOccured { + get { + return ResourceManager.GetString("strConnectionEventErrorOccured", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Opening connection failed!. + /// + internal static string strConnectionOpenFailed { + get { + return ResourceManager.GetString("strConnectionOpenFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot open connection: No hostname specified!. + /// + internal static string strConnectionOpenFailedNoHostname { + get { + return ResourceManager.GetString("strConnectionOpenFailedNoHostname", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP error! + ///Error Code: {0} + ///Error Description: {1}. + /// + internal static string strConnectionRdpErrorDetail { + get { + return ResourceManager.GetString("strConnectionRdpErrorDetail", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections. + /// + internal static string strConnections { + get { + return ResourceManager.GetString("strConnections", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't set default port!. + /// + internal static string strConnectionSetDefaultPortFailed { + get { + return ResourceManager.GetString("strConnectionSetDefaultPortFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't create backup of connections file!. + /// + internal static string strConnectionsFileBackupFailed { + get { + return ResourceManager.GetString("strConnectionsFileBackupFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't import connections file!. + /// + internal static string strConnectionsFileCouldNotBeImported { + get { + return ResourceManager.GetString("strConnectionsFileCouldNotBeImported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections file "{0}" could not be loaded!. + /// + internal static string strConnectionsFileCouldNotBeLoaded { + get { + return ResourceManager.GetString("strConnectionsFileCouldNotBeLoaded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections file "{0}" could not be loaded! + ///Starting with new connections file.. + /// + internal static string strConnectionsFileCouldNotBeLoadedNew { + get { + return ResourceManager.GetString("strConnectionsFileCouldNotBeLoadedNew", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't save connections file!. + /// + internal static string strConnectionsFileCouldNotBeSaved { + get { + return ResourceManager.GetString("strConnectionsFileCouldNotBeSaved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't save connections file as "{0}"!. + /// + internal static string strConnectionsFileCouldNotSaveAs { + get { + return ResourceManager.GetString("strConnectionsFileCouldNotSaveAs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect without credentials. + /// + internal static string strConnectNoCredentials { + get { + return ResourceManager.GetString("strConnectNoCredentials", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect to console session. + /// + internal static string strConnectToConsoleSession { + get { + return ResourceManager.GetString("strConnectToConsoleSession", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect (with options). + /// + internal static string strConnectWithOptions { + get { + return ResourceManager.GetString("strConnectWithOptions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection to {0} via {1} closed by user {2}.. + /// + internal static string strConnenctionClosedByUser { + get { + return ResourceManager.GetString("strConnenctionClosedByUser", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection to {0} via {1} closed by user {2}. (Description: "{3}"; User Field: "{4}"). + /// + internal static string strConnenctionClosedByUserDetail { + get { + return ResourceManager.GetString("strConnenctionClosedByUserDetail", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection Event Closed. + /// + internal static string strConnenctionCloseEvent { + get { + return ResourceManager.GetString("strConnenctionCloseEvent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection Event Closed failed!. + /// + internal static string strConnenctionCloseEventFailed { + get { + return ResourceManager.GetString("strConnenctionCloseEventFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't create new connections file!. + /// + internal static string strCouldNotCreateNewConnectionsFile { + get { + return ResourceManager.GetString("strCouldNotCreateNewConnectionsFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Could not find ToolStrip control in FilteredPropertyGrid.. + /// + internal static string strCouldNotFindToolStripInFilteredPropertyGrid { + get { + return ResourceManager.GetString("strCouldNotFindToolStripInFilteredPropertyGrid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installed version. + /// + internal static string strCurrentVersion { + get { + return ResourceManager.GetString("strCurrentVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Default Theme. + /// + internal static string strDefaultTheme { + get { + return ResourceManager.GetString("strDefaultTheme", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Detect. + /// + internal static string strDetect { + get { + return ResourceManager.GetString("strDetect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Don't connect to console session. + /// + internal static string strDontConnectToConsoleSessionMenuItem { + get { + return ResourceManager.GetString("strDontConnectToConsoleSessionMenuItem", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Don't connect if authentication fails. + /// + internal static string strDontConnectWhenAuthFails { + get { + return ResourceManager.GetString("strDontConnectWhenAuthFails", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Double click on tab closes it. + /// + internal static string strDoubleClickTabClosesIt { + get { + return ResourceManager.GetString("strDoubleClickTabClosesIt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Download and Install. + /// + internal static string strDownloadAndInstall { + get { + return ResourceManager.GetString("strDownloadAndInstall", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Duplicate. + /// + internal static string strDuplicate { + get { + return ResourceManager.GetString("strDuplicate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Do you want to continue with no password?. + /// + internal static string strEmptyPasswordContinue { + get { + return ResourceManager.GetString("strEmptyPasswordContinue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to For empty Username, Password or Domain fields use:. + /// + internal static string strEmptyUsernamePasswordDomainFields { + get { + return ResourceManager.GetString("strEmptyUsernamePasswordDomainFields", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 128-bit. + /// + internal static string strEnc128Bit { + get { + return ResourceManager.GetString("strEnc128Bit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 128-bit (logon only). + /// + internal static string strEnc128BitLogonOnly { + get { + return ResourceManager.GetString("strEnc128BitLogonOnly", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 40-bit. + /// + internal static string strEnc40Bit { + get { + return ResourceManager.GetString("strEnc40Bit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 56-bit. + /// + internal static string strEnc56Bit { + get { + return ResourceManager.GetString("strEnc56Bit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Basic. + /// + internal static string strEncBasic { + get { + return ResourceManager.GetString("strEncBasic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Completely encrypt connection file. + /// + internal static string strEncryptCompleteConnectionFile { + get { + return ResourceManager.GetString("strEncryptCompleteConnectionFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to End IP. + /// + internal static string strEndIP { + get { + return ResourceManager.GetString("strEndIP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to End Port. + /// + internal static string strEndPort { + get { + return ResourceManager.GetString("strEndPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AddExternalToolsToToolBar (frmMain) failed. {0}. + /// + internal static string strErrorAddExternalToolsToToolBarFailed { + get { + return ResourceManager.GetString("strErrorAddExternalToolsToToolBarFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AddFolder (UI.Window.Tree) failed. {0}. + /// + internal static string strErrorAddFolderFailed { + get { + return ResourceManager.GetString("strErrorAddFolderFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The database version {0} is not compatible with this version of {1}.. + /// + internal static string strErrorBadDatabaseVersion { + get { + return ResourceManager.GetString("strErrorBadDatabaseVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CloneNode (Tree.Node) failed . {0}. + /// + internal static string strErrorCloneNodeFailed { + get { + return ResourceManager.GetString("strErrorCloneNodeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Error code {0}.. + /// + internal static string strErrorCode { + get { + return ResourceManager.GetString("strErrorCode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The connection list could not be saved.. + /// + internal static string strErrorConnectionListSaveFailed { + get { + return ResourceManager.GetString("strErrorConnectionListSaveFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PuTTY could not be launched.. + /// + internal static string strErrorCouldNotLaunchPutty { + get { + return ResourceManager.GetString("strErrorCouldNotLaunchPutty", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Decryption failed. {0}. + /// + internal static string strErrorDecryptionFailed { + get { + return ResourceManager.GetString("strErrorDecryptionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Encryption failed. {0}. + /// + internal static string strErrorEncryptionFailed { + get { + return ResourceManager.GetString("strErrorEncryptionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The Windows security setting, "System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing", is enabled. This setting is not compatible with {0}. + /// + ///See the Microsoft Support article at http://support.microsoft.com/kb/811833 for more information. + /// + ///{0} will now close.. + /// + internal static string strErrorFipsPolicyIncompatible { + get { + return ResourceManager.GetString("strErrorFipsPolicyIncompatible", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Errors. + /// + internal static string strErrors { + get { + return ResourceManager.GetString("strErrors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The startup connection file could not be loaded.{0}{0}{2}{0}{3}{0}{0}In order to prevent data loss, {1} will now exit.. + /// + internal static string strErrorStartupConnectionFileLoad { + get { + return ResourceManager.GetString("strErrorStartupConnectionFileLoad", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VerifyDatabaseVersion (Config.Connections.Save) failed. {0}. + /// + internal static string strErrorVerifyDatabaseVersionFailed { + get { + return ResourceManager.GetString("strErrorVerifyDatabaseVersionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Expand all folders. + /// + internal static string strExpandAllFolders { + get { + return ResourceManager.GetString("strExpandAllFolders", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Experimental. + /// + internal static string strExperimental { + get { + return ResourceManager.GetString("strExperimental", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export. + /// + internal static string strExport { + get { + return ResourceManager.GetString("strExport", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export everything. + /// + internal static string strExportEverything { + get { + return ResourceManager.GetString("strExportEverything", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export File. + /// + internal static string strExportFile { + get { + return ResourceManager.GetString("strExportFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export Items. + /// + internal static string strExportItems { + get { + return ResourceManager.GetString("strExportItems", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export mRemote/mRemoteNG XML. + /// + internal static string strExportmRemoteXML { + get { + return ResourceManager.GetString("strExportmRemoteXML", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export Properties. + /// + internal static string strExportProperties { + get { + return ResourceManager.GetString("strExportProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export the currently selected connection. + /// + internal static string strExportSelectedConnection { + get { + return ResourceManager.GetString("strExportSelectedConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export the currently selected folder. + /// + internal static string strExportSelectedFolder { + get { + return ResourceManager.GetString("strExportSelectedFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Export to File.... + /// + internal static string strExportToFileMenuItem { + get { + return ResourceManager.GetString("strExportToFileMenuItem", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ext. App. + /// + internal static string strExtApp { + get { + return ResourceManager.GetString("strExtApp", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New External Tool. + /// + internal static string strExternalToolDefaultName { + get { + return ResourceManager.GetString("strExternalToolDefaultName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Includes icons by [FAMFAMFAM]. + /// + internal static string strFAMFAMFAMAttribution { + get { + return ResourceManager.GetString("strFAMFAMFAMAttribution", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to http://www.famfamfam.com/. + /// + internal static string strFAMFAMFAMAttributionURL { + get { + return ResourceManager.GetString("strFAMFAMFAMAttributionURL", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File &Format:. + /// + internal static string strFileFormatLabel { + get { + return ResourceManager.GetString("strFileFormatLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to All Files (*.*). + /// + internal static string strFilterAll { + get { + return ResourceManager.GetString("strFilterAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to All importable files. + /// + internal static string strFilterAllImportable { + get { + return ResourceManager.GetString("strFilterAllImportable", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Application Files (*.exe). + /// + internal static string strFilterApplication { + get { + return ResourceManager.GetString("strFilterApplication", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemote CSV Files (*.csv). + /// + internal static string strFiltermRemoteCSV { + get { + return ResourceManager.GetString("strFiltermRemoteCSV", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemote XML Files (*.xml). + /// + internal static string strFiltermRemoteXML { + get { + return ResourceManager.GetString("strFiltermRemoteXML", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PuTTY Connection Manager files. + /// + internal static string strFilterPuttyConnectionManager { + get { + return ResourceManager.GetString("strFilterPuttyConnectionManager", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remote Desktop Connection Manager files (*.rdg). + /// + internal static string strFilterRdgFiles { + get { + return ResourceManager.GetString("strFilterRdgFiles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP Files (*.rdp). + /// + internal static string strFilterRDP { + get { + return ResourceManager.GetString("strFilterRDP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to visionapp Remote Desktop 2008 CSV Files (*.csv). + /// + internal static string strFiltervRD2008CSV { + get { + return ResourceManager.GetString("strFiltervRD2008CSV", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Inherit {0}. + /// + internal static string strFormatInherit { + get { + return ResourceManager.GetString("strFormatInherit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Description of inherited property: {0}. + /// + internal static string strFormatInheritDescription { + get { + return ResourceManager.GetString("strFormatInheritDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Free. + /// + internal static string strFree { + get { + return ResourceManager.GetString("strFree", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Fullscreen. + /// + internal static string strFullscreen { + get { + return ResourceManager.GetString("strFullscreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to General. + /// + internal static string strGeneral { + get { + return ResourceManager.GetString("strGeneral", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Get Connection Info From SQL failed. + /// + internal static string strGetConnectionInfoFromSqlFailed { + get { + return ResourceManager.GetString("strGetConnectionInfoFromSqlFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to An error occured while loading the connection entry for "{0}" from "{1}". {2}. + /// + internal static string strGetConnectionInfoFromXmlFailed { + get { + return ResourceManager.GetString("strGetConnectionInfoFromXmlFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Automatic Reconnect. + /// + internal static string strGroupboxAutomaticReconnect { + get { + return ResourceManager.GetString("strGroupboxAutomaticReconnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection. + /// + internal static string strGroupboxConnection { + get { + return ResourceManager.GetString("strGroupboxConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to External Tool Properties. + /// + internal static string strGroupboxExternalToolProperties { + get { + return ResourceManager.GetString("strGroupboxExternalToolProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Files. + /// + internal static string strGroupboxFiles { + get { + return ResourceManager.GetString("strGroupboxFiles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Host. + /// + internal static string strHost { + get { + return ResourceManager.GetString("strHost", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to HTTP. + /// + internal static string strHttp { + get { + return ResourceManager.GetString("strHttp", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to HTTP Connect Failed!. + /// + internal static string strHttpConnectFailed { + get { + return ResourceManager.GetString("strHttpConnectFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't create new HTTP Connection!. + /// + internal static string strHttpConnectionFailed { + get { + return ResourceManager.GetString("strHttpConnectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Changing HTTP Document Tile Failed!. + /// + internal static string strHttpDocumentTileChangeFailed { + get { + return ResourceManager.GetString("strHttpDocumentTileChangeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gecko (Firefox). + /// + internal static string strHttpGecko { + get { + return ResourceManager.GetString("strHttpGecko", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internet Explorer. + /// + internal static string strHttpInternetExplorer { + get { + return ResourceManager.GetString("strHttpInternetExplorer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to HTTPS. + /// + internal static string strHttps { + get { + return ResourceManager.GetString("strHttps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Set HTTP Props failed!. + /// + internal static string strHttpSetPropsFailed { + get { + return ResourceManager.GetString("strHttpSetPropsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ICA. + /// + internal static string strICA { + get { + return ResourceManager.GetString("strICA", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't create new ICA Connection!. + /// + internal static string strIcaConnectionFailed { + get { + return ResourceManager.GetString("strIcaConnectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Loading ICA Plugin failed!. + /// + internal static string strIcaControlFailed { + get { + return ResourceManager.GetString("strIcaControlFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ICA SetCredentials failed!. + /// + internal static string strIcaSetCredentialsFailed { + get { + return ResourceManager.GetString("strIcaSetCredentialsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ICA Set Event Handlers Failed!. + /// + internal static string strIcaSetEventHandlersFailed { + get { + return ResourceManager.GetString("strIcaSetEventHandlersFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ICA Set Props Failed!. + /// + internal static string strIcaSetPropsFailed { + get { + return ResourceManager.GetString("strIcaSetPropsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ICA Set Resolution Failed!. + /// + internal static string strIcaSetResolutionFailed { + get { + return ResourceManager.GetString("strIcaSetResolutionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Identify quick connect tabs by adding the prefix "Quick:". + /// + internal static string strIdentifyQuickConnectTabs { + get { + return ResourceManager.GetString("strIdentifyQuickConnectTabs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import from Active Directory. + /// + internal static string strImportAD { + get { + return ResourceManager.GetString("strImportAD", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import/Export. + /// + internal static string strImportExport { + get { + return ResourceManager.GetString("strImportExport", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to An error occurred while importing the file, "{0}".. + /// + internal static string strImportFileFailedContent { + get { + return ResourceManager.GetString("strImportFileFailedContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import failed. + /// + internal static string strImportFileFailedMainInstruction { + get { + return ResourceManager.GetString("strImportFileFailedMainInstruction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import from &File.... + /// + internal static string strImportFromFileMenuItem { + get { + return ResourceManager.GetString("strImportFromFileMenuItem", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Under the root{0}{1}|Under the selected folder{0}{2}. + /// + internal static string strImportLocationCommandButtons { + get { + return ResourceManager.GetString("strImportLocationCommandButtons", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Where would you like the imported items to be placed?. + /// + internal static string strImportLocationContent { + get { + return ResourceManager.GetString("strImportLocationContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import location. + /// + internal static string strImportLocationMainInstruction { + get { + return ResourceManager.GetString("strImportLocationMainInstruction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Import. + /// + internal static string strImportMenuItem { + get { + return ResourceManager.GetString("strImportMenuItem", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import mRemote/mRemoteNG XML. + /// + internal static string strImportmRemoteXML { + get { + return ResourceManager.GetString("strImportmRemoteXML", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import from Port Scan. + /// + internal static string strImportPortScan { + get { + return ResourceManager.GetString("strImportPortScan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Import from .RDP file(s). + /// + internal static string strImportRDPFiles { + get { + return ResourceManager.GetString("strImportRDPFiles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Inactive. + /// + internal static string strInactive { + get { + return ResourceManager.GetString("strInactive", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Informations. + /// + internal static string strInformations { + get { + return ResourceManager.GetString("strInformations", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemoteNG is up to date. + /// + internal static string strInheritNewConnection { + get { + return ResourceManager.GetString("strInheritNewConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection failed!. + /// + internal static string strIntAppConnectionFailed { + get { + return ResourceManager.GetString("strIntAppConnectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Dispose of Int App process failed!. + /// + internal static string strIntAppDisposeFailed { + get { + return ResourceManager.GetString("strIntAppDisposeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Int App Focus Failed!. + /// + internal static string strIntAppFocusFailed { + get { + return ResourceManager.GetString("strIntAppFocusFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Int App Handle: {0}. + /// + internal static string strIntAppHandle { + get { + return ResourceManager.GetString("strIntAppHandle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Killing Int App Process failed!. + /// + internal static string strIntAppKillFailed { + get { + return ResourceManager.GetString("strIntAppKillFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Panel Handle: {0}. + /// + internal static string strIntAppParentHandle { + get { + return ResourceManager.GetString("strIntAppParentHandle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Int App Resize failed!. + /// + internal static string strIntAppResizeFailed { + get { + return ResourceManager.GetString("strIntAppResizeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to --- IntApp Stuff ---. + /// + internal static string strIntAppStuff { + get { + return ResourceManager.GetString("strIntAppStuff", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Int App Title: {0}. + /// + internal static string strIntAppTitle { + get { + return ResourceManager.GetString("strIntAppTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CTRL-ALT-DEL. + /// + internal static string strKeysCtrlAltDel { + get { + return ResourceManager.GetString("strKeysCtrlAltDel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CTRL-ESC. + /// + internal static string strKeysCtrlEsc { + get { + return ResourceManager.GetString("strKeysCtrlEsc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Address:. + /// + internal static string strLabelAddress { + get { + return ResourceManager.GetString("strLabelAddress", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Arguments:. + /// + internal static string strLabelArguments { + get { + return ResourceManager.GetString("strLabelArguments", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Change Log:. + /// + internal static string strLabelChangeLog { + get { + return ResourceManager.GetString("strLabelChangeLog", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to When closing connections:. + /// + internal static string strLabelClosingConnections { + get { + return ResourceManager.GetString("strLabelClosingConnections", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Connect:. + /// + internal static string strLabelConnect { + get { + return ResourceManager.GetString("strLabelConnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Display Name. + /// + internal static string strLabelDisplayName { + get { + return ResourceManager.GetString("strLabelDisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Domain:. + /// + internal static string strLabelDomain { + get { + return ResourceManager.GetString("strLabelDomain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Filename:. + /// + internal static string strLabelFilename { + get { + return ResourceManager.GetString("strLabelFilename", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Hostname:. + /// + internal static string strLabelHostname { + get { + return ResourceManager.GetString("strLabelHostname", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Options:. + /// + internal static string strLabelOptions { + get { + return ResourceManager.GetString("strLabelOptions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password:. + /// + internal static string strLabelPassword { + get { + return ResourceManager.GetString("strLabelPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Port:. + /// + internal static string strLabelPort { + get { + return ResourceManager.GetString("strLabelPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Portable Edition. + /// + internal static string strLabelPortableEdition { + get { + return ResourceManager.GetString("strLabelPortableEdition", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol:. + /// + internal static string strLabelProtocol { + get { + return ResourceManager.GetString("strLabelProtocol", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To configure PuTTY sessions click this button:. + /// + internal static string strLabelPuttySessionsConfig { + get { + return ResourceManager.GetString("strLabelPuttySessionsConfig", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Maximum PuTTY and integrated external tools wait time:. + /// + internal static string strLabelPuttyTimeout { + get { + return ResourceManager.GetString("strLabelPuttyTimeout", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Released under the GNU General Public License (GPL). + /// + internal static string strLabelReleasedUnderGPL { + get { + return ResourceManager.GetString("strLabelReleasedUnderGPL", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to seconds. + /// + internal static string strLabelSeconds { + get { + return ResourceManager.GetString("strLabelSeconds", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select a panel from the list below or click New to add a new one. Click OK to continue.. + /// + internal static string strLabelSelectPanel { + get { + return ResourceManager.GetString("strLabelSelectPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Server Status:. + /// + internal static string strLabelServerStatus { + get { + return ResourceManager.GetString("strLabelServerStatus", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Database:. + /// + internal static string strLabelSQLDatabaseName { + get { + return ResourceManager.GetString("strLabelSQLDatabaseName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Database:. + /// + internal static string strLabelSQLServerDatabaseName { + get { + return ResourceManager.GetString("strLabelSQLServerDatabaseName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username:. + /// + internal static string strLabelUsername { + get { + return ResourceManager.GetString("strLabelUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Verify:. + /// + internal static string strLabelVerify { + get { + return ResourceManager.GetString("strLabelVerify", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Language. + /// + internal static string strLanguage { + get { + return ResourceManager.GetString("strLanguage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (Automatically Detect). + /// + internal static string strLanguageDefault { + get { + return ResourceManager.GetString("strLanguageDefault", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} must be restarted before changes to the language will take effect.. + /// + internal static string strLanguageRestartRequired { + get { + return ResourceManager.GetString("strLanguageRestartRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Load from SQL failed. + /// + internal static string strLoadFromSqlFailed { + get { + return ResourceManager.GetString("strLoadFromSqlFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The connection information could not be loaded from the SQL server.. + /// + internal static string strLoadFromSqlFailedContent { + get { + return ResourceManager.GetString("strLoadFromSqlFailedContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Load From XML failed!. + /// + internal static string strLoadFromXmlFailed { + get { + return ResourceManager.GetString("strLoadFromXmlFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Local file. + /// + internal static string strLocalFile { + get { + return ResourceManager.GetString("strLocalFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Local file does not exist!. + /// + internal static string strLocalFileDoesNotExist { + get { + return ResourceManager.GetString("strLocalFileDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Logoff. + /// + internal static string strLogOff { + get { + return ResourceManager.GetString("strLogOff", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Writing to report file failed!. + /// + internal static string strLogWriteToFileFailed { + get { + return ResourceManager.GetString("strLogWriteToFileFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't save report to final location.. + /// + internal static string strLogWriteToFileFinalLocationFailed { + get { + return ResourceManager.GetString("strLogWriteToFileFinalLocationFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Uses the Magic library by [Crownwood Software]. + /// + internal static string strMagicLibraryAttribution { + get { + return ResourceManager.GetString("strMagicLibraryAttribution", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to http://www.dotnetmagic.com/. + /// + internal static string strMagicLibraryAttributionURL { + get { + return ResourceManager.GetString("strMagicLibraryAttributionURL", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to About. + /// + internal static string strMenuAbout { + get { + return ResourceManager.GetString("strMenuAbout", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add Connection Panel. + /// + internal static string strMenuAddConnectionPanel { + get { + return ResourceManager.GetString("strMenuAddConnectionPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Announcements. + /// + internal static string strMenuAnnouncements { + get { + return ResourceManager.GetString("strMenuAnnouncements", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check for Updates. + /// + internal static string strMenuCheckForUpdates { + get { + return ResourceManager.GetString("strMenuCheckForUpdates", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config. + /// + internal static string strMenuConfig { + get { + return ResourceManager.GetString("strMenuConfig", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect. + /// + internal static string strMenuConnect { + get { + return ResourceManager.GetString("strMenuConnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection Panels. + /// + internal static string strMenuConnectionPanels { + get { + return ResourceManager.GetString("strMenuConnectionPanels", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections. + /// + internal static string strMenuConnections { + get { + return ResourceManager.GetString("strMenuConnections", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections and Config. + /// + internal static string strMenuConnectionsAndConfig { + get { + return ResourceManager.GetString("strMenuConnectionsAndConfig", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy. + /// + internal static string strMenuCopy { + get { + return ResourceManager.GetString("strMenuCopy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ctrl-Alt-Del. + /// + internal static string strMenuCtrlAltDel { + get { + return ResourceManager.GetString("strMenuCtrlAltDel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ctrl-Esc. + /// + internal static string strMenuCtrlEsc { + get { + return ResourceManager.GetString("strMenuCtrlEsc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete.... + /// + internal static string strMenuDelete { + get { + return ResourceManager.GetString("strMenuDelete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete Connection.... + /// + internal static string strMenuDeleteConnection { + get { + return ResourceManager.GetString("strMenuDeleteConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete External Tool.... + /// + internal static string strMenuDeleteExternalTool { + get { + return ResourceManager.GetString("strMenuDeleteExternalTool", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete Folder.... + /// + internal static string strMenuDeleteFolder { + get { + return ResourceManager.GetString("strMenuDeleteFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disconnect. + /// + internal static string strMenuDisconnect { + get { + return ResourceManager.GetString("strMenuDisconnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Donate. + /// + internal static string strMenuDonate { + get { + return ResourceManager.GetString("strMenuDonate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Duplicate. + /// + internal static string strMenuDuplicate { + get { + return ResourceManager.GetString("strMenuDuplicate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Duplicate Connection. + /// + internal static string strMenuDuplicateConnection { + get { + return ResourceManager.GetString("strMenuDuplicateConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Duplicate Folder. + /// + internal static string strMenuDuplicateFolder { + get { + return ResourceManager.GetString("strMenuDuplicateFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Duplicate Tab. + /// + internal static string strMenuDuplicateTab { + get { + return ResourceManager.GetString("strMenuDuplicateTab", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Exit. + /// + internal static string strMenuExit { + get { + return ResourceManager.GetString("strMenuExit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to External Tools. + /// + internal static string strMenuExternalTools { + get { + return ResourceManager.GetString("strMenuExternalTools", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to External Tools Toolbar. + /// + internal static string strMenuExternalToolsToolbar { + get { + return ResourceManager.GetString("strMenuExternalToolsToolbar", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &File. + /// + internal static string strMenuFile { + get { + return ResourceManager.GetString("strMenuFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Full Screen. + /// + internal static string strMenuFullScreen { + get { + return ResourceManager.GetString("strMenuFullScreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Full Screen (RDP). + /// + internal static string strMenuFullScreenRDP { + get { + return ResourceManager.GetString("strMenuFullScreenRDP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Help. + /// + internal static string strMenuHelp { + get { + return ResourceManager.GetString("strMenuHelp", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemoteNG Help. + /// + internal static string strMenuHelpContents { + get { + return ResourceManager.GetString("strMenuHelpContents", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Jump To. + /// + internal static string strMenuJumpTo { + get { + return ResourceManager.GetString("strMenuJumpTo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Launch External Tool. + /// + internal static string strMenuLaunchExternalTool { + get { + return ResourceManager.GetString("strMenuLaunchExternalTool", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Connection File. + /// + internal static string strMenuNewConnectionFile { + get { + return ResourceManager.GetString("strMenuNewConnectionFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New External Tool. + /// + internal static string strMenuNewExternalTool { + get { + return ResourceManager.GetString("strMenuNewExternalTool", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Notifications. + /// + internal static string strMenuNotifications { + get { + return ResourceManager.GetString("strMenuNotifications", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy All. + /// + internal static string strMenuNotificationsCopyAll { + get { + return ResourceManager.GetString("strMenuNotificationsCopyAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete. + /// + internal static string strMenuNotificationsDelete { + get { + return ResourceManager.GetString("strMenuNotificationsDelete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete All. + /// + internal static string strMenuNotificationsDeleteAll { + get { + return ResourceManager.GetString("strMenuNotificationsDeleteAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open Connection File.... + /// + internal static string strMenuOpenConnectionFile { + get { + return ResourceManager.GetString("strMenuOpenConnectionFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Options. + /// + internal static string strMenuOptions { + get { + return ResourceManager.GetString("strMenuOptions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Paste. + /// + internal static string strMenuPaste { + get { + return ResourceManager.GetString("strMenuPaste", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Port Scan. + /// + internal static string strMenuPortScan { + get { + return ResourceManager.GetString("strMenuPortScan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Quick Connect Toolbar. + /// + internal static string strMenuQuickConnectToolbar { + get { + return ResourceManager.GetString("strMenuQuickConnectToolbar", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reconnect. + /// + internal static string strMenuReconnect { + get { + return ResourceManager.GetString("strMenuReconnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Refresh Screen (VNC). + /// + internal static string strMenuRefreshScreen { + get { + return ResourceManager.GetString("strMenuRefreshScreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rename. + /// + internal static string strMenuRename { + get { + return ResourceManager.GetString("strMenuRename", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rename Connection. + /// + internal static string strMenuRenameConnection { + get { + return ResourceManager.GetString("strMenuRenameConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rename Folder. + /// + internal static string strMenuRenameFolder { + get { + return ResourceManager.GetString("strMenuRenameFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rename Tab. + /// + internal static string strMenuRenameTab { + get { + return ResourceManager.GetString("strMenuRenameTab", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Report a Bug. + /// + internal static string strMenuReportBug { + get { + return ResourceManager.GetString("strMenuReportBug", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reset layout. + /// + internal static string strMenuResetLayout { + get { + return ResourceManager.GetString("strMenuResetLayout", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save Connection File. + /// + internal static string strMenuSaveConnectionFile { + get { + return ResourceManager.GetString("strMenuSaveConnectionFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save Connection File As.... + /// + internal static string strMenuSaveConnectionFileAs { + get { + return ResourceManager.GetString("strMenuSaveConnectionFileAs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Screenshot. + /// + internal static string strMenuScreenshot { + get { + return ResourceManager.GetString("strMenuScreenshot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Screenshot Manager. + /// + internal static string strMenuScreenshotManager { + get { + return ResourceManager.GetString("strMenuScreenshotManager", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Send Special Keys (VNC). + /// + internal static string strMenuSendSpecialKeys { + get { + return ResourceManager.GetString("strMenuSendSpecialKeys", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Retrieve. + /// + internal static string strMenuSessionRetrieve { + get { + return ResourceManager.GetString("strMenuSessionRetrieve", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sessions. + /// + internal static string strMenuSessions { + get { + return ResourceManager.GetString("strMenuSessions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sessions and Screenshots. + /// + internal static string strMenuSessionsAndScreenshots { + get { + return ResourceManager.GetString("strMenuSessionsAndScreenshots", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Show Help Text. + /// + internal static string strMenuShowHelpText { + get { + return ResourceManager.GetString("strMenuShowHelpText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Show Text. + /// + internal static string strMenuShowText { + get { + return ResourceManager.GetString("strMenuShowText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SmartSize (RDP/VNC). + /// + internal static string strMenuSmartSize { + get { + return ResourceManager.GetString("strMenuSmartSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SSH File Transfer. + /// + internal static string strMenuSSHFileTransfer { + get { + return ResourceManager.GetString("strMenuSSHFileTransfer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Start Chat (VNC). + /// + internal static string strMenuStartChat { + get { + return ResourceManager.GetString("strMenuStartChat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Support Forum. + /// + internal static string strMenuSupportForum { + get { + return ResourceManager.GetString("strMenuSupportForum", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Tools. + /// + internal static string strMenuTools { + get { + return ResourceManager.GetString("strMenuTools", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Transfer File (SSH). + /// + internal static string strMenuTransferFile { + get { + return ResourceManager.GetString("strMenuTransferFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &View. + /// + internal static string strMenuView { + get { + return ResourceManager.GetString("strMenuView", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to View Only (VNC). + /// + internal static string strMenuViewOnly { + get { + return ResourceManager.GetString("strMenuViewOnly", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Website. + /// + internal static string strMenuWebsite { + get { + return ResourceManager.GetString("strMenuWebsite", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Minimize to notification area. + /// + internal static string strMinimizeToSysTray { + get { + return ResourceManager.GetString("strMinimizeToSysTray", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Move down. + /// + internal static string strMoveDown { + get { + return ResourceManager.GetString("strMoveDown", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Move up. + /// + internal static string strMoveUp { + get { + return ResourceManager.GetString("strMoveUp", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemoteNG CSV. + /// + internal static string strMremoteNgCsv { + get { + return ResourceManager.GetString("strMremoteNgCsv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemoteNG XML. + /// + internal static string strMremoteNgXml { + get { + return ResourceManager.GetString("strMremoteNgXml", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to My current credentials (Windows logon information). + /// + internal static string strMyCurrentWindowsCreds { + get { + return ResourceManager.GetString("strMyCurrentWindowsCreds", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Never. + /// + internal static string strNever { + get { + return ResourceManager.GetString("strNever", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Connection. + /// + internal static string strNewConnection { + get { + return ResourceManager.GetString("strNewConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Folder. + /// + internal static string strNewFolder { + get { + return ResourceManager.GetString("strNewFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Panel. + /// + internal static string strNewPanel { + get { + return ResourceManager.GetString("strNewPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Root. + /// + internal static string strNewRoot { + get { + return ResourceManager.GetString("strNewRoot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Title. + /// + internal static string strNewTitle { + get { + return ResourceManager.GetString("strNewTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No. + /// + internal static string strNo { + get { + return ResourceManager.GetString("strNo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No Compression. + /// + internal static string strNoCompression { + get { + return ResourceManager.GetString("strNoCompression", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No Ext. App specified.. + /// + internal static string strNoExtAppDefined { + get { + return ResourceManager.GetString("strNoExtAppDefined", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to None. + /// + internal static string strNoInformation { + get { + return ResourceManager.GetString("strNoInformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to None. + /// + internal static string strNone { + get { + return ResourceManager.GetString("strNone", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Normal. + /// + internal static string strNormal { + get { + return ResourceManager.GetString("strNormal", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No SmartSize. + /// + internal static string strNoSmartSize { + get { + return ResourceManager.GetString("strNoSmartSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No update available. + /// + internal static string strNoUpdateAvailable { + get { + return ResourceManager.GetString("strNoUpdateAvailable", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You are trying to load a connection file that was created using an very early version of mRemote, this could result in an runtime error. + ///If you run into such an error, please create a new connection file!. + /// + internal static string strOldConffile { + get { + return ResourceManager.GetString("strOldConffile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open new tab to the right of the currently selected tab. + /// + internal static string strOpenNewTabRight { + get { + return ResourceManager.GetString("strOpenNewTabRight", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open Ports. + /// + internal static string strOpenPorts { + get { + return ResourceManager.GetString("strOpenPorts", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Delete. + /// + internal static string strOptionsKeyboardButtonDelete { + get { + return ResourceManager.GetString("strOptionsKeyboardButtonDelete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &New. + /// + internal static string strOptionsKeyboardButtonNew { + get { + return ResourceManager.GetString("strOptionsKeyboardButtonNew", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Reset to Default. + /// + internal static string strOptionsKeyboardButtonReset { + get { + return ResourceManager.GetString("strOptionsKeyboardButtonReset", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reset &All to Default. + /// + internal static string strOptionsKeyboardButtonResetAll { + get { + return ResourceManager.GetString("strOptionsKeyboardButtonResetAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Tabs. + /// + internal static string strOptionsKeyboardCommandsGroupTabs { + get { + return ResourceManager.GetString("strOptionsKeyboardCommandsGroupTabs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Next Tab. + /// + internal static string strOptionsKeyboardCommandsNextTab { + get { + return ResourceManager.GetString("strOptionsKeyboardCommandsNextTab", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Previous Tab. + /// + internal static string strOptionsKeyboardCommandsPreviousTab { + get { + return ResourceManager.GetString("strOptionsKeyboardCommandsPreviousTab", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Modify Shortcut. + /// + internal static string strOptionsKeyboardGroupModifyShortcut { + get { + return ResourceManager.GetString("strOptionsKeyboardGroupModifyShortcut", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Keyboard Shortcuts. + /// + internal static string strOptionsKeyboardLabelKeyboardShortcuts { + get { + return ResourceManager.GetString("strOptionsKeyboardLabelKeyboardShortcuts", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Testing.... + /// + internal static string strOptionsProxyTesting { + get { + return ResourceManager.GetString("strOptionsProxyTesting", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Keyboard. + /// + internal static string strOptionsTabKeyboard { + get { + return ResourceManager.GetString("strOptionsTabKeyboard", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Theme. + /// + internal static string strOptionsTabTheme { + get { + return ResourceManager.GetString("strOptionsTabTheme", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Delete. + /// + internal static string strOptionsThemeButtonDelete { + get { + return ResourceManager.GetString("strOptionsThemeButtonDelete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &New. + /// + internal static string strOptionsThemeButtonNew { + get { + return ResourceManager.GetString("strOptionsThemeButtonNew", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Panel Name. + /// + internal static string strPanelName { + get { + return ResourceManager.GetString("strPanelName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password protect. + /// + internal static string strPasswordProtect { + get { + return ResourceManager.GetString("strPasswordProtect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Both passwords must match.. + /// + internal static string strPasswordStatusMustMatch { + get { + return ResourceManager.GetString("strPasswordStatusMustMatch", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The password must be at least 3 characters long.. + /// + internal static string strPasswordStatusTooShort { + get { + return ResourceManager.GetString("strPasswordStatusTooShort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please fill all fields. + /// + internal static string strPleaseFillAllFields { + get { + return ResourceManager.GetString("strPleaseFillAllFields", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Port scan complete.. + /// + internal static string strPortScanComplete { + get { + return ResourceManager.GetString("strPortScanComplete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't load PortScan panel!. + /// + internal static string strPortScanCouldNotLoadPanel { + get { + return ResourceManager.GetString("strPortScanCouldNotLoadPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (These properties will only be saved if you select mRemote/mRemoteNG XML as output file format!). + /// + internal static string strPropertiesWillOnlyBeSavedMRemoteXML { + get { + return ResourceManager.GetString("strPropertiesWillOnlyBeSavedMRemoteXML", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter the hostname or ip you want to connect to.. + /// + internal static string strPropertyDescriptionAddress { + get { + return ResourceManager.GetString("strPropertyDescriptionAddress", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Toggle all inheritance options.. + /// + internal static string strPropertyDescriptionAll { + get { + return ResourceManager.GetString("strPropertyDescriptionAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select which authentication level this connection should use.. + /// + internal static string strPropertyDescriptionAuthenticationLevel { + get { + return ResourceManager.GetString("strPropertyDescriptionAuthenticationLevel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select how you want to authenticate against the VNC server.. + /// + internal static string strPropertyDescriptionAuthenticationMode { + get { + return ResourceManager.GetString("strPropertyDescriptionAuthenticationMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether to automatically resize the connection when the window is resized or when fullscreen mode is toggled. Requires RDC 8.0 or higher.. + /// + internal static string strPropertyDescriptionAutomaticResize { + get { + return ResourceManager.GetString("strPropertyDescriptionAutomaticResize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether to use bitmap caching or not.. + /// + internal static string strPropertyDescriptionCacheBitmaps { + get { + return ResourceManager.GetString("strPropertyDescriptionCacheBitmaps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the colour quality to be used.. + /// + internal static string strPropertyDescriptionColors { + get { + return ResourceManager.GetString("strPropertyDescriptionColors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the compression value to be used.. + /// + internal static string strPropertyDescriptionCompression { + get { + return ResourceManager.GetString("strPropertyDescriptionCompression", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Put your notes or a description for the host here.. + /// + internal static string strPropertyDescriptionDescription { + get { + return ResourceManager.GetString("strPropertyDescriptionDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select yes if the theme of the remote host should be displayed.. + /// + internal static string strPropertyDescriptionDisplayThemes { + get { + return ResourceManager.GetString("strPropertyDescriptionDisplayThemes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select yes if the wallpaper of the remote host should be displayed.. + /// + internal static string strPropertyDescriptionDisplayWallpaper { + get { + return ResourceManager.GetString("strPropertyDescriptionDisplayWallpaper", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter your domain.. + /// + internal static string strPropertyDescriptionDomain { + get { + return ResourceManager.GetString("strPropertyDescriptionDomain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether to use desktop composition or not.. + /// + internal static string strPropertyDescriptionEnableDesktopComposition { + get { + return ResourceManager.GetString("strPropertyDescriptionEnableDesktopComposition", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether to use font smoothing or not.. + /// + internal static string strPropertyDescriptionEnableFontSmoothing { + get { + return ResourceManager.GetString("strPropertyDescriptionEnableFontSmoothing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the encoding mode to be used.. + /// + internal static string strPropertyDescriptionEncoding { + get { + return ResourceManager.GetString("strPropertyDescriptionEncoding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the encryption strength of the remote host.. + /// + internal static string strPropertyDescriptionEncryptionStrength { + get { + return ResourceManager.GetString("strPropertyDescriptionEncryptionStrength", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the external tool to be started.. + /// + internal static string strPropertyDescriptionExternalTool { + get { + return ResourceManager.GetString("strPropertyDescriptionExternalTool", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select a external tool to be started after the disconnection to the remote host.. + /// + internal static string strPropertyDescriptionExternalToolAfter { + get { + return ResourceManager.GetString("strPropertyDescriptionExternalToolAfter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select a external tool to be started before the connection to the remote host is established.. + /// + internal static string strPropertyDescriptionExternalToolBefore { + get { + return ResourceManager.GetString("strPropertyDescriptionExternalToolBefore", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Choose a icon that will be displayed when connected to the host.. + /// + internal static string strPropertyDescriptionIcon { + get { + return ResourceManager.GetString("strPropertyDescriptionIcon", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Specifies the load balancing information for use by load balancing routers to choose the best server.. + /// + internal static string strPropertyDescriptionLoadBalanceInfo { + get { + return ResourceManager.GetString("strPropertyDescriptionLoadBalanceInfo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter the MAC address of the remote host if you wish to use it in an external tool.. + /// + internal static string strPropertyDescriptionMACAddress { + get { + return ResourceManager.GetString("strPropertyDescriptionMACAddress", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This is the name that will be displayed in the connections tree.. + /// + internal static string strPropertyDescriptionName { + get { + return ResourceManager.GetString("strPropertyDescriptionName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sets the panel in which the connection will open.. + /// + internal static string strPropertyDescriptionPanel { + get { + return ResourceManager.GetString("strPropertyDescriptionPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter your password.. + /// + internal static string strPropertyDescriptionPassword { + get { + return ResourceManager.GetString("strPropertyDescriptionPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter the port the selected protocol is listening on.. + /// + internal static string strPropertyDescriptionPort { + get { + return ResourceManager.GetString("strPropertyDescriptionPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Choose the protocol mRemoteNG should use to connect to the host.. + /// + internal static string strPropertyDescriptionProtocol { + get { + return ResourceManager.GetString("strPropertyDescriptionProtocol", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select a PuTTY session to be used when connecting.. + /// + internal static string strPropertyDescriptionPuttySession { + get { + return ResourceManager.GetString("strPropertyDescriptionPuttySession", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Specifies the domain name that a user provides to connect to the RD Gateway server.. + /// + internal static string strPropertyDescriptionRDGatewayDomain { + get { + return ResourceManager.GetString("strPropertyDescriptionRDGatewayDomain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Specifies the host name of the Remote Desktop Gateway server.. + /// + internal static string strPropertyDescriptionRDGatewayHostname { + get { + return ResourceManager.GetString("strPropertyDescriptionRDGatewayHostname", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Specifies when to use a Remote Desktop Gateway (RD Gateway) server.. + /// + internal static string strPropertyDescriptionRDGatewayUsageMethod { + get { + return ResourceManager.GetString("strPropertyDescriptionRDGatewayUsageMethod", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Specifies whether or not to log on to the gateway using the same username and password as the connection.. + /// + internal static string strPropertyDescriptionRDGatewayUseConnectionCredentials { + get { + return ResourceManager.GetString("strPropertyDescriptionRDGatewayUseConnectionCredentials", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Specifies the user name that a user provides to connect to the RD Gateway server.. + /// + internal static string strPropertyDescriptionRDGatewayUsername { + get { + return ResourceManager.GetString("strPropertyDescriptionRDGatewayUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether local disk drives should be shown on the remote host.. + /// + internal static string strPropertyDescriptionRedirectDrives { + get { + return ResourceManager.GetString("strPropertyDescriptionRedirectDrives", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether key combinations (e.g. Alt-Tab) should be redirected to the remote host.. + /// + internal static string strPropertyDescriptionRedirectKeys { + get { + return ResourceManager.GetString("strPropertyDescriptionRedirectKeys", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether local ports (ie. com, parallel) should be shown on the remote host.. + /// + internal static string strPropertyDescriptionRedirectPorts { + get { + return ResourceManager.GetString("strPropertyDescriptionRedirectPorts", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether local printers should be shown on the remote host.. + /// + internal static string strPropertyDescriptionRedirectPrinters { + get { + return ResourceManager.GetString("strPropertyDescriptionRedirectPrinters", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select whether local smart cards should be available on the remote host.. + /// + internal static string strPropertyDescriptionRedirectSmartCards { + get { + return ResourceManager.GetString("strPropertyDescriptionRedirectSmartCards", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select how remote sound should be redirected.. + /// + internal static string strPropertyDescriptionRedirectSounds { + get { + return ResourceManager.GetString("strPropertyDescriptionRedirectSounds", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select one of the available rendering engines that will be used to display HTML.. + /// + internal static string strPropertyDescriptionRenderingEngine { + get { + return ResourceManager.GetString("strPropertyDescriptionRenderingEngine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Choose the resolution or mode this connection will open in.. + /// + internal static string strPropertyDescriptionResolution { + get { + return ResourceManager.GetString("strPropertyDescriptionResolution", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the SmartSize mode to be used.. + /// + internal static string strPropertyDescriptionSmartSizeMode { + get { + return ResourceManager.GetString("strPropertyDescriptionSmartSizeMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect to the console session of the remote host.. + /// + internal static string strPropertyDescriptionUseConsoleSession { + get { + return ResourceManager.GetString("strPropertyDescriptionUseConsoleSession", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use the Credential Security Support Provider (CredSSP) for authentication if it is available.. + /// + internal static string strPropertyDescriptionUseCredSsp { + get { + return ResourceManager.GetString("strPropertyDescriptionUseCredSsp", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Feel free to enter any information you need here.. + /// + internal static string strPropertyDescriptionUser1 { + get { + return ResourceManager.GetString("strPropertyDescriptionUser1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter your username.. + /// + internal static string strPropertyDescriptionUsername { + get { + return ResourceManager.GetString("strPropertyDescriptionUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to If you want to establish a view only connection to the host select yes.. + /// + internal static string strPropertyDescriptionViewOnly { + get { + return ResourceManager.GetString("strPropertyDescriptionViewOnly", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter the proxy address to be used.. + /// + internal static string strPropertyDescriptionVNCProxyAddress { + get { + return ResourceManager.GetString("strPropertyDescriptionVNCProxyAddress", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter your password for authenticating against the proxy.. + /// + internal static string strPropertyDescriptionVNCProxyPassword { + get { + return ResourceManager.GetString("strPropertyDescriptionVNCProxyPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter the port the proxy server listens on.. + /// + internal static string strPropertyDescriptionVNCProxyPort { + get { + return ResourceManager.GetString("strPropertyDescriptionVNCProxyPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to If you use a proxy to tunnel VNC connections, select which type it is.. + /// + internal static string strPropertyDescriptionVNCProxyType { + get { + return ResourceManager.GetString("strPropertyDescriptionVNCProxyType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter your username for authenticating against the proxy.. + /// + internal static string strPropertyDescriptionVNCProxyUsername { + get { + return ResourceManager.GetString("strPropertyDescriptionVNCProxyUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Hostname/IP. + /// + internal static string strPropertyNameAddress { + get { + return ResourceManager.GetString("strPropertyNameAddress", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to All. + /// + internal static string strPropertyNameAll { + get { + return ResourceManager.GetString("strPropertyNameAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Server Authentication. + /// + internal static string strPropertyNameAuthenticationLevel { + get { + return ResourceManager.GetString("strPropertyNameAuthenticationLevel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Authentication Mode. + /// + internal static string strPropertyNameAuthenticationMode { + get { + return ResourceManager.GetString("strPropertyNameAuthenticationMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Automatic Resize. + /// + internal static string strPropertyNameAutomaticResize { + get { + return ResourceManager.GetString("strPropertyNameAutomaticResize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cache Bitmaps. + /// + internal static string strPropertyNameCacheBitmaps { + get { + return ResourceManager.GetString("strPropertyNameCacheBitmaps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Colours. + /// + internal static string strPropertyNameColors { + get { + return ResourceManager.GetString("strPropertyNameColors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Compression. + /// + internal static string strPropertyNameCompression { + get { + return ResourceManager.GetString("strPropertyNameCompression", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Description. + /// + internal static string strPropertyNameDescription { + get { + return ResourceManager.GetString("strPropertyNameDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Display Themes. + /// + internal static string strPropertyNameDisplayThemes { + get { + return ResourceManager.GetString("strPropertyNameDisplayThemes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Display Wallpaper. + /// + internal static string strPropertyNameDisplayWallpaper { + get { + return ResourceManager.GetString("strPropertyNameDisplayWallpaper", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Domain. + /// + internal static string strPropertyNameDomain { + get { + return ResourceManager.GetString("strPropertyNameDomain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Desktop Composition. + /// + internal static string strPropertyNameEnableDesktopComposition { + get { + return ResourceManager.GetString("strPropertyNameEnableDesktopComposition", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Font Smoothing. + /// + internal static string strPropertyNameEnableFontSmoothing { + get { + return ResourceManager.GetString("strPropertyNameEnableFontSmoothing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Encoding. + /// + internal static string strPropertyNameEncoding { + get { + return ResourceManager.GetString("strPropertyNameEncoding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Encryption Strength. + /// + internal static string strPropertyNameEncryptionStrength { + get { + return ResourceManager.GetString("strPropertyNameEncryptionStrength", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to External Tool. + /// + internal static string strPropertyNameExternalTool { + get { + return ResourceManager.GetString("strPropertyNameExternalTool", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to External Tool After. + /// + internal static string strPropertyNameExternalToolAfter { + get { + return ResourceManager.GetString("strPropertyNameExternalToolAfter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to External Tool Before. + /// + internal static string strPropertyNameExternalToolBefore { + get { + return ResourceManager.GetString("strPropertyNameExternalToolBefore", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Icon. + /// + internal static string strPropertyNameIcon { + get { + return ResourceManager.GetString("strPropertyNameIcon", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Load Balance Info. + /// + internal static string strPropertyNameLoadBalanceInfo { + get { + return ResourceManager.GetString("strPropertyNameLoadBalanceInfo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to MAC Address. + /// + internal static string strPropertyNameMACAddress { + get { + return ResourceManager.GetString("strPropertyNameMACAddress", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Name. + /// + internal static string strPropertyNameName { + get { + return ResourceManager.GetString("strPropertyNameName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Panel. + /// + internal static string strPropertyNamePanel { + get { + return ResourceManager.GetString("strPropertyNamePanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password. + /// + internal static string strPropertyNamePassword { + get { + return ResourceManager.GetString("strPropertyNamePassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Port. + /// + internal static string strPropertyNamePort { + get { + return ResourceManager.GetString("strPropertyNamePort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol. + /// + internal static string strPropertyNameProtocol { + get { + return ResourceManager.GetString("strPropertyNameProtocol", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PuTTY Session. + /// + internal static string strPropertyNamePuttySession { + get { + return ResourceManager.GetString("strPropertyNamePuttySession", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gateway Domain. + /// + internal static string strPropertyNameRDGatewayDomain { + get { + return ResourceManager.GetString("strPropertyNameRDGatewayDomain", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gateway Hostname. + /// + internal static string strPropertyNameRDGatewayHostname { + get { + return ResourceManager.GetString("strPropertyNameRDGatewayHostname", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remote Desktop Gateway Password. + /// + internal static string strPropertyNameRDGatewayPassword { + get { + return ResourceManager.GetString("strPropertyNameRDGatewayPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use Gateway. + /// + internal static string strPropertyNameRDGatewayUsageMethod { + get { + return ResourceManager.GetString("strPropertyNameRDGatewayUsageMethod", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gateway Credentials. + /// + internal static string strPropertyNameRDGatewayUseConnectionCredentials { + get { + return ResourceManager.GetString("strPropertyNameRDGatewayUseConnectionCredentials", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gateway Username. + /// + internal static string strPropertyNameRDGatewayUsername { + get { + return ResourceManager.GetString("strPropertyNameRDGatewayUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disk Drives. + /// + internal static string strPropertyNameRedirectDrives { + get { + return ResourceManager.GetString("strPropertyNameRedirectDrives", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Key Combinations. + /// + internal static string strPropertyNameRedirectKeys { + get { + return ResourceManager.GetString("strPropertyNameRedirectKeys", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ports. + /// + internal static string strPropertyNameRedirectPorts { + get { + return ResourceManager.GetString("strPropertyNameRedirectPorts", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Printers. + /// + internal static string strPropertyNameRedirectPrinters { + get { + return ResourceManager.GetString("strPropertyNameRedirectPrinters", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Smart Cards. + /// + internal static string strPropertyNameRedirectSmartCards { + get { + return ResourceManager.GetString("strPropertyNameRedirectSmartCards", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sounds. + /// + internal static string strPropertyNameRedirectSounds { + get { + return ResourceManager.GetString("strPropertyNameRedirectSounds", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rendering Engine. + /// + internal static string strPropertyNameRenderingEngine { + get { + return ResourceManager.GetString("strPropertyNameRenderingEngine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resolution. + /// + internal static string strPropertyNameResolution { + get { + return ResourceManager.GetString("strPropertyNameResolution", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SmartSize Mode. + /// + internal static string strPropertyNameSmartSizeMode { + get { + return ResourceManager.GetString("strPropertyNameSmartSizeMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use Console Session. + /// + internal static string strPropertyNameUseConsoleSession { + get { + return ResourceManager.GetString("strPropertyNameUseConsoleSession", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use CredSSP. + /// + internal static string strPropertyNameUseCredSsp { + get { + return ResourceManager.GetString("strPropertyNameUseCredSsp", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User Field. + /// + internal static string strPropertyNameUser1 { + get { + return ResourceManager.GetString("strPropertyNameUser1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username. + /// + internal static string strPropertyNameUsername { + get { + return ResourceManager.GetString("strPropertyNameUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to View Only. + /// + internal static string strPropertyNameViewOnly { + get { + return ResourceManager.GetString("strPropertyNameViewOnly", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Proxy Address. + /// + internal static string strPropertyNameVNCProxyAddress { + get { + return ResourceManager.GetString("strPropertyNameVNCProxyAddress", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Proxy Password. + /// + internal static string strPropertyNameVNCProxyPassword { + get { + return ResourceManager.GetString("strPropertyNameVNCProxyPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Proxy Port. + /// + internal static string strPropertyNameVNCProxyPort { + get { + return ResourceManager.GetString("strPropertyNameVNCProxyPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Proxy Type. + /// + internal static string strPropertyNameVNCProxyType { + get { + return ResourceManager.GetString("strPropertyNameVNCProxyType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Proxy Username. + /// + internal static string strPropertyNameVNCProxyUsername { + get { + return ResourceManager.GetString("strPropertyNameVNCProxyUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol Event Disconnected. + ///Message: + ///{0}. + /// + internal static string strProtocolEventDisconnected { + get { + return ResourceManager.GetString("strProtocolEventDisconnected", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol Event Disconnected failed. + ///{0}. + /// + internal static string strProtocolEventDisconnectFailed { + get { + return ResourceManager.GetString("strProtocolEventDisconnectFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Protocol to import. + /// + internal static string strProtocolToImport { + get { + return ResourceManager.GetString("strProtocolToImport", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Proxy test failed!. + /// + internal static string strProxyTestFailed { + get { + return ResourceManager.GetString("strProxyTestFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Proxy test succeeded!. + /// + internal static string strProxyTestSucceeded { + get { + return ResourceManager.GetString("strProxyTestSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connection failed!. + /// + internal static string strPuttyConnectionFailed { + get { + return ResourceManager.GetString("strPuttyConnectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Dispose of Putty process failed!. + /// + internal static string strPuttyDisposeFailed { + get { + return ResourceManager.GetString("strPuttyDisposeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't set focus!. + /// + internal static string strPuttyFocusFailed { + get { + return ResourceManager.GetString("strPuttyFocusFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Get Putty Sessions Failed!. + /// + internal static string strPuttyGetSessionsFailed { + get { + return ResourceManager.GetString("strPuttyGetSessionsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Putty Handle: {0}. + /// + internal static string strPuttyHandle { + get { + return ResourceManager.GetString("strPuttyHandle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Killing Putty Process failed!. + /// + internal static string strPuttyKillFailed { + get { + return ResourceManager.GetString("strPuttyKillFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Panel Handle: {0}. + /// + internal static string strPuttyParentHandle { + get { + return ResourceManager.GetString("strPuttyParentHandle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Putty Resize Failed!. + /// + internal static string strPuttyResizeFailed { + get { + return ResourceManager.GetString("strPuttyResizeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PuTTY Saved Sessions. + /// + internal static string strPuttySavedSessionsRootName { + get { + return ResourceManager.GetString("strPuttySavedSessionsRootName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PuTTY Session Settings. + /// + internal static string strPuttySessionSettings { + get { + return ResourceManager.GetString("strPuttySessionSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PuTTY Settings. + /// + internal static string strPuttySettings { + get { + return ResourceManager.GetString("strPuttySettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Show PuTTY Settings Dialog failed!. + /// + internal static string strPuttyShowSettingsDialogFailed { + get { + return ResourceManager.GetString("strPuttyShowSettingsDialogFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Putty Start Failed!. + /// + internal static string strPuttyStartFailed { + get { + return ResourceManager.GetString("strPuttyStartFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to --- PuTTY Stuff ---. + /// + internal static string strPuttyStuff { + get { + return ResourceManager.GetString("strPuttyStuff", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PuTTY Title: {0}. + /// + internal static string strPuttyTitle { + get { + return ResourceManager.GetString("strPuttyTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Quick: {0}. + /// + internal static string strQuick { + get { + return ResourceManager.GetString("strQuick", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Quick Connect. + /// + internal static string strQuickConnect { + get { + return ResourceManager.GetString("strQuickConnect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Quick Connect Add Failed!. + /// + internal static string strQuickConnectAddFailed { + get { + return ResourceManager.GetString("strQuickConnectAddFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating quick connect failed. + /// + internal static string strQuickConnectFailed { + get { + return ResourceManager.GetString("strQuickConnectFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &Warn me when closing connections. + /// + internal static string strRadioCloseWarnAll { + get { + return ResourceManager.GetString("strRadioCloseWarnAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Warn me only when e&xiting mRemoteNG. + /// + internal static string strRadioCloseWarnExit { + get { + return ResourceManager.GetString("strRadioCloseWarnExit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Warn me only when closing &multiple connections. + /// + internal static string strRadioCloseWarnMultiple { + get { + return ResourceManager.GetString("strRadioCloseWarnMultiple", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Do &not warn me when closing connections. + /// + internal static string strRadioCloseWarnNever { + get { + return ResourceManager.GetString("strRadioCloseWarnNever", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RAW. + /// + internal static string strRAW { + get { + return ResourceManager.GetString("strRAW", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP. + /// + internal static string strRDP { + get { + return ResourceManager.GetString("strRDP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 16777216 Colours (24-bit). + /// + internal static string strRDP16777216Colors { + get { + return ResourceManager.GetString("strRDP16777216Colors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 256 Colours (8-bit). + /// + internal static string strRDP256Colors { + get { + return ResourceManager.GetString("strRDP256Colors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 32768 Colours (15-bit). + /// + internal static string strRDP32768Colors { + get { + return ResourceManager.GetString("strRDP32768Colors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 16777216 Colours (32-bit). + /// + internal static string strRDP4294967296Colors { + get { + return ResourceManager.GetString("strRDP4294967296Colors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 65536 Colours (16-bit). + /// + internal static string strRDP65536Colors { + get { + return ResourceManager.GetString("strRDP65536Colors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP Add Resolution failed!. + /// + internal static string strRdpAddResolutionFailed { + get { + return ResourceManager.GetString("strRdpAddResolutionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP Add Resolutions failed!. + /// + internal static string strRdpAddResolutionsFailed { + get { + return ResourceManager.GetString("strRdpAddResolutionsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add Session failed. + /// + internal static string strRdpAddSessionFailed { + get { + return ResourceManager.GetString("strRdpAddSessionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Close RDP Connection failed!. + /// + internal static string strRdpCloseConnectionFailed { + get { + return ResourceManager.GetString("strRdpCloseConnectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Opening connection failed!. + /// + internal static string strRdpConnectionOpenFailed { + get { + return ResourceManager.GetString("strRdpConnectionOpenFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't create RDP control, please check mRemoteNG requirements.. + /// + internal static string strRdpControlCreationFailed { + get { + return ResourceManager.GetString("strRdpControlCreationFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disable Cursor blinking. + /// + internal static string strRDPDisableCursorblinking { + get { + return ResourceManager.GetString("strRDPDisableCursorblinking", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disable Cursor Shadow. + /// + internal static string strRDPDisableCursorShadow { + get { + return ResourceManager.GetString("strRDPDisableCursorShadow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disable Full Window drag. + /// + internal static string strRDPDisableFullWindowdrag { + get { + return ResourceManager.GetString("strRDPDisableFullWindowdrag", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disable Menu Animations. + /// + internal static string strRDPDisableMenuAnimations { + get { + return ResourceManager.GetString("strRDPDisableMenuAnimations", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disable Themes. + /// + internal static string strRDPDisableThemes { + get { + return ResourceManager.GetString("strRDPDisableThemes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disable Wallpaper. + /// + internal static string strRDPDisableWallpaper { + get { + return ResourceManager.GetString("strRDPDisableWallpaper", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP disconnected!. + /// + internal static string strRdpDisconnected { + get { + return ResourceManager.GetString("strRdpDisconnected", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP Disconnect failed, trying to close!. + /// + internal static string strRdpDisconnectFailed { + get { + return ResourceManager.GetString("strRdpDisconnectFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal error code 1.. + /// + internal static string strRdpErrorCode1 { + get { + return ResourceManager.GetString("strRdpErrorCode1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal error code 2.. + /// + internal static string strRdpErrorCode2 { + get { + return ResourceManager.GetString("strRdpErrorCode2", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal error code 3. This is not a valid state.. + /// + internal static string strRdpErrorCode3 { + get { + return ResourceManager.GetString("strRdpErrorCode3", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal error code 4.. + /// + internal static string strRdpErrorCode4 { + get { + return ResourceManager.GetString("strRdpErrorCode4", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to An unrecoverable error has occurred during client connection.. + /// + internal static string strRdpErrorConnection { + get { + return ResourceManager.GetString("strRdpErrorConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GetError failed (FatalErrors). + /// + internal static string strRdpErrorGetFailure { + get { + return ResourceManager.GetString("strRdpErrorGetFailure", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to An unknown fatal RDP error has occurred. Error code {0}.. + /// + internal static string strRdpErrorGetUnknown { + get { + return ResourceManager.GetString("strRdpErrorGetUnknown", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to An out-of-memory error has occurred.. + /// + internal static string strRdpErrorOutOfMemory { + get { + return ResourceManager.GetString("strRdpErrorOutOfMemory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to An unknown error has occurred.. + /// + internal static string strRdpErrorUnknown { + get { + return ResourceManager.GetString("strRdpErrorUnknown", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A window-creation error has occurred.. + /// + internal static string strRdpErrorWindowCreation { + get { + return ResourceManager.GetString("strRdpErrorWindowCreation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Winsock initialization error.. + /// + internal static string strRdpErrorWinsock { + get { + return ResourceManager.GetString("strRdpErrorWinsock", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't import rdp file!. + /// + internal static string strRdpFileCouldNotBeImported { + get { + return ResourceManager.GetString("strRdpFileCouldNotBeImported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Fit To Panel. + /// + internal static string strRDPFitToPanel { + get { + return ResourceManager.GetString("strRDPFitToPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP Focus failed!. + /// + internal static string strRdpFocusFailed { + get { + return ResourceManager.GetString("strRdpFocusFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RD Gateway is supported.. + /// + internal static string strRdpGatewayIsSupported { + get { + return ResourceManager.GetString("strRdpGatewayIsSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RD Gateway is not supported!. + /// + internal static string strRdpGatewayNotSupported { + get { + return ResourceManager.GetString("strRdpGatewayNotSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GetSessions failed!. + /// + internal static string strRdpGetSessionsFailed { + get { + return ResourceManager.GetString("strRdpGetSessionsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open RDP Connection failed!. + /// + internal static string strRdpOpenConnectionFailed { + get { + return ResourceManager.GetString("strRdpOpenConnectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP reconnection count:. + /// + internal static string strRdpReconnectCount { + get { + return ResourceManager.GetString("strRdpReconnectCount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetAuthenticationLevel failed!. + /// + internal static string strRdpSetAuthenticationLevelFailed { + get { + return ResourceManager.GetString("strRdpSetAuthenticationLevelFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetUseConsoleSession failed!. + /// + internal static string strRdpSetConsoleSessionFailed { + get { + return ResourceManager.GetString("strRdpSetConsoleSessionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Setting Console switch for RDC {0}.. + /// + internal static string strRdpSetConsoleSwitch { + get { + return ResourceManager.GetString("strRdpSetConsoleSwitch", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetCredentials failed!. + /// + internal static string strRdpSetCredentialsFailed { + get { + return ResourceManager.GetString("strRdpSetCredentialsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetEventHandlers failed!. + /// + internal static string strRdpSetEventHandlersFailed { + get { + return ResourceManager.GetString("strRdpSetEventHandlersFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetRDGateway failed!. + /// + internal static string strRdpSetGatewayFailed { + get { + return ResourceManager.GetString("strRdpSetGatewayFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetPerformanceFlags failed!. + /// + internal static string strRdpSetPerformanceFlagsFailed { + get { + return ResourceManager.GetString("strRdpSetPerformanceFlagsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetPort failed!. + /// + internal static string strRdpSetPortFailed { + get { + return ResourceManager.GetString("strRdpSetPortFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetProps failed!. + /// + internal static string strRdpSetPropsFailed { + get { + return ResourceManager.GetString("strRdpSetPropsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rdp Set Redirection Failed!. + /// + internal static string strRdpSetRedirectionFailed { + get { + return ResourceManager.GetString("strRdpSetRedirectionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rdp Set Redirect Keys Failed!. + /// + internal static string strRdpSetRedirectKeysFailed { + get { + return ResourceManager.GetString("strRdpSetRedirectKeysFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP SetResolution failed!. + /// + internal static string strRdpSetResolutionFailed { + get { + return ResourceManager.GetString("strRdpSetResolutionFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Smart Size. + /// + internal static string strRDPSmartSize { + get { + return ResourceManager.GetString("strRDPSmartSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Bring to this computer. + /// + internal static string strRDPSoundBringToThisComputer { + get { + return ResourceManager.GetString("strRDPSoundBringToThisComputer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Do not play. + /// + internal static string strRDPSoundDoNotPlay { + get { + return ResourceManager.GetString("strRDPSoundDoNotPlay", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Leave at remote computer. + /// + internal static string strRDPSoundLeaveAtRemoteComputer { + get { + return ResourceManager.GetString("strRDPSoundLeaveAtRemoteComputer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP ToggleFullscreen failed!. + /// + internal static string strRdpToggleFullscreenFailed { + get { + return ResourceManager.GetString("strRdpToggleFullscreenFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RDP ToggleSmartSize failed!. + /// + internal static string strRdpToggleSmartSizeFailed { + get { + return ResourceManager.GetString("strRdpToggleSmartSizeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reconnect to previously opened sessions on startup. + /// + internal static string strReconnectAtStartup { + get { + return ResourceManager.GetString("strReconnectAtStartup", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Refresh. + /// + internal static string strRefresh { + get { + return ResourceManager.GetString("strRefresh", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remote file. + /// + internal static string strRemoteFile { + get { + return ResourceManager.GetString("strRemoteFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove All. + /// + internal static string strRemoveAll { + get { + return ResourceManager.GetString("strRemoveAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rename. + /// + internal static string strRename { + get { + return ResourceManager.GetString("strRename", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rlogin. + /// + internal static string strRlogin { + get { + return ResourceManager.GetString("strRlogin", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save. + /// + internal static string strSave { + get { + return ResourceManager.GetString("strSave", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save All. + /// + internal static string strSaveAll { + get { + return ResourceManager.GetString("strSaveAll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Do you want to save the current connections file before loading another?. + /// + internal static string strSaveConnectionsFileBeforeOpeningAnother { + get { + return ResourceManager.GetString("strSaveConnectionsFileBeforeOpeningAnother", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save connections on exit. + /// + internal static string strSaveConsOnExit { + get { + return ResourceManager.GetString("strSaveConsOnExit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Graphics Interchange Format File (.gif)|*.gif|Joint Photographic Experts Group File (.jpeg)|*.jpeg|Joint Photographic Experts Group File (.jpg)|*.jpg|Portable Network Graphics File (.png)|*.png. + /// + internal static string strSaveImageFilter { + get { + return ResourceManager.GetString("strSaveImageFilter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Screen. + /// + internal static string strScreen { + get { + return ResourceManager.GetString("strScreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Screenshot. + /// + internal static string strScreenshot { + get { + return ResourceManager.GetString("strScreenshot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Screenshots. + /// + internal static string strScreenshots { + get { + return ResourceManager.GetString("strScreenshots", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Search. + /// + internal static string strSearchPrompt { + get { + return ResourceManager.GetString("strSearchPrompt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Send To.... + /// + internal static string strSendTo { + get { + return ResourceManager.GetString("strSendTo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Get Sessions Background failed. + /// + internal static string strSessionGetFailed { + get { + return ResourceManager.GetString("strSessionGetFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Kill Session Background failed. + /// + internal static string strSessionKillFailed { + get { + return ResourceManager.GetString("strSessionKillFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Set hostname like display name when creating or renaming connections. + /// + internal static string strSetHostnameLikeDisplayName { + get { + return ResourceManager.GetString("strSetHostnameLikeDisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Setting main form text failed. + /// + internal static string strSettingMainFormTextFailed { + get { + return ResourceManager.GetString("strSettingMainFormTextFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Couldn't save settings or dispose SysTray Icon!. + /// + internal static string strSettingsCouldNotBeSavedOrTrayDispose { + get { + return ResourceManager.GetString("strSettingsCouldNotBeSavedOrTrayDispose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Show description tooltips in connection tree. + /// + internal static string strShowDescriptionTooltips { + get { + return ResourceManager.GetString("strShowDescriptionTooltips", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Show full connections file path in window title. + /// + internal static string strShowFullConsFilePath { + get { + return ResourceManager.GetString("strShowFullConsFilePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Show logon information on tab names. + /// + internal static string strShowLogonInfoOnTabs { + get { + return ResourceManager.GetString("strShowLogonInfoOnTabs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Show protocols on tab names. + /// + internal static string strShowProtocolOnTabs { + get { + return ResourceManager.GetString("strShowProtocolOnTabs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Single click on connection opens it. + /// + internal static string strSingleClickOnConnectionOpensIt { + get { + return ResourceManager.GetString("strSingleClickOnConnectionOpensIt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Single click on opened connection switches to it. + /// + internal static string strSingleClickOnOpenConnectionSwitchesToIt { + get { + return ResourceManager.GetString("strSingleClickOnOpenConnectionSwitchesToIt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Aspect. + /// + internal static string strSmartSizeModeAspect { + get { + return ResourceManager.GetString("strSmartSizeModeAspect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Free. + /// + internal static string strSmartSizeModeFree { + get { + return ResourceManager.GetString("strSmartSizeModeFree", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No SmartSize. + /// + internal static string strSmartSizeModeNone { + get { + return ResourceManager.GetString("strSmartSizeModeNone", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Socks 5. + /// + internal static string strSocks5 { + get { + return ResourceManager.GetString("strSocks5", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sort. + /// + internal static string strSort { + get { + return ResourceManager.GetString("strSort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ascending (A-Z). + /// + internal static string strSortAsc { + get { + return ResourceManager.GetString("strSortAsc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Descending (Z-A). + /// + internal static string strSortDesc { + get { + return ResourceManager.GetString("strSortDesc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Special Keys. + /// + internal static string strSpecialKeys { + get { + return ResourceManager.GetString("strSpecialKeys", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please see Help - Getting started - SQL Configuration for more Info!. + /// + internal static string strSQLInfo { + get { + return ResourceManager.GetString("strSQLInfo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SQL Server. + /// + internal static string strSQLServer { + get { + return ResourceManager.GetString("strSQLServer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SQL Update check finished and there is an update available! Going to refresh connections.. + /// + internal static string strSqlUpdateCheckUpdateAvailable { + get { + return ResourceManager.GetString("strSqlUpdateCheckUpdateAvailable", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SSH version 1. + /// + internal static string strSsh1 { + get { + return ResourceManager.GetString("strSsh1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SSH version 2. + /// + internal static string strSsh2 { + get { + return ResourceManager.GetString("strSsh2", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SSH background transfer failed!. + /// + internal static string strSSHStartTransferBG { + get { + return ResourceManager.GetString("strSSHStartTransferBG", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Transfer successful!. + /// + internal static string strSSHTranferSuccessful { + get { + return ResourceManager.GetString("strSSHTranferSuccessful", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SSH Transfer End (UI.Window.SSHTransfer) failed!. + /// + internal static string strSSHTransferEndFailed { + get { + return ResourceManager.GetString("strSSHTransferEndFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SSH transfer failed.. + /// + internal static string strSSHTransferFailed { + get { + return ResourceManager.GetString("strSSHTransferFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Start IP. + /// + internal static string strStartIP { + get { + return ResourceManager.GetString("strStartIP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Start Port. + /// + internal static string strStartPort { + get { + return ResourceManager.GetString("strStartPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Startup/Exit. + /// + internal static string strStartupExit { + get { + return ResourceManager.GetString("strStartupExit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Status. + /// + internal static string strStatus { + get { + return ResourceManager.GetString("strStatus", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Switch to Notifications panel on:. + /// + internal static string strSwitchToErrorsAndInfos { + get { + return ResourceManager.GetString("strSwitchToErrorsAndInfos", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Advanced. + /// + internal static string strTabAdvanced { + get { + return ResourceManager.GetString("strTabAdvanced", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Appearance. + /// + internal static string strTabAppearance { + get { + return ResourceManager.GetString("strTabAppearance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Tabs && Panels. + /// + internal static string strTabsAndPanels { + get { + return ResourceManager.GetString("strTabsAndPanels", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updates. + /// + internal static string strTabUpdates { + get { + return ResourceManager.GetString("strTabUpdates", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Telnet. + /// + internal static string strTelnet { + get { + return ResourceManager.GetString("strTelnet", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The following:. + /// + internal static string strTheFollowing { + get { + return ResourceManager.GetString("strTheFollowing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config Panel. + /// + internal static string strThemeCategoryConfigPanel { + get { + return ResourceManager.GetString("strThemeCategoryConfigPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections Panel. + /// + internal static string strThemeCategoryConnectionsPanel { + get { + return ResourceManager.GetString("strThemeCategoryConnectionsPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to General. + /// + internal static string strThemeCategoryGeneral { + get { + return ResourceManager.GetString("strThemeCategoryGeneral", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The background colour of the config panel.. + /// + internal static string strThemeDescriptionConfigPanelBackgroundColor { + get { + return ResourceManager.GetString("strThemeDescriptionConfigPanelBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the category text in the config panel.. + /// + internal static string strThemeDescriptionConfigPanelCategoryTextColor { + get { + return ResourceManager.GetString("strThemeDescriptionConfigPanelCategoryTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the grid lines in the config panel. + /// + internal static string strThemeDescriptionConfigPanelGridLineColor { + get { + return ResourceManager.GetString("strThemeDescriptionConfigPanelGridLineColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The background colour of the help area of the config panel.. + /// + internal static string strThemeDescriptionConfigPanelHelpBackgroundColor { + get { + return ResourceManager.GetString("strThemeDescriptionConfigPanelHelpBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the text in the help area of the config panel.. + /// + internal static string strThemeDescriptionConfigPanelHelpTextColor { + get { + return ResourceManager.GetString("strThemeDescriptionConfigPanelHelpTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the text in the config panel.. + /// + internal static string strThemeDescriptionConfigPanelTextColor { + get { + return ResourceManager.GetString("strThemeDescriptionConfigPanelTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The background colour of the connections panel.. + /// + internal static string strThemeDescriptionConnectionsPanelBackgroundColor { + get { + return ResourceManager.GetString("strThemeDescriptionConnectionsPanelBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the text in the connections panel.. + /// + internal static string strThemeDescriptionConnectionsPanelTextColor { + get { + return ResourceManager.GetString("strThemeDescriptionConnectionsPanelTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the tree lines in the connections panel.. + /// + internal static string strThemeDescriptionConnectionsPanelTreeLineColor { + get { + return ResourceManager.GetString("strThemeDescriptionConnectionsPanelTreeLineColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The background colour of the menus.. + /// + internal static string strThemeDescriptionMenuBackgroundColor { + get { + return ResourceManager.GetString("strThemeDescriptionMenuBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the text in the menus.. + /// + internal static string strThemeDescriptionMenuTextColor { + get { + return ResourceManager.GetString("strThemeDescriptionMenuTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The background colour of the search box.. + /// + internal static string strThemeDescriptionSearchBoxBackgroundColor { + get { + return ResourceManager.GetString("strThemeDescriptionSearchBoxBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the text in the search box.. + /// + internal static string strThemeDescriptionSearchBoxTextColor { + get { + return ResourceManager.GetString("strThemeDescriptionSearchBoxTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the prompt text in the search box.. + /// + internal static string strThemeDescriptionSearchBoxTextPromptColor { + get { + return ResourceManager.GetString("strThemeDescriptionSearchBoxTextPromptColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The background colour of the toolbars.. + /// + internal static string strThemeDescriptionToolbarBackgroundColor { + get { + return ResourceManager.GetString("strThemeDescriptionToolbarBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The colour of the text in the toolbars.. + /// + internal static string strThemeDescriptionToolbarTextColor { + get { + return ResourceManager.GetString("strThemeDescriptionToolbarTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The background colour of the main window.. + /// + internal static string strThemeDescriptionWindowBackgroundColor { + get { + return ResourceManager.GetString("strThemeDescriptionWindowBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config Panel Background Colour. + /// + internal static string strThemeNameConfigPanelBackgroundColor { + get { + return ResourceManager.GetString("strThemeNameConfigPanelBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config Panel Category Text Colour. + /// + internal static string strThemeNameConfigPanelCategoryTextColor { + get { + return ResourceManager.GetString("strThemeNameConfigPanelCategoryTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config Panel Grid Line Colour. + /// + internal static string strThemeNameConfigPanelGridLineColor { + get { + return ResourceManager.GetString("strThemeNameConfigPanelGridLineColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config Panel Help Background Colour. + /// + internal static string strThemeNameConfigPanelHelpBackgroundColor { + get { + return ResourceManager.GetString("strThemeNameConfigPanelHelpBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config Panel Help Text Colour. + /// + internal static string strThemeNameConfigPanelHelpTextColor { + get { + return ResourceManager.GetString("strThemeNameConfigPanelHelpTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Config Panel Text Colour. + /// + internal static string strThemeNameConfigPanelTextColor { + get { + return ResourceManager.GetString("strThemeNameConfigPanelTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections Panel Background Colour. + /// + internal static string strThemeNameConnectionsPanelBackgroundColor { + get { + return ResourceManager.GetString("strThemeNameConnectionsPanelBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections Panel Text Colour. + /// + internal static string strThemeNameConnectionsPanelTextColor { + get { + return ResourceManager.GetString("strThemeNameConnectionsPanelTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connections Panel Tree Line Colour. + /// + internal static string strThemeNameConnectionsPanelTreeLineColor { + get { + return ResourceManager.GetString("strThemeNameConnectionsPanelTreeLineColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Menu Background Colour. + /// + internal static string strThemeNameMenuBackgroundColor { + get { + return ResourceManager.GetString("strThemeNameMenuBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Menu Text Colour. + /// + internal static string strThemeNameMenuTextColor { + get { + return ResourceManager.GetString("strThemeNameMenuTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Search Box Background Colour. + /// + internal static string strThemeNameSearchBoxBackgroundColor { + get { + return ResourceManager.GetString("strThemeNameSearchBoxBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Search Box Text Colour. + /// + internal static string strThemeNameSearchBoxTextColor { + get { + return ResourceManager.GetString("strThemeNameSearchBoxTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Search Box Text Prompt Colour. + /// + internal static string strThemeNameSearchBoxTextPromptColor { + get { + return ResourceManager.GetString("strThemeNameSearchBoxTextPromptColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Toolbar Background Colour. + /// + internal static string strThemeNameToolbarBackgroundColor { + get { + return ResourceManager.GetString("strThemeNameToolbarBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Toolbar Text Colour. + /// + internal static string strThemeNameToolbarTextColor { + get { + return ResourceManager.GetString("strThemeNameToolbarTextColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Window Background Colour. + /// + internal static string strThemeNameWindowBackgroundColor { + get { + return ResourceManager.GetString("strThemeNameWindowBackgroundColor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Error ({0}). + /// + internal static string strTitleError { + get { + return ResourceManager.GetString("strTitleError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Information ({0}). + /// + internal static string strTitleInformation { + get { + return ResourceManager.GetString("strTitleInformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password. + /// + internal static string strTitlePassword { + get { + return ResourceManager.GetString("strTitlePassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password for {0}. + /// + internal static string strTitlePasswordWithName { + get { + return ResourceManager.GetString("strTitlePasswordWithName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select Panel. + /// + internal static string strTitleSelectPanel { + get { + return ResourceManager.GetString("strTitleSelectPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Warning ({0}). + /// + internal static string strTitleWarning { + get { + return ResourceManager.GetString("strTitleWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Transfer. + /// + internal static string strTransfer { + get { + return ResourceManager.GetString("strTransfer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Transfer failed!. + /// + internal static string strTransferFailed { + get { + return ResourceManager.GetString("strTransferFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Try to integrate. + /// + internal static string strTryIntegrate { + get { + return ResourceManager.GetString("strTryIntegrate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Type. + /// + internal static string strType { + get { + return ResourceManager.GetString("strType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ultra VNC Repeater. + /// + internal static string strUltraVncRepeater { + get { + return ResourceManager.GetString("strUltraVncRepeater", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to UltraVNC SingleClick port:. + /// + internal static string strUltraVNCSCListeningPort { + get { + return ResourceManager.GetString("strUltraVNCSCListeningPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Uncheck the properties you want not to be saved!. + /// + internal static string strUncheckProperties { + get { + return ResourceManager.GetString("strUncheckProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unnamed Theme. + /// + internal static string strUnnamedTheme { + get { + return ResourceManager.GetString("strUnnamedTheme", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemoteNG requires an update. + /// + internal static string strUpdateAvailable { + get { + return ResourceManager.GetString("strUpdateAvailable", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemoteNG can periodically connect to the mRemoteNG website to check for updates and product announcements.. + /// + internal static string strUpdateCheck { + get { + return ResourceManager.GetString("strUpdateCheck", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The update information could not be downloaded.. + /// + internal static string strUpdateCheckCompleteFailed { + get { + return ResourceManager.GetString("strUpdateCheckCompleteFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Check failed. + /// + internal static string strUpdateCheckFailedLabel { + get { + return ResourceManager.GetString("strUpdateCheckFailedLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Checking for updates.... + /// + internal static string strUpdateCheckingLabel { + get { + return ResourceManager.GetString("strUpdateCheckingLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to mRemoteNG Portable Edition does not currently support automatic updates.. + /// + internal static string strUpdateCheckPortableEdition { + get { + return ResourceManager.GetString("strUpdateCheckPortableEdition", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Download complete! + ///mRemoteNG will now quit and begin with the installation.. + /// + internal static string strUpdateDownloadComplete { + get { + return ResourceManager.GetString("strUpdateDownloadComplete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The update could not be downloaded.. + /// + internal static string strUpdateDownloadCompleteFailed { + get { + return ResourceManager.GetString("strUpdateDownloadCompleteFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The update download could not be initiated.. + /// + internal static string strUpdateDownloadFailed { + get { + return ResourceManager.GetString("strUpdateDownloadFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Every {0} days. + /// + internal static string strUpdateFrequencyCustom { + get { + return ResourceManager.GetString("strUpdateFrequencyCustom", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Daily. + /// + internal static string strUpdateFrequencyDaily { + get { + return ResourceManager.GetString("strUpdateFrequencyDaily", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Monthly. + /// + internal static string strUpdateFrequencyMonthly { + get { + return ResourceManager.GetString("strUpdateFrequencyMonthly", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Weekly. + /// + internal static string strUpdateFrequencyWeekly { + get { + return ResourceManager.GetString("strUpdateFrequencyWeekly", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The announcement information could not be downloaded.. + /// + internal static string strUpdateGetAnnouncementInfoFailed { + get { + return ResourceManager.GetString("strUpdateGetAnnouncementInfoFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The change log could not be downloaded.. + /// + internal static string strUpdateGetChangeLogFailed { + get { + return ResourceManager.GetString("strUpdateGetChangeLogFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use a different username and password. + /// + internal static string strUseDifferentUsernameAndPassword { + get { + return ResourceManager.GetString("strUseDifferentUsernameAndPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use only Notifications panel (no messagebox popups). + /// + internal static string strUseOnlyErrorsAndInfosPanel { + get { + return ResourceManager.GetString("strUseOnlyErrorsAndInfosPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User. + /// + internal static string strUser { + get { + return ResourceManager.GetString("strUser", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use the same username and password. + /// + internal static string strUseSameUsernameAndPassword { + get { + return ResourceManager.GetString("strUseSameUsernameAndPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use a smart card. + /// + internal static string strUseSmartCard { + get { + return ResourceManager.GetString("strUseSmartCard", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Use SQL Server to load && save connections. + /// + internal static string strUseSQLServer { + get { + return ResourceManager.GetString("strUseSQLServer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Version. + /// + internal static string strVersion { + get { + return ResourceManager.GetString("strVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to visionapp Remote Desktop 2008 CSV. + /// + internal static string strVisionAppRemoteDesktopCsv { + get { + return ResourceManager.GetString("strVisionAppRemoteDesktopCsv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC. + /// + internal static string strVnc { + get { + return ResourceManager.GetString("strVnc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC disconnect failed!. + /// + internal static string strVncConnectionDisconnectFailed { + get { + return ResourceManager.GetString("strVncConnectionDisconnectFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Opening connection failed!. + /// + internal static string strVncConnectionOpenFailed { + get { + return ResourceManager.GetString("strVncConnectionOpenFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC Refresh Screen Failed!. + /// + internal static string strVncRefreshFailed { + get { + return ResourceManager.GetString("strVncRefreshFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC SendSpecialKeys failed!. + /// + internal static string strVncSendSpecialKeysFailed { + get { + return ResourceManager.GetString("strVncSendSpecialKeysFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC Set Event Handlers failed!. + /// + internal static string strVncSetEventHandlersFailed { + get { + return ResourceManager.GetString("strVncSetEventHandlersFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC Set Props Failed!. + /// + internal static string strVncSetPropsFailed { + get { + return ResourceManager.GetString("strVncSetPropsFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC Start Chat Failed!. + /// + internal static string strVncStartChatFailed { + get { + return ResourceManager.GetString("strVncStartChatFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC Toggle SmartSize Failed!. + /// + internal static string strVncToggleSmartSizeFailed { + get { + return ResourceManager.GetString("strVncToggleSmartSizeFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VNC Toggle ViewOnly Failed!. + /// + internal static string strVncToggleViewOnlyFailed { + get { + return ResourceManager.GetString("strVncToggleViewOnlyFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Warn me if authentication fails. + /// + internal static string strWarnIfAuthFails { + get { + return ResourceManager.GetString("strWarnIfAuthFails", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Warnings. + /// + internal static string strWarnings { + get { + return ResourceManager.GetString("strWarnings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Uses the DockPanel Suite by [Weifen Luo]. + /// + internal static string strWeifenLuoAttribution { + get { + return ResourceManager.GetString("strWeifenLuoAttribution", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to http://sourceforge.net/projects/dockpanelsuite/. + /// + internal static string strWeifenLuoAttributionURL { + get { + return ResourceManager.GetString("strWeifenLuoAttributionURL", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Write log file (mRemoteNG.log). + /// + internal static string strWriteLogFile { + get { + return ResourceManager.GetString("strWriteLogFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to XULrunner path:. + /// + internal static string strXULrunnerPath { + get { + return ResourceManager.GetString("strXULrunnerPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Yes. + /// + internal static string strYes { + get { + return ResourceManager.GetString("strYes", resourceCulture); + } + } + } } diff --git a/mRemoteV1/CS/Messages/Messages.Collector.cs b/mRemoteV1/CS/Messages/Messages.Collector.cs index a5cd0bdd9..f86891bf4 100644 --- a/mRemoteV1/CS/Messages/Messages.Collector.cs +++ b/mRemoteV1/CS/Messages/Messages.Collector.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,7 +8,7 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports +using mRemoteNG.My; @@ -17,28 +16,28 @@ namespace mRemoteNG.Messages { public class Collector { -#region Constructors + #region Constructors public Collector(UI.Window.ErrorsAndInfos MessageCollectorForm) { this._MCForm = MessageCollectorForm; CreateTimer(); } -#endregion + #endregion -#region Private Properties + #region Private Properties private Timer ECTimer; private UI.Window.ErrorsAndInfos _MCForm; -#endregion + #endregion -#region Public Properties + #region Public Properties public UI.Window.ErrorsAndInfos MCForm { get { return this._MCForm; } set { this._MCForm = value; } } -#endregion + #endregion -#region Public Methods + #region Public Methods public void AddMessage(Messages.MessageClass MsgClass, string MsgText, bool OnlyLog = false) { Messages.Message nMsg = new Messages.Message(); @@ -46,10 +45,10 @@ namespace mRemoteNG.Messages nMsg.MsgText = MsgText; nMsg.MsgDate = DateTime.Now; - if (My.Settings.Default.SwitchToMCOnInformation && nMsg.MsgClass == Messages.MessageClass.InformationMsg) + if (Settings.Default.SwitchToMCOnInformation && nMsg.MsgClass == Messages.MessageClass.InformationMsg) { Debug.Print("Info: " + nMsg.MsgText); - if (My.Settings.Default.WriteLogFile) + if (Settings.Default.WriteLogFile) { App.Runtime.Log.Info(nMsg.MsgText); } @@ -59,7 +58,7 @@ namespace mRemoteNG.Messages return; } - if (My.Settings.Default.ShowNoMessageBoxes) + if (Settings.Default.ShowNoMessageBoxes) { ECTimer.Enabled = true; } @@ -69,10 +68,10 @@ namespace mRemoteNG.Messages } } - if (My.Settings.Default.SwitchToMCOnWarning && nMsg.MsgClass == Messages.MessageClass.WarningMsg) + if (Settings.Default.SwitchToMCOnWarning && nMsg.MsgClass == Messages.MessageClass.WarningMsg) { Debug.Print("Warning: " + nMsg.MsgText); - if (My.Settings.Default.WriteLogFile) + if (Settings.Default.WriteLogFile) { App.Runtime.Log.Warn(nMsg.MsgText); } @@ -82,7 +81,7 @@ namespace mRemoteNG.Messages return; } - if (My.Settings.Default.ShowNoMessageBoxes) + if (Settings.Default.ShowNoMessageBoxes) { ECTimer.Enabled = true; } @@ -92,7 +91,7 @@ namespace mRemoteNG.Messages } } - if (My.Settings.Default.SwitchToMCOnError && nMsg.MsgClass == Messages.MessageClass.ErrorMsg) + if (Settings.Default.SwitchToMCOnError && nMsg.MsgClass == Messages.MessageClass.ErrorMsg) { Debug.Print("Error: " + nMsg.MsgText); @@ -104,7 +103,7 @@ namespace mRemoteNG.Messages return; } - if (My.Settings.Default.ShowNoMessageBoxes) + if (Settings.Default.ShowNoMessageBoxes) { ECTimer.Enabled = true; } @@ -118,7 +117,7 @@ namespace mRemoteNG.Messages { Debug.Print("Report: " + nMsg.MsgText); - if (My.Settings.Default.WriteLogFile) + if (Settings.Default.WriteLogFile) { App.Runtime.Log.Info(nMsg.MsgText); } @@ -140,7 +139,7 @@ namespace mRemoteNG.Messages } #endregion -#region Private Methods + #region Private Methods private void CreateTimer() { ECTimer = new Timer(); @@ -157,7 +156,7 @@ namespace mRemoteNG.Messages private void SwitchToMessage() { - this._MCForm.PreviousActiveForm = frmMain.Default.pnlDock.ActiveContent; + this._MCForm.PreviousActiveForm = (WeifenLuo.WinFormsUI.Docking.DockContent)frmMain.Default.pnlDock.ActiveContent; this.ShowMCForm(); this._MCForm.lvErrorCollector.Focus(); this._MCForm.lvErrorCollector.SelectedItems.Clear(); @@ -180,9 +179,9 @@ namespace mRemoteNG.Messages break; } } -#endregion + #endregion -#region Delegates + #region Delegates private delegate void ShowMCFormCB(); private void ShowMCForm() { @@ -210,6 +209,6 @@ namespace mRemoteNG.Messages this._MCForm.lvErrorCollector.Items.Insert(0, lvItem); } } -#endregion + #endregion } } diff --git a/mRemoteV1/CS/Messages/Messages.Message.cs b/mRemoteV1/CS/Messages/Messages.Message.cs index 85d7be505..acbfe641f 100644 --- a/mRemoteV1/CS/Messages/Messages.Message.cs +++ b/mRemoteV1/CS/Messages/Messages.Message.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,7 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.Messages @@ -23,44 +21,44 @@ namespace mRemoteNG.Messages } public class Message + { + private MessageClass _MsgClass; + public MessageClass MsgClass { - private MessageClass _MsgClass; -public MessageClass MsgClass + get { - get - { - return _MsgClass; - } - set - { - _MsgClass = value; - } + return _MsgClass; } - - private string _MsgText; -public string MsgText + set { - get - { - return _MsgText; - } - set - { - _MsgText = value; - } - } - - private DateTime _MsgDate; -public DateTime MsgDate - { - get - { - return _MsgDate; - } - set - { - _MsgDate = value; - } + _MsgClass = value; } } + + private string _MsgText; + public string MsgText + { + get + { + return _MsgText; + } + set + { + _MsgText = value; + } + } + + private DateTime _MsgDate; + public DateTime MsgDate + { + get + { + return _MsgDate; + } + set + { + _MsgDate = value; + } + } + } } diff --git a/mRemoteV1/CS/Properties/Resources.Designer.cs b/mRemoteV1/CS/Properties/Resources.Designer.cs index 6d65dcd5b..083343274 100644 --- a/mRemoteV1/CS/Properties/Resources.Designer.cs +++ b/mRemoteV1/CS/Properties/Resources.Designer.cs @@ -1,14 +1,14 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ -namespace My { +namespace mRemoteNG.My { using System; @@ -21,8 +21,8 @@ namespace My { // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - - public class Resources { + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { private static global::System.Resources.ResourceManager resourceMan; @@ -36,10 +36,10 @@ namespace My { /// Returns the cached ResourceManager instance used by this class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { + internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("My.Resources.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("mRemoteNG.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; @@ -51,7 +51,7 @@ namespace My { /// resource lookups using this strongly typed resource class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { + internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -63,7 +63,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap _Error { + internal static System.Drawing.Bitmap _Error { get { object obj = ResourceManager.GetObject("_Error", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -73,7 +73,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ActiveDirectory { + internal static System.Drawing.Bitmap ActiveDirectory { get { object obj = ResourceManager.GetObject("ActiveDirectory", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -83,7 +83,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon ActiveDirectory_Icon { + internal static System.Drawing.Icon ActiveDirectory_Icon { get { object obj = ResourceManager.GetObject("ActiveDirectory_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -93,7 +93,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Appearance_Icon { + internal static System.Drawing.Icon Appearance_Icon { get { object obj = ResourceManager.GetObject("Appearance_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -103,7 +103,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap application_side_tree { + internal static System.Drawing.Bitmap application_side_tree { get { object obj = ResourceManager.GetObject("application_side_tree", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -113,7 +113,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Arrow_Down { + internal static System.Drawing.Bitmap Arrow_Down { get { object obj = ResourceManager.GetObject("Arrow_Down", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -123,7 +123,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap arrow_out { + internal static System.Drawing.Bitmap arrow_out { get { object obj = ResourceManager.GetObject("arrow_out", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -133,7 +133,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Arrow_Up { + internal static System.Drawing.Bitmap Arrow_Up { get { object obj = ResourceManager.GetObject("Arrow_Up", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -143,7 +143,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Bad_Symbol { + internal static System.Drawing.Bitmap Bad_Symbol { get { object obj = ResourceManager.GetObject("Bad_Symbol", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -153,7 +153,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Bug { + internal static System.Drawing.Bitmap Bug { get { object obj = ResourceManager.GetObject("Bug", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -163,7 +163,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Chat { + internal static System.Drawing.Bitmap Chat { get { object obj = ResourceManager.GetObject("Chat", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -173,7 +173,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap cog { + internal static System.Drawing.Bitmap cog { get { object obj = ResourceManager.GetObject("cog", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -183,7 +183,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap cog_error { + internal static System.Drawing.Bitmap cog_error { get { object obj = ResourceManager.GetObject("cog_error", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -193,7 +193,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Collapse { + internal static System.Drawing.Bitmap Collapse { get { object obj = ResourceManager.GetObject("Collapse", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -203,7 +203,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ComponentsCheck { + internal static System.Drawing.Bitmap ComponentsCheck { get { object obj = ResourceManager.GetObject("ComponentsCheck", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -213,7 +213,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon ComponentsCheck_Icon { + internal static System.Drawing.Icon ComponentsCheck_Icon { get { object obj = ResourceManager.GetObject("ComponentsCheck_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -223,7 +223,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Config { + internal static System.Drawing.Bitmap Config { get { object obj = ResourceManager.GetObject("Config", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -233,7 +233,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Config_Icon { + internal static System.Drawing.Icon Config_Icon { get { object obj = ResourceManager.GetObject("Config_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -243,7 +243,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Connection_Add { + internal static System.Drawing.Bitmap Connection_Add { get { object obj = ResourceManager.GetObject("Connection_Add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -253,7 +253,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Connection_Duplicate { + internal static System.Drawing.Bitmap Connection_Duplicate { get { object obj = ResourceManager.GetObject("Connection_Duplicate", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -263,7 +263,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Connections_Load { + internal static System.Drawing.Bitmap Connections_Load { get { object obj = ResourceManager.GetObject("Connections_Load", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -273,7 +273,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Connections_New { + internal static System.Drawing.Bitmap Connections_New { get { object obj = ResourceManager.GetObject("Connections_New", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -283,7 +283,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Connections_Save { + internal static System.Drawing.Bitmap Connections_Save { get { object obj = ResourceManager.GetObject("Connections_Save", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -293,7 +293,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Connections_SaveAs { + internal static System.Drawing.Bitmap Connections_SaveAs { get { object obj = ResourceManager.GetObject("Connections_SaveAs", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -303,7 +303,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Connections_SaveAs_Icon { + internal static System.Drawing.Icon Connections_SaveAs_Icon { get { object obj = ResourceManager.GetObject("Connections_SaveAs_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -313,7 +313,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Console { + internal static System.Drawing.Bitmap Console { get { object obj = ResourceManager.GetObject("Console", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -323,7 +323,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Copy { + internal static System.Drawing.Bitmap Copy { get { object obj = ResourceManager.GetObject("Copy", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -333,7 +333,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Delete { + internal static System.Drawing.Bitmap Delete { get { object obj = ResourceManager.GetObject("Delete", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -343,7 +343,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Donate { + internal static System.Drawing.Bitmap Donate { get { object obj = ResourceManager.GetObject("Donate", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -353,7 +353,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ErrorsAndInfos { + internal static System.Drawing.Bitmap ErrorsAndInfos { get { object obj = ResourceManager.GetObject("ErrorsAndInfos", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -363,7 +363,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ErrorSmall { + internal static System.Drawing.Bitmap ErrorSmall { get { object obj = ResourceManager.GetObject("ErrorSmall", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -373,7 +373,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Expand { + internal static System.Drawing.Bitmap Expand { get { object obj = ResourceManager.GetObject("Expand", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -383,7 +383,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ExtApp { + internal static System.Drawing.Bitmap ExtApp { get { object obj = ResourceManager.GetObject("ExtApp", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -393,7 +393,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ExtApp_Add { + internal static System.Drawing.Bitmap ExtApp_Add { get { object obj = ResourceManager.GetObject("ExtApp_Add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -403,7 +403,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ExtApp_Delete { + internal static System.Drawing.Bitmap ExtApp_Delete { get { object obj = ResourceManager.GetObject("ExtApp_Delete", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -413,7 +413,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon ExtApp_Icon { + internal static System.Drawing.Icon ExtApp_Icon { get { object obj = ResourceManager.GetObject("ExtApp_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -423,7 +423,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap ExtApp_Start { + internal static System.Drawing.Bitmap ExtApp_Start { get { object obj = ResourceManager.GetObject("ExtApp_Start", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -433,7 +433,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap File { + internal static System.Drawing.Bitmap File { get { object obj = ResourceManager.GetObject("File", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -443,7 +443,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Folder { + internal static System.Drawing.Bitmap Folder { get { object obj = ResourceManager.GetObject("Folder", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -453,7 +453,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Folder_Add { + internal static System.Drawing.Bitmap Folder_Add { get { object obj = ResourceManager.GetObject("Folder_Add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -463,7 +463,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Fullscreen { + internal static System.Drawing.Bitmap Fullscreen { get { object obj = ResourceManager.GetObject("Fullscreen", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -473,7 +473,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Good_Symbol { + internal static System.Drawing.Bitmap Good_Symbol { get { object obj = ResourceManager.GetObject("Good_Symbol", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -483,7 +483,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Help { + internal static System.Drawing.Bitmap Help { get { object obj = ResourceManager.GetObject("Help", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -493,7 +493,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Help_Icon { + internal static System.Drawing.Icon Help_Icon { get { object obj = ResourceManager.GetObject("Help_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -503,7 +503,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap HostStatus_Check { + internal static System.Drawing.Bitmap HostStatus_Check { get { object obj = ResourceManager.GetObject("HostStatus_Check", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -513,7 +513,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap HostStatus_Off { + internal static System.Drawing.Bitmap HostStatus_Off { get { object obj = ResourceManager.GetObject("HostStatus_Off", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -523,7 +523,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap HostStatus_On { + internal static System.Drawing.Bitmap HostStatus_On { get { object obj = ResourceManager.GetObject("HostStatus_On", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -533,7 +533,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Info { + internal static System.Drawing.Bitmap Info { get { object obj = ResourceManager.GetObject("Info", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -543,7 +543,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Info_Icon { + internal static System.Drawing.Icon Info_Icon { get { object obj = ResourceManager.GetObject("Info_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -553,7 +553,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Information { + internal static System.Drawing.Bitmap Information { get { object obj = ResourceManager.GetObject("Information", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -563,7 +563,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap InformationSmall { + internal static System.Drawing.Bitmap InformationSmall { get { object obj = ResourceManager.GetObject("InformationSmall", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -573,7 +573,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Inheritance { + internal static System.Drawing.Bitmap Inheritance { get { object obj = ResourceManager.GetObject("Inheritance", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -583,7 +583,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Inheritance_Default { + internal static System.Drawing.Bitmap Inheritance_Default { get { object obj = ResourceManager.GetObject("Inheritance_Default", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -593,7 +593,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap JumpTo { + internal static System.Drawing.Bitmap JumpTo { get { object obj = ResourceManager.GetObject("JumpTo", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -603,7 +603,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap key_delete { + internal static System.Drawing.Bitmap key_delete { get { object obj = ResourceManager.GetObject("key_delete", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -613,7 +613,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Keyboard { + internal static System.Drawing.Bitmap Keyboard { get { object obj = ResourceManager.GetObject("Keyboard", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -623,7 +623,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Lock { + internal static System.Drawing.Bitmap Lock { get { object obj = ResourceManager.GetObject("Lock", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -633,7 +633,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Logo { + internal static System.Drawing.Bitmap Logo { get { object obj = ResourceManager.GetObject("Logo", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -643,7 +643,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Monitor { + internal static System.Drawing.Bitmap Monitor { get { object obj = ResourceManager.GetObject("Monitor", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -653,7 +653,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap monitor_delete { + internal static System.Drawing.Bitmap monitor_delete { get { object obj = ResourceManager.GetObject("monitor_delete", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -663,7 +663,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap monitor_go { + internal static System.Drawing.Bitmap monitor_go { get { object obj = ResourceManager.GetObject("monitor_go", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -673,7 +673,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Monitor_GoTo { + internal static System.Drawing.Bitmap Monitor_GoTo { get { object obj = ResourceManager.GetObject("Monitor_GoTo", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -683,7 +683,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap mRemote { + internal static System.Drawing.Bitmap mRemote { get { object obj = ResourceManager.GetObject("mRemote", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -693,7 +693,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon mRemote_Icon { + internal static System.Drawing.Icon mRemote_Icon { get { object obj = ResourceManager.GetObject("mRemote_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -703,7 +703,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap News { + internal static System.Drawing.Bitmap News { get { object obj = ResourceManager.GetObject("News", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -713,7 +713,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon News_Icon { + internal static System.Drawing.Icon News_Icon { get { object obj = ResourceManager.GetObject("News_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -723,7 +723,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Options { + internal static System.Drawing.Bitmap Options { get { object obj = ResourceManager.GetObject("Options", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -733,7 +733,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Options_Icon { + internal static System.Drawing.Icon Options_Icon { get { object obj = ResourceManager.GetObject("Options_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -743,7 +743,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Page { + internal static System.Drawing.Bitmap Page { get { object obj = ResourceManager.GetObject("Page", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -753,7 +753,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap page_copy { + internal static System.Drawing.Bitmap page_copy { get { object obj = ResourceManager.GetObject("page_copy", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -763,7 +763,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Panel_Add { + internal static System.Drawing.Bitmap Panel_Add { get { object obj = ResourceManager.GetObject("Panel_Add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -773,7 +773,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Panel_Close { + internal static System.Drawing.Bitmap Panel_Close { get { object obj = ResourceManager.GetObject("Panel_Close", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -783,7 +783,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Panels { + internal static System.Drawing.Bitmap Panels { get { object obj = ResourceManager.GetObject("Panels", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -793,7 +793,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Panels_Icon { + internal static System.Drawing.Icon Panels_Icon { get { object obj = ResourceManager.GetObject("Panels_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -803,7 +803,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Pause { + internal static System.Drawing.Bitmap Pause { get { object obj = ResourceManager.GetObject("Pause", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -813,7 +813,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Play { + internal static System.Drawing.Bitmap Play { get { object obj = ResourceManager.GetObject("Play", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -823,7 +823,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Play_Quick { + internal static System.Drawing.Bitmap Play_Quick { get { object obj = ResourceManager.GetObject("Play_Quick", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -833,7 +833,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Play_Quick_Icon { + internal static System.Drawing.Icon Play_Quick_Icon { get { object obj = ResourceManager.GetObject("Play_Quick_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -843,7 +843,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap PortScan { + internal static System.Drawing.Bitmap PortScan { get { object obj = ResourceManager.GetObject("PortScan", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -853,7 +853,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon PortScan_Icon { + internal static System.Drawing.Icon PortScan_Icon { get { object obj = ResourceManager.GetObject("PortScan_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -863,7 +863,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Properties { + internal static System.Drawing.Bitmap Properties { get { object obj = ResourceManager.GetObject("Properties", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -873,7 +873,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Properties_Default { + internal static System.Drawing.Bitmap Properties_Default { get { object obj = ResourceManager.GetObject("Properties_Default", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -883,7 +883,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap puttycm { + internal static System.Drawing.Bitmap puttycm { get { object obj = ResourceManager.GetObject("puttycm", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -893,7 +893,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap PuttyConfig { + internal static System.Drawing.Bitmap PuttyConfig { get { object obj = ResourceManager.GetObject("PuttyConfig", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -903,7 +903,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap PuttySessions { + internal static System.Drawing.Bitmap PuttySessions { get { object obj = ResourceManager.GetObject("PuttySessions", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -913,7 +913,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Quit { + internal static System.Drawing.Bitmap Quit { get { object obj = ResourceManager.GetObject("Quit", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -923,7 +923,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon RDCMan_Icon { + internal static System.Drawing.Icon RDCMan_Icon { get { object obj = ResourceManager.GetObject("RDCMan_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -933,7 +933,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap RDP { + internal static System.Drawing.Bitmap RDP { get { object obj = ResourceManager.GetObject("RDP", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -943,7 +943,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Refresh { + internal static System.Drawing.Bitmap Refresh { get { object obj = ResourceManager.GetObject("Refresh", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -953,7 +953,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Rename { + internal static System.Drawing.Bitmap Rename { get { object obj = ResourceManager.GetObject("Rename", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -963,7 +963,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Root { + internal static System.Drawing.Bitmap Root { get { object obj = ResourceManager.GetObject("Root", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -973,7 +973,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Root_Icon { + internal static System.Drawing.Icon Root_Icon { get { object obj = ResourceManager.GetObject("Root_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -983,7 +983,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Save { + internal static System.Drawing.Bitmap Save { get { object obj = ResourceManager.GetObject("Save", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -993,7 +993,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Save_Icon { + internal static System.Drawing.Icon Save_Icon { get { object obj = ResourceManager.GetObject("Save_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1003,7 +1003,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Screenshot { + internal static System.Drawing.Bitmap Screenshot { get { object obj = ResourceManager.GetObject("Screenshot", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1013,7 +1013,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Screenshot_Add { + internal static System.Drawing.Bitmap Screenshot_Add { get { object obj = ResourceManager.GetObject("Screenshot_Add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1023,7 +1023,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Screenshot_Copy { + internal static System.Drawing.Bitmap Screenshot_Copy { get { object obj = ResourceManager.GetObject("Screenshot_Copy", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1033,7 +1033,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Screenshot_Delete { + internal static System.Drawing.Bitmap Screenshot_Delete { get { object obj = ResourceManager.GetObject("Screenshot_Delete", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1043,7 +1043,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Screenshot_Icon { + internal static System.Drawing.Icon Screenshot_Icon { get { object obj = ResourceManager.GetObject("Screenshot_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1053,7 +1053,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Screenshot_Save { + internal static System.Drawing.Bitmap Screenshot_Save { get { object obj = ResourceManager.GetObject("Screenshot_Save", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1063,7 +1063,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Search { + internal static System.Drawing.Bitmap Search { get { object obj = ResourceManager.GetObject("Search", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1073,7 +1073,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Session_LogOff { + internal static System.Drawing.Bitmap Session_LogOff { get { object obj = ResourceManager.GetObject("Session_LogOff", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1083,7 +1083,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Sessions { + internal static System.Drawing.Bitmap Sessions { get { object obj = ResourceManager.GetObject("Sessions", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1093,7 +1093,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Sessions_Icon { + internal static System.Drawing.Icon Sessions_Icon { get { object obj = ResourceManager.GetObject("Sessions_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1103,7 +1103,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap SmartSize { + internal static System.Drawing.Bitmap SmartSize { get { object obj = ResourceManager.GetObject("SmartSize", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1113,7 +1113,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Sort_AZ { + internal static System.Drawing.Bitmap Sort_AZ { get { object obj = ResourceManager.GetObject("Sort_AZ", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1123,7 +1123,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Sort_ZA { + internal static System.Drawing.Bitmap Sort_ZA { get { object obj = ResourceManager.GetObject("Sort_ZA", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1133,7 +1133,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap SSHTransfer { + internal static System.Drawing.Bitmap SSHTransfer { get { object obj = ResourceManager.GetObject("SSHTransfer", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1143,7 +1143,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon SSHTransfer_Icon { + internal static System.Drawing.Icon SSHTransfer_Icon { get { object obj = ResourceManager.GetObject("SSHTransfer_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1153,7 +1153,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon StartupExit_Icon { + internal static System.Drawing.Icon StartupExit_Icon { get { object obj = ResourceManager.GetObject("StartupExit_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1163,7 +1163,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Tab_Icon { + internal static System.Drawing.Icon Tab_Icon { get { object obj = ResourceManager.GetObject("Tab_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1173,7 +1173,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Tools { + internal static System.Drawing.Bitmap Tools { get { object obj = ResourceManager.GetObject("Tools", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1183,7 +1183,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Update { + internal static System.Drawing.Bitmap Update { get { object obj = ResourceManager.GetObject("Update", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1193,7 +1193,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon Update_Icon { + internal static System.Drawing.Icon Update_Icon { get { object obj = ResourceManager.GetObject("Update_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1203,7 +1203,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap user_comment { + internal static System.Drawing.Bitmap user_comment { get { object obj = ResourceManager.GetObject("user_comment", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1213,7 +1213,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap UVNC_SC { + internal static System.Drawing.Bitmap UVNC_SC { get { object obj = ResourceManager.GetObject("UVNC_SC", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1223,7 +1223,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - public static System.Drawing.Icon UVNC_SC_Icon { + internal static System.Drawing.Icon UVNC_SC_Icon { get { object obj = ResourceManager.GetObject("UVNC_SC_Icon", resourceCulture); return ((System.Drawing.Icon)(obj)); @@ -1233,7 +1233,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap View { + internal static System.Drawing.Bitmap View { get { object obj = ResourceManager.GetObject("View", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1243,7 +1243,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Warning { + internal static System.Drawing.Bitmap Warning { get { object obj = ResourceManager.GetObject("Warning", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1253,7 +1253,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap WarningSmall { + internal static System.Drawing.Bitmap WarningSmall { get { object obj = ResourceManager.GetObject("WarningSmall", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -1263,7 +1263,7 @@ namespace My { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - public static System.Drawing.Bitmap Website { + internal static System.Drawing.Bitmap Website { get { object obj = ResourceManager.GetObject("Website", resourceCulture); return ((System.Drawing.Bitmap)(obj)); diff --git a/mRemoteV1/CS/Properties/Settings.Designer.cs b/mRemoteV1/CS/Properties/Settings.Designer.cs index cd5dfa60b..e4209766f 100644 --- a/mRemoteV1/CS/Properties/Settings.Designer.cs +++ b/mRemoteV1/CS/Properties/Settings.Designer.cs @@ -1,2936 +1,2487 @@ -// VBConversions Note: VB project level imports -using System.Collections.Generic; -using System; -using AxWFICALib; -using System.Drawing; -using System.Diagnostics; -using System.Data; -using AxMSTSCLib; -using Microsoft.VisualBasic; -using System.Collections; -using System.Windows.Forms; -// End of VB project level imports - -using System.Threading; - -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.1008 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ - - -namespace mRemoteNG -{ - namespace My - { - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute(), - global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), - global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = (My.Settings) (global::System.Configuration.ApplicationSettingsBase.Synchronized(new My.Settings())); - -#region My.Settings Auto-Save Functionality -#if _MyType - private static bool addedHandler; - - private static object addedHandlerLockObject = new object(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute(), global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]private static void AutoSaveSettings(global::System.Object sender, global::System.EventArgs e) - { - if ((new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).SaveMySettingsOnExit) - { - My.Settings.Default.Save(); - } - } -#endif -#endregion - -public static Settings Default - { - get - { - -#if _MyType - if (!addedHandler) - { - lock(addedHandlerLockObject) - { - if (!addedHandler) - { - (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase).Shutdown += AutoSaveSettings; - addedHandler = true; - } - } - } -#endif - return defaultInstance; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute()]public global::System.Drawing.Point MainFormLocation - { - get - { - return ((global::System.Drawing.Point) (this["MainFormLocation"])); - } - set - { - this["MainFormLocation"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute()]public global::System.Drawing.Size MainFormSize - { - get - { - return ((global::System.Drawing.Size) (this["MainFormSize"])); - } - set - { - this["MainFormSize"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("Normal")]public global::System.Windows.Forms.FormWindowState MainFormState - { - get - { - return ((global::System.Windows.Forms.FormWindowState) (this["MainFormState"])); - } - set - { - this["MainFormState"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool MainFormKiosk - { - get - { - return System.Convert.ToBoolean(this["MainFormKiosk"]); - } - set - { - this["MainFormKiosk"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool DoUpgrade - { - get - { - return System.Convert.ToBoolean(this["DoUpgrade"]); - } - set - { - this["DoUpgrade"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string CustomPuttyPath - { - get - { - return System.Convert.ToString(this["CustomPuttyPath"]); - } - set - { - this["CustomPuttyPath"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool ShowNoMessageBoxes - { - get - { - return System.Convert.ToBoolean(this["ShowNoMessageBoxes"]); - } - set - { - this["ShowNoMessageBoxes"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool SwitchToMCOnInformation - { - get - { - return System.Convert.ToBoolean(this["SwitchToMCOnInformation"]); - } - set - { - this["SwitchToMCOnInformation"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool SwitchToMCOnWarning - { - get - { - return System.Convert.ToBoolean(this["SwitchToMCOnWarning"]); - } - set - { - this["SwitchToMCOnWarning"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool SwitchToMCOnError - { - get - { - return System.Convert.ToBoolean(this["SwitchToMCOnError"]); - } - set - { - this["SwitchToMCOnError"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool AutomaticallyGetSessionInfo - { - get - { - return System.Convert.ToBoolean(this["AutomaticallyGetSessionInfo"]); - } - set - { - this["AutomaticallyGetSessionInfo"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool LoadConsFromCustomLocation - { - get - { - return System.Convert.ToBoolean(this["LoadConsFromCustomLocation"]); - } - set - { - this["LoadConsFromCustomLocation"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string CustomConsPath - { - get - { - return System.Convert.ToString(this["CustomConsPath"]); - } - set - { - this["CustomConsPath"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool SaveConsOnExit - { - get - { - return System.Convert.ToBoolean(this["SaveConsOnExit"]); - } - set - { - this["SaveConsOnExit"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool CheckForUpdatesOnStartup - { - get - { - return System.Convert.ToBoolean(this["CheckForUpdatesOnStartup"]); - } - set - { - this["CheckForUpdatesOnStartup"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ShowDescriptionTooltipsInTree - { - get - { - return System.Convert.ToBoolean(this["ShowDescriptionTooltipsInTree"]); - } - set - { - this["ShowDescriptionTooltipsInTree"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ShowSystemTrayIcon - { - get - { - return System.Convert.ToBoolean(this["ShowSystemTrayIcon"]); - } - set - { - this["ShowSystemTrayIcon"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool OpenTabsRightOfSelected - { - get - { - return System.Convert.ToBoolean(this["OpenTabsRightOfSelected"]); - } - set - { - this["OpenTabsRightOfSelected"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ShowLogonInfoOnTabs - { - get - { - return System.Convert.ToBoolean(this["ShowLogonInfoOnTabs"]); - } - set - { - this["ShowLogonInfoOnTabs"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool SingleClickOnConnectionOpensIt - { - get - { - return System.Convert.ToBoolean(this["SingleClickOnConnectionOpensIt"]); - } - set - { - this["SingleClickOnConnectionOpensIt"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("noinfo")]public string EmptyCredentials - { - get - { - return System.Convert.ToString(this["EmptyCredentials"]); - } - set - { - this["EmptyCredentials"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string DefaultUsername - { - get - { - return System.Convert.ToString(this["DefaultUsername"]); - } - set - { - this["DefaultUsername"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string DefaultPassword - { - get - { - return System.Convert.ToString(this["DefaultPassword"]); - } - set - { - this["DefaultPassword"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string DefaultDomain - { - get - { - return System.Convert.ToString(this["DefaultDomain"]); - } - set - { - this["DefaultDomain"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool WriteLogFile - { - get - { - return System.Convert.ToBoolean(this["WriteLogFile"]); - } - set - { - this["WriteLogFile"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool UseCustomPuttyPath - { - get - { - return System.Convert.ToBoolean(this["UseCustomPuttyPath"]); - } - set - { - this["UseCustomPuttyPath"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ShowCompleteConsPathInTitle - { - get - { - return System.Convert.ToBoolean(this["ShowCompleteConsPathInTitle"]); - } - set - { - this["ShowCompleteConsPathInTitle"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool FirstStart - { - get - { - return System.Convert.ToBoolean(this["FirstStart"]); - } - set - { - this["FirstStart"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ShowProtocolOnTabs - { - get - { - return System.Convert.ToBoolean(this["ShowProtocolOnTabs"]); - } - set - { - this["ShowProtocolOnTabs"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ResetPanels - { - get - { - return System.Convert.ToBoolean(this["ResetPanels"]); - } - set - { - this["ResetPanels"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool UpdateUseProxy - { - get - { - return System.Convert.ToBoolean(this["UpdateUseProxy"]); - } - set - { - this["UpdateUseProxy"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string UpdateProxyAddress - { - get - { - return System.Convert.ToString(this["UpdateProxyAddress"]); - } - set - { - this["UpdateProxyAddress"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("80")]public int UpdateProxyPort - { - get - { - return System.Convert.ToInt32(this["UpdateProxyPort"]); - } - set - { - this["UpdateProxyPort"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool UpdateProxyUseAuthentication - { - get - { - return System.Convert.ToBoolean(this["UpdateProxyUseAuthentication"]); - } - set - { - this["UpdateProxyUseAuthentication"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string UpdateProxyAuthUser - { - get - { - return System.Convert.ToString(this["UpdateProxyAuthUser"]); - } - set - { - this["UpdateProxyAuthUser"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string UpdateProxyAuthPass - { - get - { - return System.Convert.ToString(this["UpdateProxyAuthPass"]); - } - set - { - this["UpdateProxyAuthPass"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultDescription - { - get - { - return System.Convert.ToString(this["ConDefaultDescription"]); - } - set - { - this["ConDefaultDescription"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultUsername - { - get - { - return System.Convert.ToString(this["ConDefaultUsername"]); - } - set - { - this["ConDefaultUsername"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultPassword - { - get - { - return System.Convert.ToString(this["ConDefaultPassword"]); - } - set - { - this["ConDefaultPassword"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultDomain - { - get - { - return System.Convert.ToString(this["ConDefaultDomain"]); - } - set - { - this["ConDefaultDomain"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("RDP")]public string ConDefaultProtocol - { - get - { - return System.Convert.ToString(this["ConDefaultProtocol"]); - } - set - { - this["ConDefaultProtocol"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("Default Settings")]public string ConDefaultPuttySession - { - get - { - return System.Convert.ToString(this["ConDefaultPuttySession"]); - } - set - { - this["ConDefaultPuttySession"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultUseConsoleSession - { - get - { - return System.Convert.ToBoolean(this["ConDefaultUseConsoleSession"]); - } - set - { - this["ConDefaultUseConsoleSession"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("FitToWindow")]public string ConDefaultResolution - { - get - { - return System.Convert.ToString(this["ConDefaultResolution"]); - } - set - { - this["ConDefaultResolution"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("Colors16Bit")]public string ConDefaultColors - { - get - { - return System.Convert.ToString(this["ConDefaultColors"]); - } - set - { - this["ConDefaultColors"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool ConDefaultCacheBitmaps - { - get - { - return System.Convert.ToBoolean(this["ConDefaultCacheBitmaps"]); - } - set - { - this["ConDefaultCacheBitmaps"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultDisplayWallpaper - { - get - { - return System.Convert.ToBoolean(this["ConDefaultDisplayWallpaper"]); - } - set - { - this["ConDefaultDisplayWallpaper"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultDisplayThemes - { - get - { - return System.Convert.ToBoolean(this["ConDefaultDisplayThemes"]); - } - set - { - this["ConDefaultDisplayThemes"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultRedirectKeys - { - get - { - return System.Convert.ToBoolean(this["ConDefaultRedirectKeys"]); - } - set - { - this["ConDefaultRedirectKeys"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultRedirectDiskDrives - { - get - { - return System.Convert.ToBoolean(this["ConDefaultRedirectDiskDrives"]); - } - set - { - this["ConDefaultRedirectDiskDrives"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultRedirectPrinters - { - get - { - return System.Convert.ToBoolean(this["ConDefaultRedirectPrinters"]); - } - set - { - this["ConDefaultRedirectPrinters"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultRedirectPorts - { - get - { - return System.Convert.ToBoolean(this["ConDefaultRedirectPorts"]); - } - set - { - this["ConDefaultRedirectPorts"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultRedirectSmartCards - { - get - { - return System.Convert.ToBoolean(this["ConDefaultRedirectSmartCards"]); - } - set - { - this["ConDefaultRedirectSmartCards"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("DoNotPlay")]public string ConDefaultRedirectSound - { - get - { - return System.Convert.ToString(this["ConDefaultRedirectSound"]); - } - set - { - this["ConDefaultRedirectSound"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("2")]public int MaxPuttyWaitTime - { - get - { - return System.Convert.ToInt32(this["MaxPuttyWaitTime"]); - } - set - { - this["MaxPuttyWaitTime"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool SingleInstance - { - get - { - return System.Convert.ToBoolean(this["SingleInstance"]); - } - set - { - this["SingleInstance"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool OpenConsFromLastSession - { - get - { - return System.Convert.ToBoolean(this["OpenConsFromLastSession"]); - } - set - { - this["OpenConsFromLastSession"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool NoReconnect - { - get - { - return System.Convert.ToBoolean(this["NoReconnect"]); - } - set - { - this["NoReconnect"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("0")]public int AutoSaveEveryMinutes - { - get - { - return System.Convert.ToInt32(this["AutoSaveEveryMinutes"]); - } - set - { - this["AutoSaveEveryMinutes"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ExtAppsTBVisible - { - get - { - return System.Convert.ToBoolean(this["ExtAppsTBVisible"]); - } - set - { - this["ExtAppsTBVisible"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool ExtAppsTBShowText - { - get - { - return System.Convert.ToBoolean(this["ExtAppsTBShowText"]); - } - set - { - this["ExtAppsTBShowText"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("0, 0")]public global::System.Drawing.Point ExtAppsTBLocation - { - get - { - return ((global::System.Drawing.Point) (this["ExtAppsTBLocation"])); - } - set - { - this["ExtAppsTBLocation"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("Bottom")]public string ExtAppsTBParentDock - { - get - { - return System.Convert.ToString(this["ExtAppsTBParentDock"]); - } - set - { - this["ExtAppsTBParentDock"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool QuickyTBVisible - { - get - { - return System.Convert.ToBoolean(this["QuickyTBVisible"]); - } - set - { - this["QuickyTBVisible"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("3, 24")]public global::System.Drawing.Point QuickyTBLocation - { - get - { - return ((global::System.Drawing.Point) (this["QuickyTBLocation"])); - } - set - { - this["QuickyTBLocation"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("Top")]public string QuickyTBParentDock - { - get - { - return System.Convert.ToString(this["QuickyTBParentDock"]); - } - set - { - this["QuickyTBParentDock"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ResetToolbars - { - get - { - return System.Convert.ToBoolean(this["ResetToolbars"]); - } - set - { - this["ResetToolbars"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool UseSQLServer - { - get - { - return System.Convert.ToBoolean(this["UseSQLServer"]); - } - set - { - this["UseSQLServer"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string SQLHost - { - get - { - return System.Convert.ToString(this["SQLHost"]); - } - set - { - this["SQLHost"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string SQLUser - { - get - { - return System.Convert.ToString(this["SQLUser"]); - } - set - { - this["SQLUser"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string SQLPass - { - get - { - return System.Convert.ToString(this["SQLPass"]); - } - set - { - this["SQLPass"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultCacheBitmaps - { - get - { - return System.Convert.ToBoolean(this["InhDefaultCacheBitmaps"]); - } - set - { - this["InhDefaultCacheBitmaps"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultColors - { - get - { - return System.Convert.ToBoolean(this["InhDefaultColors"]); - } - set - { - this["InhDefaultColors"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultDescription - { - get - { - return System.Convert.ToBoolean(this["InhDefaultDescription"]); - } - set - { - this["InhDefaultDescription"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultDisplayThemes - { - get - { - return System.Convert.ToBoolean(this["InhDefaultDisplayThemes"]); - } - set - { - this["InhDefaultDisplayThemes"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultDisplayWallpaper - { - get - { - return System.Convert.ToBoolean(this["InhDefaultDisplayWallpaper"]); - } - set - { - this["InhDefaultDisplayWallpaper"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultDomain - { - get - { - return System.Convert.ToBoolean(this["InhDefaultDomain"]); - } - set - { - this["InhDefaultDomain"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultIcon - { - get - { - return System.Convert.ToBoolean(this["InhDefaultIcon"]); - } - set - { - this["InhDefaultIcon"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultPassword - { - get - { - return System.Convert.ToBoolean(this["InhDefaultPassword"]); - } - set - { - this["InhDefaultPassword"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultPort - { - get - { - return System.Convert.ToBoolean(this["InhDefaultPort"]); - } - set - { - this["InhDefaultPort"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultProtocol - { - get - { - return System.Convert.ToBoolean(this["InhDefaultProtocol"]); - } - set - { - this["InhDefaultProtocol"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultPuttySession - { - get - { - return System.Convert.ToBoolean(this["InhDefaultPuttySession"]); - } - set - { - this["InhDefaultPuttySession"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRedirectDiskDrives - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRedirectDiskDrives"]); - } - set - { - this["InhDefaultRedirectDiskDrives"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRedirectKeys - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRedirectKeys"]); - } - set - { - this["InhDefaultRedirectKeys"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRedirectPorts - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRedirectPorts"]); - } - set - { - this["InhDefaultRedirectPorts"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRedirectPrinters - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRedirectPrinters"]); - } - set - { - this["InhDefaultRedirectPrinters"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRedirectSmartCards - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRedirectSmartCards"]); - } - set - { - this["InhDefaultRedirectSmartCards"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRedirectSound - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRedirectSound"]); - } - set - { - this["InhDefaultRedirectSound"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultResolution - { - get - { - return System.Convert.ToBoolean(this["InhDefaultResolution"]); - } - set - { - this["InhDefaultResolution"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultUseConsoleSession - { - get - { - return System.Convert.ToBoolean(this["InhDefaultUseConsoleSession"]); - } - set - { - this["InhDefaultUseConsoleSession"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultUsername - { - get - { - return System.Convert.ToBoolean(this["InhDefaultUsername"]); - } - set - { - this["InhDefaultUsername"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultPanel - { - get - { - return System.Convert.ToBoolean(this["InhDefaultPanel"]); - } - set - { - this["InhDefaultPanel"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("EncrBasic")]public string ConDefaultICAEncryptionStrength - { - get - { - return System.Convert.ToString(this["ConDefaultICAEncryptionStrength"]); - } - set - { - this["ConDefaultICAEncryptionStrength"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultICAEncryptionStrength - { - get - { - return System.Convert.ToBoolean(this["InhDefaultICAEncryptionStrength"]); - } - set - { - this["InhDefaultICAEncryptionStrength"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultPreExtApp - { - get - { - return System.Convert.ToString(this["ConDefaultPreExtApp"]); - } - set - { - this["ConDefaultPreExtApp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultPostExtApp - { - get - { - return System.Convert.ToString(this["ConDefaultPostExtApp"]); - } - set - { - this["ConDefaultPostExtApp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultPreExtApp - { - get - { - return System.Convert.ToBoolean(this["InhDefaultPreExtApp"]); - } - set - { - this["InhDefaultPreExtApp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultPostExtApp - { - get - { - return System.Convert.ToBoolean(this["InhDefaultPostExtApp"]); - } - set - { - this["InhDefaultPostExtApp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool SetHostnameLikeDisplayName - { - get - { - return System.Convert.ToBoolean(this["SetHostnameLikeDisplayName"]); - } - set - { - this["SetHostnameLikeDisplayName"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool DoubleClickOnTabClosesIt - { - get - { - return System.Convert.ToBoolean(this["DoubleClickOnTabClosesIt"]); - } - set - { - this["DoubleClickOnTabClosesIt"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ReconnectOnDisconnect - { - get - { - return System.Convert.ToBoolean(this["ReconnectOnDisconnect"]); - } - set - { - this["ReconnectOnDisconnect"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool AlwaysShowPanelSelectionDlg - { - get - { - return System.Convert.ToBoolean(this["AlwaysShowPanelSelectionDlg"]); - } - set - { - this["AlwaysShowPanelSelectionDlg"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("AuthVNC")]public string ConDefaultVNCAuthMode - { - get - { - return System.Convert.ToString(this["ConDefaultVNCAuthMode"]); - } - set - { - this["ConDefaultVNCAuthMode"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("ColNormal")]public string ConDefaultVNCColors - { - get - { - return System.Convert.ToString(this["ConDefaultVNCColors"]); - } - set - { - this["ConDefaultVNCColors"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("SmartSAspect")]public string ConDefaultVNCSmartSizeMode - { - get - { - return System.Convert.ToString(this["ConDefaultVNCSmartSizeMode"]); - } - set - { - this["ConDefaultVNCSmartSizeMode"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultVNCViewOnly - { - get - { - return System.Convert.ToBoolean(this["ConDefaultVNCViewOnly"]); - } - set - { - this["ConDefaultVNCViewOnly"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("CompNone")]public string ConDefaultVNCCompression - { - get - { - return System.Convert.ToString(this["ConDefaultVNCCompression"]); - } - set - { - this["ConDefaultVNCCompression"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("EncHextile")]public string ConDefaultVNCEncoding - { - get - { - return System.Convert.ToString(this["ConDefaultVNCEncoding"]); - } - set - { - this["ConDefaultVNCEncoding"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultVNCProxyIP - { - get - { - return System.Convert.ToString(this["ConDefaultVNCProxyIP"]); - } - set - { - this["ConDefaultVNCProxyIP"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultVNCProxyPassword - { - get - { - return System.Convert.ToString(this["ConDefaultVNCProxyPassword"]); - } - set - { - this["ConDefaultVNCProxyPassword"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("0")]public int ConDefaultVNCProxyPort - { - get - { - return System.Convert.ToInt32(this["ConDefaultVNCProxyPort"]); - } - set - { - this["ConDefaultVNCProxyPort"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("ProxyNone")]public string ConDefaultVNCProxyType - { - get - { - return System.Convert.ToString(this["ConDefaultVNCProxyType"]); - } - set - { - this["ConDefaultVNCProxyType"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultVNCProxyUsername - { - get - { - return System.Convert.ToString(this["ConDefaultVNCProxyUsername"]); - } - set - { - this["ConDefaultVNCProxyUsername"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCAuthMode - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCAuthMode"]); - } - set - { - this["InhDefaultVNCAuthMode"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCColors - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCColors"]); - } - set - { - this["InhDefaultVNCColors"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCSmartSizeMode - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCSmartSizeMode"]); - } - set - { - this["InhDefaultVNCSmartSizeMode"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCViewOnly - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCViewOnly"]); - } - set - { - this["InhDefaultVNCViewOnly"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCCompression - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCCompression"]); - } - set - { - this["InhDefaultVNCCompression"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCEncoding - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCEncoding"]); - } - set - { - this["InhDefaultVNCEncoding"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCProxyIP - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCProxyIP"]); - } - set - { - this["InhDefaultVNCProxyIP"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCProxyPassword - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCProxyPassword"]); - } - set - { - this["InhDefaultVNCProxyPassword"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCProxyPort - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCProxyPort"]); - } - set - { - this["InhDefaultVNCProxyPort"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCProxyType - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCProxyType"]); - } - set - { - this["InhDefaultVNCProxyType"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultVNCProxyUsername - { - get - { - return System.Convert.ToBoolean(this["InhDefaultVNCProxyUsername"]); - } - set - { - this["InhDefaultVNCProxyUsername"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool MinimizeToTray - { - get - { - return System.Convert.ToBoolean(this["MinimizeToTray"]); - } - set - { - this["MinimizeToTray"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool SingleClickSwitchesToOpenConnection - { - get - { - return System.Convert.ToBoolean(this["SingleClickSwitchesToOpenConnection"]); - } - set - { - this["SingleClickSwitchesToOpenConnection"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("NoAuth")]public string ConDefaultRDPAuthenticationLevel - { - get - { - return System.Convert.ToString(this["ConDefaultRDPAuthenticationLevel"]); - } - set - { - this["ConDefaultRDPAuthenticationLevel"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRDPAuthenticationLevel - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRDPAuthenticationLevel"]); - } - set - { - this["InhDefaultRDPAuthenticationLevel"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("5500")]public int UVNCSCPort - { - get - { - return System.Convert.ToInt32(this["UVNCSCPort"]); - } - set - { - this["UVNCSCPort"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool StartupComponentsCheck - { - get - { - return System.Convert.ToBoolean(this["StartupComponentsCheck"]); - } - set - { - this["StartupComponentsCheck"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string XULRunnerPath - { - get - { - return System.Convert.ToString(this["XULRunnerPath"]); - } - set - { - this["XULRunnerPath"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("IE")]public string ConDefaultRenderingEngine - { - get - { - return System.Convert.ToString(this["ConDefaultRenderingEngine"]); - } - set - { - this["ConDefaultRenderingEngine"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRenderingEngine - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRenderingEngine"]); - } - set - { - this["InhDefaultRenderingEngine"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultMacAddress - { - get - { - return System.Convert.ToString(this["ConDefaultMacAddress"]); - } - set - { - this["ConDefaultMacAddress"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultMacAddress - { - get - { - return System.Convert.ToBoolean(this["InhDefaultMacAddress"]); - } - set - { - this["InhDefaultMacAddress"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool EncryptCompleteConnectionsFile - { - get - { - return System.Convert.ToBoolean(this["EncryptCompleteConnectionsFile"]); - } - set - { - this["EncryptCompleteConnectionsFile"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultUserField - { - get - { - return System.Convert.ToString(this["ConDefaultUserField"]); - } - set - { - this["ConDefaultUserField"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultUserField - { - get - { - return System.Convert.ToBoolean(this["InhDefaultUserField"]); - } - set - { - this["InhDefaultUserField"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultExtApp - { - get - { - return System.Convert.ToString(this["ConDefaultExtApp"]); - } - set - { - this["ConDefaultExtApp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultExtApp - { - get - { - return System.Convert.ToBoolean(this["InhDefaultExtApp"]); - } - set - { - this["InhDefaultExtApp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string LastAnnouncement - { - get - { - return System.Convert.ToString(this["LastAnnouncement"]); - } - set - { - this["LastAnnouncement"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool CheckForUpdatesAsked - { - get - { - return System.Convert.ToBoolean(this["CheckForUpdatesAsked"]); - } - set - { - this["CheckForUpdatesAsked"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("7")]public int CheckForUpdatesFrequencyDays - { - get - { - return System.Convert.ToInt32(this["CheckForUpdatesFrequencyDays"]); - } - set - { - this["CheckForUpdatesFrequencyDays"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("1980-01-01")]public DateTime CheckForUpdatesLastCheck - { - get - { - return System.Convert.ToDateTime(this["CheckForUpdatesLastCheck"]); - } - set - { - this["CheckForUpdatesLastCheck"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool UpdatePending - { - get - { - return System.Convert.ToBoolean(this["UpdatePending"]); - } - set - { - this["UpdatePending"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("Never")]public string ConDefaultRDGatewayUsageMethod - { - get - { - return System.Convert.ToString(this["ConDefaultRDGatewayUsageMethod"]); - } - set - { - this["ConDefaultRDGatewayUsageMethod"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("Yes")]public string ConDefaultRDGatewayUseConnectionCredentials - { - get - { - return System.Convert.ToString(this["ConDefaultRDGatewayUseConnectionCredentials"]); - } - set - { - this["ConDefaultRDGatewayUseConnectionCredentials"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("mRemoteNG")]public string ConDefaultIcon - { - get - { - return System.Convert.ToString(this["ConDefaultIcon"]); - } - set - { - this["ConDefaultIcon"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRDGatewayUsageMethod - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRDGatewayUsageMethod"]); - } - set - { - this["InhDefaultRDGatewayUsageMethod"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRDGatewayHostname - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRDGatewayHostname"]); - } - set - { - this["InhDefaultRDGatewayHostname"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRDGatewayUsername - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRDGatewayUsername"]); - } - set - { - this["InhDefaultRDGatewayUsername"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRDGatewayPassword - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRDGatewayPassword"]); - } - set - { - this["InhDefaultRDGatewayPassword"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRDGatewayDomain - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRDGatewayDomain"]); - } - set - { - this["InhDefaultRDGatewayDomain"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultRDGatewayUseConnectionCredentials - { - get - { - return System.Convert.ToBoolean(this["InhDefaultRDGatewayUseConnectionCredentials"]); - } - set - { - this["InhDefaultRDGatewayUseConnectionCredentials"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("5")]public int RdpReconnectionCount - { - get - { - return System.Convert.ToInt32(this["RdpReconnectionCount"]); - } - set - { - this["RdpReconnectionCount"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string OverrideUICulture - { - get - { - return System.Convert.ToString(this["OverrideUICulture"]); - } - set - { - this["OverrideUICulture"] = value; - } - } - -[global::System.Configuration.ApplicationScopedSettingAttribute(), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW")]public string SupportedUICultures - { - get - { - return System.Convert.ToString(this["SupportedUICultures"]); - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultRDGatewayHostname - { - get - { - return System.Convert.ToString(this["ConDefaultRDGatewayHostname"]); - } - set - { - this["ConDefaultRDGatewayHostname"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultRDGatewayUsername - { - get - { - return System.Convert.ToString(this["ConDefaultRDGatewayUsername"]); - } - set - { - this["ConDefaultRDGatewayUsername"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultRDGatewayPassword - { - get - { - return System.Convert.ToString(this["ConDefaultRDGatewayPassword"]); - } - set - { - this["ConDefaultRDGatewayPassword"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultRDGatewayDomain - { - get - { - return System.Convert.ToString(this["ConDefaultRDGatewayDomain"]); - } - set - { - this["ConDefaultRDGatewayDomain"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultEnableFontSmoothing - { - get - { - return System.Convert.ToBoolean(this["ConDefaultEnableFontSmoothing"]); - } - set - { - this["ConDefaultEnableFontSmoothing"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultEnableFontSmoothing - { - get - { - return System.Convert.ToBoolean(this["InhDefaultEnableFontSmoothing"]); - } - set - { - this["InhDefaultEnableFontSmoothing"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool ConDefaultEnableDesktopComposition - { - get - { - return System.Convert.ToBoolean(this["ConDefaultEnableDesktopComposition"]); - } - set - { - this["ConDefaultEnableDesktopComposition"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultEnableDesktopComposition - { - get - { - return System.Convert.ToBoolean(this["InhDefaultEnableDesktopComposition"]); - } - set - { - this["InhDefaultEnableDesktopComposition"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("4")]public int ConfirmCloseConnection - { - get - { - return System.Convert.ToInt32(this["ConfirmCloseConnection"]); - } - set - { - this["ConfirmCloseConnection"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute()]public global::System.Drawing.Size MainFormRestoreSize - { - get - { - return ((global::System.Drawing.Size) (this["MainFormRestoreSize"])); - } - set - { - this["MainFormRestoreSize"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute()]public global::System.Drawing.Point MainFormRestoreLocation - { - get - { - return ((global::System.Drawing.Point) (this["MainFormRestoreLocation"])); - } - set - { - this["MainFormRestoreLocation"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("mRemoteNG")]public string SQLDatabaseName - { - get - { - return System.Convert.ToString(this["SQLDatabaseName"]); - } - set - { - this["SQLDatabaseName"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("10"), -global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]public int BackupFileKeepCount - { - get - { - return System.Convert.ToInt32(this["BackupFileKeepCount"]); - } - set - { - this["BackupFileKeepCount"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("{0}.{1:yyyyMMdd-HHmmssffff}.backup"), -global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]public string BackupFileNameFormat - { - get - { - return System.Convert.ToString(this["BackupFileNameFormat"]); - } - set - { - this["BackupFileNameFormat"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultUseCredSsp - { - get - { - return System.Convert.ToBoolean(this["InhDefaultUseCredSsp"]); - } - set - { - this["InhDefaultUseCredSsp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool ConDefaultUseCredSsp - { - get - { - return System.Convert.ToBoolean(this["ConDefaultUseCredSsp"]); - } - set - { - this["ConDefaultUseCredSsp"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False"), -global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]public bool AlwaysShowPanelTabs - { - get - { - return System.Convert.ToBoolean(this["AlwaysShowPanelTabs"]); - } - set - { - this["AlwaysShowPanelTabs"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False"), -global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]public bool IdentifyQuickConnectTabs - { - get - { - return System.Convert.ToBoolean(this["IdentifyQuickConnectTabs"]); - } - set - { - this["IdentifyQuickConnectTabs"] = value; - } - } - -[global::System.Configuration.ApplicationScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("release")]public string UpdateChannel - { - get - { - return System.Convert.ToString(this["UpdateChannel"]); - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ThemeName - { - get - { - return System.Convert.ToString(this["ThemeName"]); - } - set - { - this["ThemeName"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool ShowConfigHelpText - { - get - { - return System.Convert.ToBoolean(this["ShowConfigHelpText"]); - } - set - { - this["ShowConfigHelpText"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string PuttySavedSessionsName - { - get - { - return System.Convert.ToString(this["PuttySavedSessionsName"]); - } - set - { - this["PuttySavedSessionsName"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string PuttySavedSessionsPanel - { - get - { - return System.Convert.ToString(this["PuttySavedSessionsPanel"]); - } - set - { - this["PuttySavedSessionsPanel"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool CompatibilityWarnLenovoAutoScrollUtility - { - get - { - return System.Convert.ToBoolean(this["CompatibilityWarnLenovoAutoScrollUtility"]); - } - set - { - this["CompatibilityWarnLenovoAutoScrollUtility"] = value; - } - } - -[global::System.Configuration.ApplicationScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("https://update.mremoteng.org/announcement.txt")]public string AnnouncementAddress - { - get - { - return System.Convert.ToString(this["AnnouncementAddress"]); - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("https://update.mremoteng.org/")]public string UpdateAddress - { - get - { - return System.Convert.ToString(this["UpdateAddress"]); - } - set - { - this["UpdateAddress"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("")]public string ConDefaultLoadBalanceInfo - { - get - { - return System.Convert.ToString(this["ConDefaultLoadBalanceInfo"]); - } - set - { - this["ConDefaultLoadBalanceInfo"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("True")]public bool ConDefaultAutomaticResize - { - get - { - return System.Convert.ToBoolean(this["ConDefaultAutomaticResize"]); - } - set - { - this["ConDefaultAutomaticResize"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultLoadBalanceInfo - { - get - { - return System.Convert.ToBoolean(this["InhDefaultLoadBalanceInfo"]); - } - set - { - this["InhDefaultLoadBalanceInfo"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("False")]public bool InhDefaultAutomaticResize - { - get - { - return System.Convert.ToBoolean(this["InhDefaultAutomaticResize"]); - } - set - { - this["InhDefaultAutomaticResize"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("RDP"), -global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]public string QuickConnectProtocol - { - get - { - return System.Convert.ToString(this["QuickConnectProtocol"]); - } - set - { - this["QuickConnectProtocol"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("9/9, 33/8"), -global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]public string KeysPreviousTab - { - get - { - return System.Convert.ToString(this["KeysPreviousTab"]); - } - set - { - this["KeysPreviousTab"] = value; - } - } - -[global::System.Configuration.UserScopedSettingAttribute(), -global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider)), -global::System.Diagnostics.DebuggerNonUserCodeAttribute(), -global::System.Configuration.DefaultSettingValueAttribute("9/8, 34/8"), -global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]public string KeysNextTab - { - get - { - return System.Convert.ToString(this["KeysNextTab"]); - } - set - { - this["KeysNextTab"] = value; - } - } - } - } - - namespace My - { - - [global::Microsoft.VisualBasic.HideModuleNameAttribute(), - global::System.Diagnostics.DebuggerNonUserCodeAttribute(), - global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]internal sealed class MySettingsProperty - { - -[global::System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")]internal static global::mRemoteNG.My.Settings Settings - { - get - { - return global::mRemoteNG.My.Settings.Default; - } - } - } - } - +namespace mRemoteNG.My { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Drawing.Point MainFormLocation { + get { + return ((global::System.Drawing.Point)(this["MainFormLocation"])); + } + set { + this["MainFormLocation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Drawing.Size MainFormSize { + get { + return ((global::System.Drawing.Size)(this["MainFormSize"])); + } + set { + this["MainFormSize"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Normal")] + public global::System.Windows.Forms.FormWindowState MainFormState { + get { + return ((global::System.Windows.Forms.FormWindowState)(this["MainFormState"])); + } + set { + this["MainFormState"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool MainFormKiosk { + get { + return ((bool)(this["MainFormKiosk"])); + } + set { + this["MainFormKiosk"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool DoUpgrade { + get { + return ((bool)(this["DoUpgrade"])); + } + set { + this["DoUpgrade"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string CustomPuttyPath { + get { + return ((string)(this["CustomPuttyPath"])); + } + set { + this["CustomPuttyPath"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ShowNoMessageBoxes { + get { + return ((bool)(this["ShowNoMessageBoxes"])); + } + set { + this["ShowNoMessageBoxes"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool SwitchToMCOnInformation { + get { + return ((bool)(this["SwitchToMCOnInformation"])); + } + set { + this["SwitchToMCOnInformation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool SwitchToMCOnWarning { + get { + return ((bool)(this["SwitchToMCOnWarning"])); + } + set { + this["SwitchToMCOnWarning"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool SwitchToMCOnError { + get { + return ((bool)(this["SwitchToMCOnError"])); + } + set { + this["SwitchToMCOnError"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool AutomaticallyGetSessionInfo { + get { + return ((bool)(this["AutomaticallyGetSessionInfo"])); + } + set { + this["AutomaticallyGetSessionInfo"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool LoadConsFromCustomLocation { + get { + return ((bool)(this["LoadConsFromCustomLocation"])); + } + set { + this["LoadConsFromCustomLocation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string CustomConsPath { + get { + return ((string)(this["CustomConsPath"])); + } + set { + this["CustomConsPath"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool SaveConsOnExit { + get { + return ((bool)(this["SaveConsOnExit"])); + } + set { + this["SaveConsOnExit"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool CheckForUpdatesOnStartup { + get { + return ((bool)(this["CheckForUpdatesOnStartup"])); + } + set { + this["CheckForUpdatesOnStartup"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ShowDescriptionTooltipsInTree { + get { + return ((bool)(this["ShowDescriptionTooltipsInTree"])); + } + set { + this["ShowDescriptionTooltipsInTree"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ShowSystemTrayIcon { + get { + return ((bool)(this["ShowSystemTrayIcon"])); + } + set { + this["ShowSystemTrayIcon"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool OpenTabsRightOfSelected { + get { + return ((bool)(this["OpenTabsRightOfSelected"])); + } + set { + this["OpenTabsRightOfSelected"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ShowLogonInfoOnTabs { + get { + return ((bool)(this["ShowLogonInfoOnTabs"])); + } + set { + this["ShowLogonInfoOnTabs"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool SingleClickOnConnectionOpensIt { + get { + return ((bool)(this["SingleClickOnConnectionOpensIt"])); + } + set { + this["SingleClickOnConnectionOpensIt"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("noinfo")] + public string EmptyCredentials { + get { + return ((string)(this["EmptyCredentials"])); + } + set { + this["EmptyCredentials"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string DefaultUsername { + get { + return ((string)(this["DefaultUsername"])); + } + set { + this["DefaultUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string DefaultPassword { + get { + return ((string)(this["DefaultPassword"])); + } + set { + this["DefaultPassword"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string DefaultDomain { + get { + return ((string)(this["DefaultDomain"])); + } + set { + this["DefaultDomain"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool WriteLogFile { + get { + return ((bool)(this["WriteLogFile"])); + } + set { + this["WriteLogFile"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool UseCustomPuttyPath { + get { + return ((bool)(this["UseCustomPuttyPath"])); + } + set { + this["UseCustomPuttyPath"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ShowCompleteConsPathInTitle { + get { + return ((bool)(this["ShowCompleteConsPathInTitle"])); + } + set { + this["ShowCompleteConsPathInTitle"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool FirstStart { + get { + return ((bool)(this["FirstStart"])); + } + set { + this["FirstStart"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ShowProtocolOnTabs { + get { + return ((bool)(this["ShowProtocolOnTabs"])); + } + set { + this["ShowProtocolOnTabs"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ResetPanels { + get { + return ((bool)(this["ResetPanels"])); + } + set { + this["ResetPanels"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool UpdateUseProxy { + get { + return ((bool)(this["UpdateUseProxy"])); + } + set { + this["UpdateUseProxy"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string UpdateProxyAddress { + get { + return ((string)(this["UpdateProxyAddress"])); + } + set { + this["UpdateProxyAddress"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("80")] + public int UpdateProxyPort { + get { + return ((int)(this["UpdateProxyPort"])); + } + set { + this["UpdateProxyPort"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool UpdateProxyUseAuthentication { + get { + return ((bool)(this["UpdateProxyUseAuthentication"])); + } + set { + this["UpdateProxyUseAuthentication"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string UpdateProxyAuthUser { + get { + return ((string)(this["UpdateProxyAuthUser"])); + } + set { + this["UpdateProxyAuthUser"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string UpdateProxyAuthPass { + get { + return ((string)(this["UpdateProxyAuthPass"])); + } + set { + this["UpdateProxyAuthPass"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultDescription { + get { + return ((string)(this["ConDefaultDescription"])); + } + set { + this["ConDefaultDescription"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultUsername { + get { + return ((string)(this["ConDefaultUsername"])); + } + set { + this["ConDefaultUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultPassword { + get { + return ((string)(this["ConDefaultPassword"])); + } + set { + this["ConDefaultPassword"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultDomain { + get { + return ((string)(this["ConDefaultDomain"])); + } + set { + this["ConDefaultDomain"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("RDP")] + public string ConDefaultProtocol { + get { + return ((string)(this["ConDefaultProtocol"])); + } + set { + this["ConDefaultProtocol"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Default Settings")] + public string ConDefaultPuttySession { + get { + return ((string)(this["ConDefaultPuttySession"])); + } + set { + this["ConDefaultPuttySession"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultUseConsoleSession { + get { + return ((bool)(this["ConDefaultUseConsoleSession"])); + } + set { + this["ConDefaultUseConsoleSession"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("FitToWindow")] + public string ConDefaultResolution { + get { + return ((string)(this["ConDefaultResolution"])); + } + set { + this["ConDefaultResolution"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Colors16Bit")] + public string ConDefaultColors { + get { + return ((string)(this["ConDefaultColors"])); + } + set { + this["ConDefaultColors"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ConDefaultCacheBitmaps { + get { + return ((bool)(this["ConDefaultCacheBitmaps"])); + } + set { + this["ConDefaultCacheBitmaps"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultDisplayWallpaper { + get { + return ((bool)(this["ConDefaultDisplayWallpaper"])); + } + set { + this["ConDefaultDisplayWallpaper"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultDisplayThemes { + get { + return ((bool)(this["ConDefaultDisplayThemes"])); + } + set { + this["ConDefaultDisplayThemes"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultRedirectKeys { + get { + return ((bool)(this["ConDefaultRedirectKeys"])); + } + set { + this["ConDefaultRedirectKeys"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultRedirectDiskDrives { + get { + return ((bool)(this["ConDefaultRedirectDiskDrives"])); + } + set { + this["ConDefaultRedirectDiskDrives"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultRedirectPrinters { + get { + return ((bool)(this["ConDefaultRedirectPrinters"])); + } + set { + this["ConDefaultRedirectPrinters"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultRedirectPorts { + get { + return ((bool)(this["ConDefaultRedirectPorts"])); + } + set { + this["ConDefaultRedirectPorts"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultRedirectSmartCards { + get { + return ((bool)(this["ConDefaultRedirectSmartCards"])); + } + set { + this["ConDefaultRedirectSmartCards"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("DoNotPlay")] + public string ConDefaultRedirectSound { + get { + return ((string)(this["ConDefaultRedirectSound"])); + } + set { + this["ConDefaultRedirectSound"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("2")] + public int MaxPuttyWaitTime { + get { + return ((int)(this["MaxPuttyWaitTime"])); + } + set { + this["MaxPuttyWaitTime"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool SingleInstance { + get { + return ((bool)(this["SingleInstance"])); + } + set { + this["SingleInstance"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool OpenConsFromLastSession { + get { + return ((bool)(this["OpenConsFromLastSession"])); + } + set { + this["OpenConsFromLastSession"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool NoReconnect { + get { + return ((bool)(this["NoReconnect"])); + } + set { + this["NoReconnect"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public int AutoSaveEveryMinutes { + get { + return ((int)(this["AutoSaveEveryMinutes"])); + } + set { + this["AutoSaveEveryMinutes"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ExtAppsTBVisible { + get { + return ((bool)(this["ExtAppsTBVisible"])); + } + set { + this["ExtAppsTBVisible"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ExtAppsTBShowText { + get { + return ((bool)(this["ExtAppsTBShowText"])); + } + set { + this["ExtAppsTBShowText"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0, 0")] + public global::System.Drawing.Point ExtAppsTBLocation { + get { + return ((global::System.Drawing.Point)(this["ExtAppsTBLocation"])); + } + set { + this["ExtAppsTBLocation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Bottom")] + public string ExtAppsTBParentDock { + get { + return ((string)(this["ExtAppsTBParentDock"])); + } + set { + this["ExtAppsTBParentDock"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool QuickyTBVisible { + get { + return ((bool)(this["QuickyTBVisible"])); + } + set { + this["QuickyTBVisible"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("3, 24")] + public global::System.Drawing.Point QuickyTBLocation { + get { + return ((global::System.Drawing.Point)(this["QuickyTBLocation"])); + } + set { + this["QuickyTBLocation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Top")] + public string QuickyTBParentDock { + get { + return ((string)(this["QuickyTBParentDock"])); + } + set { + this["QuickyTBParentDock"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ResetToolbars { + get { + return ((bool)(this["ResetToolbars"])); + } + set { + this["ResetToolbars"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool UseSQLServer { + get { + return ((bool)(this["UseSQLServer"])); + } + set { + this["UseSQLServer"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string SQLHost { + get { + return ((string)(this["SQLHost"])); + } + set { + this["SQLHost"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string SQLUser { + get { + return ((string)(this["SQLUser"])); + } + set { + this["SQLUser"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string SQLPass { + get { + return ((string)(this["SQLPass"])); + } + set { + this["SQLPass"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultCacheBitmaps { + get { + return ((bool)(this["InhDefaultCacheBitmaps"])); + } + set { + this["InhDefaultCacheBitmaps"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultColors { + get { + return ((bool)(this["InhDefaultColors"])); + } + set { + this["InhDefaultColors"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultDescription { + get { + return ((bool)(this["InhDefaultDescription"])); + } + set { + this["InhDefaultDescription"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultDisplayThemes { + get { + return ((bool)(this["InhDefaultDisplayThemes"])); + } + set { + this["InhDefaultDisplayThemes"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultDisplayWallpaper { + get { + return ((bool)(this["InhDefaultDisplayWallpaper"])); + } + set { + this["InhDefaultDisplayWallpaper"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultDomain { + get { + return ((bool)(this["InhDefaultDomain"])); + } + set { + this["InhDefaultDomain"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultIcon { + get { + return ((bool)(this["InhDefaultIcon"])); + } + set { + this["InhDefaultIcon"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultPassword { + get { + return ((bool)(this["InhDefaultPassword"])); + } + set { + this["InhDefaultPassword"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultPort { + get { + return ((bool)(this["InhDefaultPort"])); + } + set { + this["InhDefaultPort"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultProtocol { + get { + return ((bool)(this["InhDefaultProtocol"])); + } + set { + this["InhDefaultProtocol"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultPuttySession { + get { + return ((bool)(this["InhDefaultPuttySession"])); + } + set { + this["InhDefaultPuttySession"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRedirectDiskDrives { + get { + return ((bool)(this["InhDefaultRedirectDiskDrives"])); + } + set { + this["InhDefaultRedirectDiskDrives"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRedirectKeys { + get { + return ((bool)(this["InhDefaultRedirectKeys"])); + } + set { + this["InhDefaultRedirectKeys"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRedirectPorts { + get { + return ((bool)(this["InhDefaultRedirectPorts"])); + } + set { + this["InhDefaultRedirectPorts"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRedirectPrinters { + get { + return ((bool)(this["InhDefaultRedirectPrinters"])); + } + set { + this["InhDefaultRedirectPrinters"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRedirectSmartCards { + get { + return ((bool)(this["InhDefaultRedirectSmartCards"])); + } + set { + this["InhDefaultRedirectSmartCards"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRedirectSound { + get { + return ((bool)(this["InhDefaultRedirectSound"])); + } + set { + this["InhDefaultRedirectSound"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultResolution { + get { + return ((bool)(this["InhDefaultResolution"])); + } + set { + this["InhDefaultResolution"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultUseConsoleSession { + get { + return ((bool)(this["InhDefaultUseConsoleSession"])); + } + set { + this["InhDefaultUseConsoleSession"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultUsername { + get { + return ((bool)(this["InhDefaultUsername"])); + } + set { + this["InhDefaultUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultPanel { + get { + return ((bool)(this["InhDefaultPanel"])); + } + set { + this["InhDefaultPanel"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("EncrBasic")] + public string ConDefaultICAEncryptionStrength { + get { + return ((string)(this["ConDefaultICAEncryptionStrength"])); + } + set { + this["ConDefaultICAEncryptionStrength"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultICAEncryptionStrength { + get { + return ((bool)(this["InhDefaultICAEncryptionStrength"])); + } + set { + this["InhDefaultICAEncryptionStrength"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultPreExtApp { + get { + return ((string)(this["ConDefaultPreExtApp"])); + } + set { + this["ConDefaultPreExtApp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultPostExtApp { + get { + return ((string)(this["ConDefaultPostExtApp"])); + } + set { + this["ConDefaultPostExtApp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultPreExtApp { + get { + return ((bool)(this["InhDefaultPreExtApp"])); + } + set { + this["InhDefaultPreExtApp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultPostExtApp { + get { + return ((bool)(this["InhDefaultPostExtApp"])); + } + set { + this["InhDefaultPostExtApp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool SetHostnameLikeDisplayName { + get { + return ((bool)(this["SetHostnameLikeDisplayName"])); + } + set { + this["SetHostnameLikeDisplayName"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool DoubleClickOnTabClosesIt { + get { + return ((bool)(this["DoubleClickOnTabClosesIt"])); + } + set { + this["DoubleClickOnTabClosesIt"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ReconnectOnDisconnect { + get { + return ((bool)(this["ReconnectOnDisconnect"])); + } + set { + this["ReconnectOnDisconnect"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool AlwaysShowPanelSelectionDlg { + get { + return ((bool)(this["AlwaysShowPanelSelectionDlg"])); + } + set { + this["AlwaysShowPanelSelectionDlg"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("AuthVNC")] + public string ConDefaultVNCAuthMode { + get { + return ((string)(this["ConDefaultVNCAuthMode"])); + } + set { + this["ConDefaultVNCAuthMode"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("ColNormal")] + public string ConDefaultVNCColors { + get { + return ((string)(this["ConDefaultVNCColors"])); + } + set { + this["ConDefaultVNCColors"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("SmartSAspect")] + public string ConDefaultVNCSmartSizeMode { + get { + return ((string)(this["ConDefaultVNCSmartSizeMode"])); + } + set { + this["ConDefaultVNCSmartSizeMode"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultVNCViewOnly { + get { + return ((bool)(this["ConDefaultVNCViewOnly"])); + } + set { + this["ConDefaultVNCViewOnly"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("CompNone")] + public string ConDefaultVNCCompression { + get { + return ((string)(this["ConDefaultVNCCompression"])); + } + set { + this["ConDefaultVNCCompression"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("EncHextile")] + public string ConDefaultVNCEncoding { + get { + return ((string)(this["ConDefaultVNCEncoding"])); + } + set { + this["ConDefaultVNCEncoding"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultVNCProxyIP { + get { + return ((string)(this["ConDefaultVNCProxyIP"])); + } + set { + this["ConDefaultVNCProxyIP"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultVNCProxyPassword { + get { + return ((string)(this["ConDefaultVNCProxyPassword"])); + } + set { + this["ConDefaultVNCProxyPassword"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public int ConDefaultVNCProxyPort { + get { + return ((int)(this["ConDefaultVNCProxyPort"])); + } + set { + this["ConDefaultVNCProxyPort"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("ProxyNone")] + public string ConDefaultVNCProxyType { + get { + return ((string)(this["ConDefaultVNCProxyType"])); + } + set { + this["ConDefaultVNCProxyType"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultVNCProxyUsername { + get { + return ((string)(this["ConDefaultVNCProxyUsername"])); + } + set { + this["ConDefaultVNCProxyUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCAuthMode { + get { + return ((bool)(this["InhDefaultVNCAuthMode"])); + } + set { + this["InhDefaultVNCAuthMode"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCColors { + get { + return ((bool)(this["InhDefaultVNCColors"])); + } + set { + this["InhDefaultVNCColors"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCSmartSizeMode { + get { + return ((bool)(this["InhDefaultVNCSmartSizeMode"])); + } + set { + this["InhDefaultVNCSmartSizeMode"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCViewOnly { + get { + return ((bool)(this["InhDefaultVNCViewOnly"])); + } + set { + this["InhDefaultVNCViewOnly"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCCompression { + get { + return ((bool)(this["InhDefaultVNCCompression"])); + } + set { + this["InhDefaultVNCCompression"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCEncoding { + get { + return ((bool)(this["InhDefaultVNCEncoding"])); + } + set { + this["InhDefaultVNCEncoding"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCProxyIP { + get { + return ((bool)(this["InhDefaultVNCProxyIP"])); + } + set { + this["InhDefaultVNCProxyIP"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCProxyPassword { + get { + return ((bool)(this["InhDefaultVNCProxyPassword"])); + } + set { + this["InhDefaultVNCProxyPassword"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCProxyPort { + get { + return ((bool)(this["InhDefaultVNCProxyPort"])); + } + set { + this["InhDefaultVNCProxyPort"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCProxyType { + get { + return ((bool)(this["InhDefaultVNCProxyType"])); + } + set { + this["InhDefaultVNCProxyType"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultVNCProxyUsername { + get { + return ((bool)(this["InhDefaultVNCProxyUsername"])); + } + set { + this["InhDefaultVNCProxyUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool MinimizeToTray { + get { + return ((bool)(this["MinimizeToTray"])); + } + set { + this["MinimizeToTray"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool SingleClickSwitchesToOpenConnection { + get { + return ((bool)(this["SingleClickSwitchesToOpenConnection"])); + } + set { + this["SingleClickSwitchesToOpenConnection"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("NoAuth")] + public string ConDefaultRDPAuthenticationLevel { + get { + return ((string)(this["ConDefaultRDPAuthenticationLevel"])); + } + set { + this["ConDefaultRDPAuthenticationLevel"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRDPAuthenticationLevel { + get { + return ((bool)(this["InhDefaultRDPAuthenticationLevel"])); + } + set { + this["InhDefaultRDPAuthenticationLevel"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("5500")] + public int UVNCSCPort { + get { + return ((int)(this["UVNCSCPort"])); + } + set { + this["UVNCSCPort"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool StartupComponentsCheck { + get { + return ((bool)(this["StartupComponentsCheck"])); + } + set { + this["StartupComponentsCheck"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string XULRunnerPath { + get { + return ((string)(this["XULRunnerPath"])); + } + set { + this["XULRunnerPath"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("IE")] + public string ConDefaultRenderingEngine { + get { + return ((string)(this["ConDefaultRenderingEngine"])); + } + set { + this["ConDefaultRenderingEngine"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRenderingEngine { + get { + return ((bool)(this["InhDefaultRenderingEngine"])); + } + set { + this["InhDefaultRenderingEngine"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultMacAddress { + get { + return ((string)(this["ConDefaultMacAddress"])); + } + set { + this["ConDefaultMacAddress"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultMacAddress { + get { + return ((bool)(this["InhDefaultMacAddress"])); + } + set { + this["InhDefaultMacAddress"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool EncryptCompleteConnectionsFile { + get { + return ((bool)(this["EncryptCompleteConnectionsFile"])); + } + set { + this["EncryptCompleteConnectionsFile"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultUserField { + get { + return ((string)(this["ConDefaultUserField"])); + } + set { + this["ConDefaultUserField"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultUserField { + get { + return ((bool)(this["InhDefaultUserField"])); + } + set { + this["InhDefaultUserField"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultExtApp { + get { + return ((string)(this["ConDefaultExtApp"])); + } + set { + this["ConDefaultExtApp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultExtApp { + get { + return ((bool)(this["InhDefaultExtApp"])); + } + set { + this["InhDefaultExtApp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string LastAnnouncement { + get { + return ((string)(this["LastAnnouncement"])); + } + set { + this["LastAnnouncement"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool CheckForUpdatesAsked { + get { + return ((bool)(this["CheckForUpdatesAsked"])); + } + set { + this["CheckForUpdatesAsked"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("7")] + public int CheckForUpdatesFrequencyDays { + get { + return ((int)(this["CheckForUpdatesFrequencyDays"])); + } + set { + this["CheckForUpdatesFrequencyDays"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("1980-01-01")] + public global::System.DateTime CheckForUpdatesLastCheck { + get { + return ((global::System.DateTime)(this["CheckForUpdatesLastCheck"])); + } + set { + this["CheckForUpdatesLastCheck"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool UpdatePending { + get { + return ((bool)(this["UpdatePending"])); + } + set { + this["UpdatePending"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Never")] + public string ConDefaultRDGatewayUsageMethod { + get { + return ((string)(this["ConDefaultRDGatewayUsageMethod"])); + } + set { + this["ConDefaultRDGatewayUsageMethod"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Yes")] + public string ConDefaultRDGatewayUseConnectionCredentials { + get { + return ((string)(this["ConDefaultRDGatewayUseConnectionCredentials"])); + } + set { + this["ConDefaultRDGatewayUseConnectionCredentials"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("mRemoteNG")] + public string ConDefaultIcon { + get { + return ((string)(this["ConDefaultIcon"])); + } + set { + this["ConDefaultIcon"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRDGatewayUsageMethod { + get { + return ((bool)(this["InhDefaultRDGatewayUsageMethod"])); + } + set { + this["InhDefaultRDGatewayUsageMethod"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRDGatewayHostname { + get { + return ((bool)(this["InhDefaultRDGatewayHostname"])); + } + set { + this["InhDefaultRDGatewayHostname"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRDGatewayUsername { + get { + return ((bool)(this["InhDefaultRDGatewayUsername"])); + } + set { + this["InhDefaultRDGatewayUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRDGatewayPassword { + get { + return ((bool)(this["InhDefaultRDGatewayPassword"])); + } + set { + this["InhDefaultRDGatewayPassword"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRDGatewayDomain { + get { + return ((bool)(this["InhDefaultRDGatewayDomain"])); + } + set { + this["InhDefaultRDGatewayDomain"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultRDGatewayUseConnectionCredentials { + get { + return ((bool)(this["InhDefaultRDGatewayUseConnectionCredentials"])); + } + set { + this["InhDefaultRDGatewayUseConnectionCredentials"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("5")] + public int RdpReconnectionCount { + get { + return ((int)(this["RdpReconnectionCount"])); + } + set { + this["RdpReconnectionCount"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string OverrideUICulture { + get { + return ((string)(this["OverrideUICulture"])); + } + set { + this["OverrideUICulture"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW")] + public string SupportedUICultures { + get { + return ((string)(this["SupportedUICultures"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultRDGatewayHostname { + get { + return ((string)(this["ConDefaultRDGatewayHostname"])); + } + set { + this["ConDefaultRDGatewayHostname"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultRDGatewayUsername { + get { + return ((string)(this["ConDefaultRDGatewayUsername"])); + } + set { + this["ConDefaultRDGatewayUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultRDGatewayPassword { + get { + return ((string)(this["ConDefaultRDGatewayPassword"])); + } + set { + this["ConDefaultRDGatewayPassword"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultRDGatewayDomain { + get { + return ((string)(this["ConDefaultRDGatewayDomain"])); + } + set { + this["ConDefaultRDGatewayDomain"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultEnableFontSmoothing { + get { + return ((bool)(this["ConDefaultEnableFontSmoothing"])); + } + set { + this["ConDefaultEnableFontSmoothing"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultEnableFontSmoothing { + get { + return ((bool)(this["InhDefaultEnableFontSmoothing"])); + } + set { + this["InhDefaultEnableFontSmoothing"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ConDefaultEnableDesktopComposition { + get { + return ((bool)(this["ConDefaultEnableDesktopComposition"])); + } + set { + this["ConDefaultEnableDesktopComposition"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultEnableDesktopComposition { + get { + return ((bool)(this["InhDefaultEnableDesktopComposition"])); + } + set { + this["InhDefaultEnableDesktopComposition"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("4")] + public int ConfirmCloseConnection { + get { + return ((int)(this["ConfirmCloseConnection"])); + } + set { + this["ConfirmCloseConnection"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Drawing.Size MainFormRestoreSize { + get { + return ((global::System.Drawing.Size)(this["MainFormRestoreSize"])); + } + set { + this["MainFormRestoreSize"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Drawing.Point MainFormRestoreLocation { + get { + return ((global::System.Drawing.Point)(this["MainFormRestoreLocation"])); + } + set { + this["MainFormRestoreLocation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("mRemoteNG")] + public string SQLDatabaseName { + get { + return ((string)(this["SQLDatabaseName"])); + } + set { + this["SQLDatabaseName"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("10")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public int BackupFileKeepCount { + get { + return ((int)(this["BackupFileKeepCount"])); + } + set { + this["BackupFileKeepCount"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("{0}.{1:yyyyMMdd-HHmmssffff}.backup")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public string BackupFileNameFormat { + get { + return ((string)(this["BackupFileNameFormat"])); + } + set { + this["BackupFileNameFormat"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultUseCredSsp { + get { + return ((bool)(this["InhDefaultUseCredSsp"])); + } + set { + this["InhDefaultUseCredSsp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ConDefaultUseCredSsp { + get { + return ((bool)(this["ConDefaultUseCredSsp"])); + } + set { + this["ConDefaultUseCredSsp"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public bool AlwaysShowPanelTabs { + get { + return ((bool)(this["AlwaysShowPanelTabs"])); + } + set { + this["AlwaysShowPanelTabs"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public bool IdentifyQuickConnectTabs { + get { + return ((bool)(this["IdentifyQuickConnectTabs"])); + } + set { + this["IdentifyQuickConnectTabs"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("release")] + public string UpdateChannel { + get { + return ((string)(this["UpdateChannel"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ThemeName { + get { + return ((string)(this["ThemeName"])); + } + set { + this["ThemeName"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ShowConfigHelpText { + get { + return ((bool)(this["ShowConfigHelpText"])); + } + set { + this["ShowConfigHelpText"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string PuttySavedSessionsName { + get { + return ((string)(this["PuttySavedSessionsName"])); + } + set { + this["PuttySavedSessionsName"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string PuttySavedSessionsPanel { + get { + return ((string)(this["PuttySavedSessionsPanel"])); + } + set { + this["PuttySavedSessionsPanel"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool CompatibilityWarnLenovoAutoScrollUtility { + get { + return ((bool)(this["CompatibilityWarnLenovoAutoScrollUtility"])); + } + set { + this["CompatibilityWarnLenovoAutoScrollUtility"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("https://update.mremoteng.org/announcement.txt")] + public string AnnouncementAddress { + get { + return ((string)(this["AnnouncementAddress"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("https://update.mremoteng.org/")] + public string UpdateAddress { + get { + return ((string)(this["UpdateAddress"])); + } + set { + this["UpdateAddress"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConDefaultLoadBalanceInfo { + get { + return ((string)(this["ConDefaultLoadBalanceInfo"])); + } + set { + this["ConDefaultLoadBalanceInfo"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ConDefaultAutomaticResize { + get { + return ((bool)(this["ConDefaultAutomaticResize"])); + } + set { + this["ConDefaultAutomaticResize"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultLoadBalanceInfo { + get { + return ((bool)(this["InhDefaultLoadBalanceInfo"])); + } + set { + this["InhDefaultLoadBalanceInfo"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool InhDefaultAutomaticResize { + get { + return ((bool)(this["InhDefaultAutomaticResize"])); + } + set { + this["InhDefaultAutomaticResize"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("RDP")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public string QuickConnectProtocol { + get { + return ((string)(this["QuickConnectProtocol"])); + } + set { + this["QuickConnectProtocol"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("9/9, 33/8")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public string KeysPreviousTab { + get { + return ((string)(this["KeysPreviousTab"])); + } + set { + this["KeysPreviousTab"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("9/8, 34/8")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public string KeysNextTab { + get { + return ((string)(this["KeysNextTab"])); + } + set { + this["KeysNextTab"] = value; + } + } + } } diff --git a/mRemoteV1/CS/Properties/Settings.settings b/mRemoteV1/CS/Properties/Settings.settings index 4a04e1cfa..87647df89 100644 --- a/mRemoteV1/CS/Properties/Settings.settings +++ b/mRemoteV1/CS/Properties/Settings.settings @@ -1,5 +1,5 @@  - + diff --git a/mRemoteV1/CS/Root/PuttySessions.Info.cs b/mRemoteV1/CS/Root/PuttySessions.Info.cs index e111a127c..8630c4767 100644 --- a/mRemoteV1/CS/Root/PuttySessions.Info.cs +++ b/mRemoteV1/CS/Root/PuttySessions.Info.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,11 +8,8 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using mRemoteNG.My; using mRemoteNG.Tools; -//using mRemoteNG.Tools.LocalizedAttributes; namespace mRemoteNG.Root.PuttySessions @@ -25,7 +21,6 @@ namespace mRemoteNG.Root.PuttySessions // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. _name = Language.strPuttySavedSessionsRootName; _panel = My.Language.strGeneral; - } private string _name; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. @@ -47,7 +42,7 @@ namespace mRemoteNG.Root.PuttySessions { TreeNode.Text = value; } - Settings.PuttySavedSessionsName = value; + My.Settings.Default.PuttySavedSessionsName = value; } } @@ -68,7 +63,7 @@ namespace mRemoteNG.Root.PuttySessions return ; } _panel = value; - Settings.PuttySavedSessionsPanel = value; + My.Settings.Default.PuttySavedSessionsPanel = value; } } } diff --git a/mRemoteV1/CS/Root/Root.Info.cs b/mRemoteV1/CS/Root/Root.Info.cs index 12873da2c..8021d05b5 100644 --- a/mRemoteV1/CS/Root/Root.Info.cs +++ b/mRemoteV1/CS/Root/Root.Info.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,17 +8,16 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports using mRemoteNG.Tools; using System.ComponentModel; -//using mRemoteNG.Tools.LocalizedAttributes; namespace mRemoteNG.Root { - [DefaultProperty("Name")]public class Info + [DefaultProperty("Name")] + public class Info { -#region Constructors + #region Constructors public Info(RootType rootType) { // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. @@ -27,9 +25,9 @@ namespace mRemoteNG.Root Type = rootType; } -#endregion + #endregion -#region Public Properties + #region Public Properties private string _name; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. [LocalizedAttributes.LocalizedCategory("strCategoryDisplay", 1), Browsable(true), @@ -63,20 +61,23 @@ namespace mRemoteNG.Root TypeConverter(typeof(Tools.Misc.YesNoTypeConverter))] public bool Password { get; set; } - [Browsable(false)]public string PasswordString {get; set;} + [Browsable(false)] + public string PasswordString {get; set;} - [Browsable(false)]public RootType Type {get; set;} + [Browsable(false)] + public RootType Type {get; set;} - [Browsable(false)]public TreeNode TreeNode {get; set;} -#endregion + [Browsable(false)] + public TreeNode TreeNode {get; set;} + #endregion -#region Public Enumerations + #region Public Enumerations public enum RootType { Connection, Credential, PuttySessions } -#endregion + #endregion } } diff --git a/mRemoteV1/CS/Security/Security.Save.cs b/mRemoteV1/CS/Security/Security.Save.cs index a36d88692..028ee949f 100644 --- a/mRemoteV1/CS/Security/Security.Save.cs +++ b/mRemoteV1/CS/Security/Security.Save.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,74 +8,72 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - namespace mRemoteNG.Security { public class Save + { + public Save(bool DisableEverything = false) { - public Save(bool DisableEverything = false) + if (DisableEverything == false) { - if (DisableEverything == false) - { - _Username = true; - _Password = true; - _Domain = true; - _Inheritance = true; - } - } - - private bool _Username; -public bool Username - { - get - { - return _Username; - } - set - { - _Username = value; - } - } - - private bool _Password; -public bool Password - { - get - { - return _Password; - } - set - { - _Password = value; - } - } - - private bool _Domain; -public bool Domain - { - get - { - return _Domain; - } - set - { - _Domain = value; - } - } - - private bool _Inheritance; -public bool Inheritance - { - get - { - return _Inheritance; - } - set - { - _Inheritance = value; - } + _Username = true; + _Password = true; + _Domain = true; + _Inheritance = true; } } + + private bool _Username; + public bool Username + { + get + { + return _Username; + } + set + { + _Username = value; + } + } + + private bool _Password; + public bool Password + { + get + { + return _Password; + } + set + { + _Password = value; + } + } + + private bool _Domain; + public bool Domain + { + get + { + return _Domain; + } + set + { + _Domain = value; + } + } + + private bool _Inheritance; + public bool Inheritance + { + get + { + return _Inheritance; + } + set + { + _Inheritance = value; + } + } + } } diff --git a/mRemoteV1/CS/Settings.cs b/mRemoteV1/CS/Settings.cs new file mode 100644 index 000000000..478a55ef0 --- /dev/null +++ b/mRemoteV1/CS/Settings.cs @@ -0,0 +1,28 @@ +namespace mRemoteNG.My { + + + // This class allows you to handle specific events on the settings class: + // The SettingChanging event is raised before a setting's value is changed. + // The PropertyChanged event is raised after a setting's value is changed. + // The SettingsLoaded event is raised after the setting values are loaded. + // The SettingsSaving event is raised before the setting values are saved. + internal sealed partial class Settings { + + public Settings() { + // // To add event handlers for saving and changing settings, uncomment the lines below: + // + // this.SettingChanging += this.SettingChangingEventHandler; + // + // this.SettingsSaving += this.SettingsSavingEventHandler; + // + } + + private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { + // Add code to handle the SettingChangingEvent event here. + } + + private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { + // Add code to handle the SettingsSaving event here. + } + } +} diff --git a/mRemoteV1/CS/Themes/ThemeInfo.cs b/mRemoteV1/CS/Themes/ThemeInfo.cs index f3bc562b9..11d94cef7 100644 --- a/mRemoteV1/CS/Themes/ThemeInfo.cs +++ b/mRemoteV1/CS/Themes/ThemeInfo.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,10 +8,7 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.ComponentModel; -//using mRemoteNG.Tools.LocalizedAttributes; using mRemoteNG.My; using mRemoteNG.Tools; @@ -21,7 +17,7 @@ namespace mRemoteNG.Themes { public class ThemeInfo : ICloneable, INotifyPropertyChanged { -#region Public Methods + #region Public Methods public ThemeInfo(string themeName = null) { // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. @@ -66,9 +62,9 @@ namespace mRemoteNG.Themes return true; } -#endregion + #endregion -#region Events + #region Events public event PropertyChangedEventHandler PropertyChanged; protected void NotifyPropertyChanged(string propertyName) { @@ -76,9 +72,9 @@ namespace mRemoteNG.Themes (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } -#endregion + #endregion -#region Properties + #region Properties private string _name; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. [Browsable(false)] public string Name @@ -98,7 +94,7 @@ namespace mRemoteNG.Themes } } -#region General + #region General private Color _windowBackgroundColor; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. [LocalizedAttributes.LocalizedCategory("strThemeCategoryGeneral", 1), LocalizedAttributes.LocalizedDisplayName("strThemeNameWindowBackgroundColor"), @@ -204,9 +200,9 @@ namespace mRemoteNG.Themes NotifyPropertyChanged("ToolbarTextColor"); } } -#endregion + #endregion -#region Connections Panel + #region Connections Panel private Color _connectionsPanelBackgroundColor; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. [LocalizedAttributes.LocalizedCategory("strThemeCategoryConnectionsPanel", 2), LocalizedAttributes.LocalizedDisplayName("strThemeNameConnectionsPanelBackgroundColor"), @@ -332,9 +328,9 @@ namespace mRemoteNG.Themes NotifyPropertyChanged("SearchBoxTextColor"); } } -#endregion + #endregion -#region Config Panel + #region Config Panel private Color _configPanelBackgroundColor; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors. [LocalizedAttributes.LocalizedCategory("strThemeCategoryConfigPanel", 3), LocalizedAttributes.LocalizedDisplayName("strThemeNameConfigPanelBackgroundColor"), @@ -460,7 +456,7 @@ namespace mRemoteNG.Themes NotifyPropertyChanged("ConfigPanelGridLineColor"); } } -#endregion -#endregion + #endregion + #endregion } -} +} \ No newline at end of file diff --git a/mRemoteV1/CS/Themes/ThemeManager.cs b/mRemoteV1/CS/Themes/ThemeManager.cs index ce9b031a2..28ff7bcd3 100644 --- a/mRemoteV1/CS/Themes/ThemeManager.cs +++ b/mRemoteV1/CS/Themes/ThemeManager.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.IO; using System.ComponentModel; using mRemoteNG.My; @@ -19,145 +16,145 @@ using mRemoteNG.My; namespace mRemoteNG.Themes { public class ThemeManager + { + #region Public Methods + public static ThemeInfo LoadTheme(string themeName, bool setActive = true) { -#region Public Methods - public static ThemeInfo LoadTheme(string themeName, bool setActive = true) - { - ThemeInfo loadedTheme = DefaultTheme; + ThemeInfo loadedTheme = DefaultTheme; - if (!string.IsNullOrEmpty(themeName)) + if (!string.IsNullOrEmpty(themeName)) + { + foreach (ThemeInfo theme in LoadThemes()) { - foreach (ThemeInfo theme in LoadThemes()) + if (theme.Name == themeName) { - if (theme.Name == themeName) - { - loadedTheme = theme; - break; - } + loadedTheme = theme; + break; } } + } - if (setActive) - { - ActiveTheme = loadedTheme; - } - return loadedTheme; - } - - public static List LoadThemes() + if (setActive) { - List themes = new List(); - themes.Add(DefaultTheme); - try - { - themes.AddRange(ThemeSerializer.LoadFromXmlFile(Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName))); - } - catch (FileNotFoundException) - { - } - - return themes; + ActiveTheme = loadedTheme; } - - public static void SaveThemes(List themes) - { - themes.Remove(DefaultTheme); - ThemeSerializer.SaveToXmlFile(themes, Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName)); - } - - public static void SaveThemes(ThemeInfo[] themes) - { - SaveThemes(new List(themes)); - } - - public static void SaveThemes(BindingList themes) - { - ThemeInfo[] themesArray = new ThemeInfo[themes.Count - 1 + 1]; - themes.CopyTo(themesArray, 0); - SaveThemes(themesArray); - } -#endregion - -#region Events - public delegate void ThemeChangedEventHandler(); - private static ThemeChangedEventHandler ThemeChangedEvent; - - public static event ThemeChangedEventHandler ThemeChanged - { - add - { - ThemeChangedEvent = (ThemeChangedEventHandler) System.Delegate.Combine(ThemeChangedEvent, value); - } - remove - { - ThemeChangedEvent = (ThemeChangedEventHandler) System.Delegate.Remove(ThemeChangedEvent, value); - } - } - - protected static void NotifyThemeChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) - { - if (e.PropertyName == "Name") - { - return ; - } - if (ThemeChangedEvent != null) - ThemeChangedEvent(); - } -#endregion - -#region Properties - // ReSharper disable InconsistentNaming - private static readonly ThemeInfo _defaultTheme = new ThemeInfo(Language.strDefaultTheme); - // ReSharper restore InconsistentNaming -public static ThemeInfo DefaultTheme - { - get - { - return _defaultTheme; - } - } - - private static ThemeInfo _activeTheme; - private static bool _activeThemeHandlerSet = false; -public static ThemeInfo ActiveTheme - { - get - { - if (_activeTheme == null) - { - return DefaultTheme; - } - return _activeTheme; - } - set - { - // We need to set ActiveTheme to the new theme to make sure it references the right object. - // However, if both themes have the same properties, we don't need to raise a notification event. - bool needNotify = true; - if (_activeTheme != null) - { - if (_activeTheme.Equals(value)) - { - needNotify = false; - } - } - - if (_activeThemeHandlerSet) - { - _activeTheme.PropertyChanged -= NotifyThemeChanged; - } - - _activeTheme = value; - - _activeTheme.PropertyChanged += NotifyThemeChanged; - _activeThemeHandlerSet = true; - - if (needNotify) - { - NotifyThemeChanged(_activeTheme, new PropertyChangedEventArgs("")); - } - } - } -#endregion + return loadedTheme; } + + public static List LoadThemes() + { + List themes = new List(); + themes.Add(DefaultTheme); + try + { + themes.AddRange(ThemeSerializer.LoadFromXmlFile(Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName))); + } + catch (FileNotFoundException) + { + } + + return themes; + } + + public static void SaveThemes(List themes) + { + themes.Remove(DefaultTheme); + ThemeSerializer.SaveToXmlFile(themes, Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName)); + } + + public static void SaveThemes(ThemeInfo[] themes) + { + SaveThemes(new List(themes)); + } + + public static void SaveThemes(BindingList themes) + { + ThemeInfo[] themesArray = new ThemeInfo[themes.Count - 1 + 1]; + themes.CopyTo(themesArray, 0); + SaveThemes(themesArray); + } + #endregion + + #region Events + public delegate void ThemeChangedEventHandler(); + private static ThemeChangedEventHandler ThemeChangedEvent; + + public static event ThemeChangedEventHandler ThemeChanged + { + add + { + ThemeChangedEvent = (ThemeChangedEventHandler) System.Delegate.Combine(ThemeChangedEvent, value); + } + remove + { + ThemeChangedEvent = (ThemeChangedEventHandler) System.Delegate.Remove(ThemeChangedEvent, value); + } + } + + protected static void NotifyThemeChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) + { + if (e.PropertyName == "Name") + { + return ; + } + if (ThemeChangedEvent != null) + ThemeChangedEvent(); + } + #endregion + + #region Properties + // ReSharper disable InconsistentNaming + private static readonly ThemeInfo _defaultTheme = new ThemeInfo(Language.strDefaultTheme); + // ReSharper restore InconsistentNaming + public static ThemeInfo DefaultTheme + { + get + { + return _defaultTheme; + } + } + + private static ThemeInfo _activeTheme; + private static bool _activeThemeHandlerSet = false; + public static ThemeInfo ActiveTheme + { + get + { + if (_activeTheme == null) + { + return DefaultTheme; + } + return _activeTheme; + } + set + { + // We need to set ActiveTheme to the new theme to make sure it references the right object. + // However, if both themes have the same properties, we don't need to raise a notification event. + bool needNotify = true; + if (_activeTheme != null) + { + if (_activeTheme.Equals(value)) + { + needNotify = false; + } + } + + if (_activeThemeHandlerSet) + { + _activeTheme.PropertyChanged -= NotifyThemeChanged; + } + + _activeTheme = value; + + _activeTheme.PropertyChanged += NotifyThemeChanged; + _activeThemeHandlerSet = true; + + if (needNotify) + { + NotifyThemeChanged(_activeTheme, new PropertyChangedEventArgs("")); + } + } + } + #endregion + } } diff --git a/mRemoteV1/CS/Themes/ThemeSerializer.cs b/mRemoteV1/CS/Themes/ThemeSerializer.cs index d31529508..7237ff9ba 100644 --- a/mRemoteV1/CS/Themes/ThemeSerializer.cs +++ b/mRemoteV1/CS/Themes/ThemeSerializer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.IO; using System.Xml; using System.Reflection; @@ -19,141 +16,141 @@ using System.Reflection; namespace mRemoteNG.Themes { public class ThemeSerializer + { + public static void SaveToXmlFile(ThemeInfo themeInfo, string filename) { - public static void SaveToXmlFile(ThemeInfo themeInfo, string filename) - { - List themeList = new List(); - themeList.Add(themeInfo); - SaveToXmlFile(themeList, filename); - } + List themeList = new List(); + themeList.Add(themeInfo); + SaveToXmlFile(themeList, filename); + } - public static void SaveToXmlFile(List themes, string filename) + public static void SaveToXmlFile(List themes, string filename) + { + string tempFileName = Path.GetTempFileName(); + XmlTextWriter xmlTextWriter = new XmlTextWriter(tempFileName, System.Text.Encoding.UTF8); + + xmlTextWriter.Formatting = Formatting.Indented; + xmlTextWriter.Indentation = 4; + + xmlTextWriter.WriteStartDocument(); + + xmlTextWriter.WriteStartElement("mRemoteNG"); + + xmlTextWriter.WriteStartElement("FileInfo"); + xmlTextWriter.WriteAttributeString("Version", "1.0"); + xmlTextWriter.WriteElementString("FileType", "Theme"); + xmlTextWriter.WriteElementString("FileTypeVersion", "1.0"); + xmlTextWriter.WriteEndElement(); // FileInfo + + Type themeType = (new ThemeInfo()).GetType(); + Type colorType = (new Color()).GetType(); + Color color = new Color(); + foreach (ThemeInfo themeInfo in themes) { - string tempFileName = Path.GetTempFileName(); - XmlTextWriter xmlTextWriter = new XmlTextWriter(tempFileName, System.Text.Encoding.UTF8); - - xmlTextWriter.Formatting = Formatting.Indented; - xmlTextWriter.Indentation = 4; - - xmlTextWriter.WriteStartDocument(); - - xmlTextWriter.WriteStartElement("mRemoteNG"); - - xmlTextWriter.WriteStartElement("FileInfo"); - xmlTextWriter.WriteAttributeString("Version", "1.0"); - xmlTextWriter.WriteElementString("FileType", "Theme"); - xmlTextWriter.WriteElementString("FileTypeVersion", "1.0"); - xmlTextWriter.WriteEndElement(); // FileInfo - - Type themeType = (new ThemeInfo()).GetType(); - Type colorType = (new Color()).GetType(); - Color color = new Color(); - foreach (ThemeInfo themeInfo in themes) - { - xmlTextWriter.WriteStartElement("Theme"); - xmlTextWriter.WriteAttributeString("Name", themeInfo.Name); + xmlTextWriter.WriteStartElement("Theme"); + xmlTextWriter.WriteAttributeString("Name", themeInfo.Name); - foreach (PropertyInfo propertyInfo in themeType.GetProperties()) + foreach (PropertyInfo propertyInfo in themeType.GetProperties()) + { + if (!(propertyInfo.PropertyType == colorType)) { - if (!(propertyInfo.PropertyType == colorType)) - { - continue; - } - color = propertyInfo.GetValue(themeInfo, null); - xmlTextWriter.WriteStartElement("Color"); - xmlTextWriter.WriteAttributeString("Name", propertyInfo.Name); - xmlTextWriter.WriteAttributeString("Value", EncodeColorName(color)); - xmlTextWriter.WriteEndElement(); // Color + continue; } + color = (Color)propertyInfo.GetValue(themeInfo, null); + xmlTextWriter.WriteStartElement("Color"); + xmlTextWriter.WriteAttributeString("Name", propertyInfo.Name); + xmlTextWriter.WriteAttributeString("Value", EncodeColorName(color)); + xmlTextWriter.WriteEndElement(); // Color + } - xmlTextWriter.WriteEndElement(); // Theme - } - - xmlTextWriter.WriteEndElement(); // mRemoteNG - - xmlTextWriter.Close(); - - File.Delete(filename); - File.Move(tempFileName, filename); + xmlTextWriter.WriteEndElement(); // Theme } + + xmlTextWriter.WriteEndElement(); // mRemoteNG + + xmlTextWriter.Close(); + + File.Delete(filename); + File.Move(tempFileName, filename); + } - public static List LoadFromXmlFile(string filename) + public static List LoadFromXmlFile(string filename) + { + XmlDocument xmlDocument = new XmlDocument(); + xmlDocument.Load(filename); + + XmlNode fileInfoNode = xmlDocument.SelectSingleNode("/mRemoteNG/FileInfo"); + Version fileInfoVersion = new Version(fileInfoNode.Attributes["Version"].Value); + if (fileInfoVersion > new Version(1, 0)) { - XmlDocument xmlDocument = new XmlDocument(); - xmlDocument.Load(filename); + throw (new FileFormatException(string.Format("Unsupported FileInfo version ({0}).", fileInfoVersion))); + } - XmlNode fileInfoNode = xmlDocument.SelectSingleNode("/mRemoteNG/FileInfo"); - Version fileInfoVersion = new Version(fileInfoNode.Attributes["Version"].Value); - if (fileInfoVersion > new Version(1, 0)) - { - throw (new FileFormatException(string.Format("Unsupported FileInfo version ({0}).", fileInfoVersion))); - } + XmlNode fileTypeNode = fileInfoNode.SelectSingleNode("./FileType"); + string fileType = fileTypeNode.InnerText; + if (!(fileType == "Theme")) + { + throw (new FileFormatException(string.Format("Incorrect FileType ({0}). Expected \"Theme\".", fileType))); + } - XmlNode fileTypeNode = fileInfoNode.SelectSingleNode("./FileType"); - string fileType = fileTypeNode.InnerText; - if (!(fileType == "Theme")) - { - throw (new FileFormatException(string.Format("Incorrect FileType ({0}). Expected \"Theme\".", fileType))); - } + Version fileTypeVersion = new Version(fileInfoNode.SelectSingleNode("./FileTypeVersion").InnerText); + if (fileTypeVersion > new Version(1, 0)) + { + throw (new FileFormatException(string.Format("Unsupported FileTypeVersion ({0}).", fileTypeVersion))); + } - Version fileTypeVersion = new Version(fileInfoNode.SelectSingleNode("./FileTypeVersion").InnerText); - if (fileTypeVersion > new Version(1, 0)) + XmlNodeList themeNodes = xmlDocument.SelectNodes("/mRemoteNG/Theme"); + List themes = new List(); + ThemeInfo themeInfo = default(ThemeInfo); + Type themeType = (new ThemeInfo()).GetType(); + Type colorType = (new Color()).GetType(); + string colorName = ""; + string colorValue = ""; + PropertyInfo propertyInfo = default(PropertyInfo); + foreach (XmlNode themeNode in themeNodes) + { + themeInfo = new ThemeInfo(); + themeInfo.Name = themeNode.Attributes["Name"].Value; + foreach (XmlNode colorNode in themeNode.SelectNodes("./Color")) { - throw (new FileFormatException(string.Format("Unsupported FileTypeVersion ({0}).", fileTypeVersion))); - } - - XmlNodeList themeNodes = xmlDocument.SelectNodes("/mRemoteNG/Theme"); - List themes = new List(); - ThemeInfo themeInfo = default(ThemeInfo); - Type themeType = (new ThemeInfo()).GetType(); - Type colorType = (new Color()).GetType(); - string colorName = ""; - string colorValue = ""; - PropertyInfo propertyInfo = default(PropertyInfo); - foreach (XmlNode themeNode in themeNodes) - { - themeInfo = new ThemeInfo(); - themeInfo.Name = themeNode.Attributes["Name"].Value; - foreach (XmlNode colorNode in themeNode.SelectNodes("./Color")) + colorName = colorNode.Attributes["Name"].Value; + colorValue = colorNode.Attributes["Value"].Value; + propertyInfo = themeType.GetProperty(colorName); + if (propertyInfo == null || !(propertyInfo.PropertyType == colorType)) { - colorName = colorNode.Attributes["Name"].Value; - colorValue = colorNode.Attributes["Value"].Value; - propertyInfo = themeType.GetProperty(colorName); - if (propertyInfo == null || !(propertyInfo.PropertyType == colorType)) - { - continue; - } - propertyInfo.SetValue(themeInfo, DecodeColorName(colorValue), null); + continue; } - themes.Add(themeInfo); + propertyInfo.SetValue(themeInfo, DecodeColorName(colorValue), null); } + themes.Add(themeInfo); + } - return themes; - } + return themes; + } - private static string EncodeColorName(Color color) + private static string EncodeColorName(Color color) + { + if (color.IsNamedColor) { - if (color.IsNamedColor) - { - return color.Name; - } - else - { - return Conversion.Hex(color.ToArgb()).PadLeft(8, '0'); - } + return color.Name; } - - private static Color DecodeColorName(string name) + else { - System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex("^[0-9a-fA-F]{8}$"); - if (regex.Match(name).Success) - { - return Color.FromArgb(Convert.ToInt32(name, 16)); - } - else - { - return Color.FromName(name); - } + return Conversion.Hex(color.ToArgb()).PadLeft(8, '0'); } } + + private static Color DecodeColorName(string name) + { + System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex("^[0-9a-fA-F]{8}$"); + if (regex.Match(name).Success) + { + return Color.FromArgb(Convert.ToInt32(name, 16)); + } + else + { + return Color.FromName(name); + } + } + } } diff --git a/mRemoteV1/CS/Tools/Authenticode.cs b/mRemoteV1/CS/Tools/Authenticode.cs index d21352a90..06a880fc8 100644 --- a/mRemoteV1/CS/Tools/Authenticode.cs +++ b/mRemoteV1/CS/Tools/Authenticode.cs @@ -68,13 +68,13 @@ namespace mRemoteNG.Tools Marshal.StructureToPtr(trustFileInfo, trustFileInfoPointer, false); Win32.WINTRUST_DATA trustData = new Win32.WINTRUST_DATA(); - trustData.dwUIChoice = Display; + trustData.dwUIChoice = (uint)Display; trustData.fdwRevocationChecks = Win32.WTD_REVOKE_WHOLECHAIN; trustData.dwUnionChoice = Win32.WTD_CHOICE_FILE; trustData.pFile = trustFileInfoPointer; trustData.dwStateAction = Win32.WTD_STATEACTION_IGNORE; trustData.dwProvFlags = Win32.WTD_DISABLE_MD2_MD4; - trustData.dwUIContext = DisplayContext; + trustData.dwUIContext = (uint)DisplayContext; trustDataPointer = Marshal.AllocCoTaskMem(Marshal.SizeOf(trustData)); Marshal.StructureToPtr(trustData, trustDataPointer, false); diff --git a/mRemoteV1/CS/Tools/CommandLineArguments.cs b/mRemoteV1/CS/Tools/CommandLineArguments.cs index 582cf507e..f35970fc3 100644 --- a/mRemoteV1/CS/Tools/CommandLineArguments.cs +++ b/mRemoteV1/CS/Tools/CommandLineArguments.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.Text.RegularExpressions; @@ -18,141 +15,141 @@ namespace mRemoteNG.Tools { // Adapted from http://qntm.org/cmd public class CommandLineArguments + { + #region Protected Fields + protected List Arguments = new List(); + #endregion + + #region Public Properties + public bool EscapeForShell {get; set;} + #endregion + + #region Public Methods + public void Add(string argument, bool forceQuotes = false) { -#region Protected Fields - protected List Arguments = new List(); -#endregion + Arguments.Add(new Argument(argument, false, forceQuotes)); + } -#region Public Properties - public bool EscapeForShell {get; set;} -#endregion - -#region Public Methods - public void Add(string argument, bool forceQuotes = false) + public void Add(params string[] argumentArray) + { + foreach (string argument in argumentArray) { - Arguments.Add(new argument(argument, false, forceQuotes)); + Add(argument); } + } - public void Add(params string[] argumentArray) + public void AddFileName(string fileName, bool forceQuotes = false) + { + Arguments.Add(new Argument(fileName, true, forceQuotes)); + } + + public override string ToString() + { + List processedArguments = new List(); + + foreach (Argument argument in Arguments) { - foreach (string argument in argumentArray) - { - Add(argument); - } + processedArguments.Add(ProcessArgument(argument, EscapeForShell)); } + + return string.Join(" ", processedArguments.ToArray()); + } - public void AddFileName(string fileName, bool forceQuotes = false) + public static string PrefixFileName(string argument) + { + if (string.IsNullOrEmpty(argument)) { - Arguments.Add(new Argument(fileName, true, forceQuotes)); - } - - public override string ToString() - { - List processedArguments = new List(); - - foreach (Argument argument in Arguments) - { - processedArguments.Add(ProcessArgument(argument, EscapeForShell)); - } - - return string.Join(" ", processedArguments.ToArray()); - } - - public static string PrefixFileName(string argument) - { - if (string.IsNullOrEmpty(argument)) - { - return argument; - } - - if (argument.StartsWith("-")) - { - argument = ".\\" + argument; - } - return argument; } - - public static string EscapeBackslashes(string argument) + + if (argument.StartsWith("-")) { - if (string.IsNullOrEmpty(argument)) - { - return argument; - } - - // Sequence of backslashes followed by a double quote: - // double up all the backslashes and escape the double quote - return Regex.Replace(argument, "(\\\\*)\"", "$1$1\\\""); + argument = ".\\" + argument; } - - public static string EscapeBackslashesForTrailingQuote(string argument) - { - if (string.IsNullOrEmpty(argument)) - { - return argument; - } - // Sequence of backslashes followed by the end of the string - // (which will become a double quote): - // double up all the backslashes - return Regex.Replace(argument, "(\\\\*)$", "$1$1"); - } - - public static string QuoteArgument(string argument, bool forceQuotes = false) - { - if (!forceQuotes && !string.IsNullOrEmpty(argument) && !argument.Contains(" ")) - { - return argument; - } - - return "\"" + EscapeBackslashesForTrailingQuote(argument) + "\""; - } - - public static string EscapeShellMetacharacters(string argument) - { - if (string.IsNullOrEmpty(argument)) - { - return argument; - } - - return Regex.Replace(argument, "([()%!^\"<>&|])", "^$1"); - } -#endregion - -#region Protected Methods - protected static string ProcessArgument(Argument argument, bool escapeForShell = false) - { - string text = argument.Text; - - if (argument.IsFileName) - { - text = PrefixFileName(text); - } - text = EscapeBackslashes(text); - text = QuoteArgument(text, argument.ForceQuotes); - if (escapeForShell) - { - text = EscapeShellMetacharacters(text); - } - - return text; - } -#endregion - -#region Protected Classes - protected class Argument - { - public Argument(string text, bool isFileName = false, bool forceQuotes = false) - { - this.Text = text; - this.IsFileName = isFileName; - this.ForceQuotes = forceQuotes; - } - - public string Text {get; set;} - public bool IsFileName {get; set;} - public bool ForceQuotes {get; set;} - } -#endregion + return argument; } + + public static string EscapeBackslashes(string argument) + { + if (string.IsNullOrEmpty(argument)) + { + return argument; + } + + // Sequence of backslashes followed by a double quote: + // double up all the backslashes and escape the double quote + return Regex.Replace(argument, "(\\\\*)\"", "$1$1\\\""); + } + + public static string EscapeBackslashesForTrailingQuote(string argument) + { + if (string.IsNullOrEmpty(argument)) + { + return argument; + } + + // Sequence of backslashes followed by the end of the string + // (which will become a double quote): + // double up all the backslashes + return Regex.Replace(argument, "(\\\\*)$", "$1$1"); + } + + public static string QuoteArgument(string argument, bool forceQuotes = false) + { + if (!forceQuotes && !string.IsNullOrEmpty(argument) && !argument.Contains(" ")) + { + return argument; + } + + return "\"" + EscapeBackslashesForTrailingQuote(argument) + "\""; + } + + public static string EscapeShellMetacharacters(string argument) + { + if (string.IsNullOrEmpty(argument)) + { + return argument; + } + + return Regex.Replace(argument, "([()%!^\"<>&|])", "^$1"); + } + #endregion + + #region Protected Methods + protected static string ProcessArgument(Argument argument, bool escapeForShell = false) + { + string text = argument.Text; + + if (argument.IsFileName) + { + text = PrefixFileName(text); + } + text = EscapeBackslashes(text); + text = QuoteArgument(text, argument.ForceQuotes); + if (escapeForShell) + { + text = EscapeShellMetacharacters(text); + } + + return text; + } + #endregion + + #region Protected Classes + protected class Argument + { + public Argument(string text, bool isFileName = false, bool forceQuotes = false) + { + this.Text = text; + this.IsFileName = isFileName; + this.ForceQuotes = forceQuotes; + } + + public string Text {get; set;} + public bool IsFileName {get; set;} + public bool ForceQuotes {get; set;} + } + #endregion + } } diff --git a/mRemoteV1/CS/Tools/EnumWindows.cs b/mRemoteV1/CS/Tools/EnumWindows.cs index ed8f296a5..342c5ae58 100644 --- a/mRemoteV1/CS/Tools/EnumWindows.cs +++ b/mRemoteV1/CS/Tools/EnumWindows.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,55 +8,53 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.Runtime.InteropServices; namespace mRemoteNG.Tools { public class EnumWindows + { + public static List EnumWindows_Renamed() { - public static List EnumWindows_Renamed() - { - List handleList = new List(); + List handleList = new List(); - HandleLists.Add(handleList); - int handleIndex = HandleLists.IndexOf(handleList); - Win32.EnumWindows(EnumCallback, handleIndex); - HandleLists.Remove(handleList); + HandleLists.Add(handleList); + int handleIndex = HandleLists.IndexOf(handleList); + Win32.EnumWindows(EnumCallback, handleIndex); + HandleLists.Remove(handleList); - return handleList; - } - - public static List EnumChildWindows(IntPtr hWndParent) - { - List handleList = new List(); - - HandleLists.Add(handleList); - int handleIndex = HandleLists.IndexOf(handleList); - Win32.EnumChildWindows(hWndParent, EnumCallback, handleIndex); - HandleLists.Remove(handleList); - - return handleList; - } - - private static readonly List> HandleLists = new List>(); - - private static bool EnumCallback(int hwnd, int lParam) - { - HandleLists[lParam].Add(hwnd); - return true; - } - - // ReSharper disable ClassNeverInstantiated.Local - private class Win32 - { - // ReSharper restore ClassNeverInstantiated.Local - public delegate bool EnumWindowsProc(int hwnd, int lParam); - [DllImport("user32", ExactSpelling=true, CharSet=CharSet.Ansi, SetLastError=true)] - public static extern bool EnumWindows(EnumWindowsProc lpEnumFunc, int lParam); - [DllImport("user32", ExactSpelling=true, CharSet=CharSet.Ansi, SetLastError=true)] - public static extern bool EnumChildWindows(IntPtr hWndParent, EnumWindowsProc lpEnumFunc, int lParam); - } + return handleList; } + + public static List EnumChildWindows(IntPtr hWndParent) + { + List handleList = new List(); + + HandleLists.Add(handleList); + int handleIndex = HandleLists.IndexOf(handleList); + Win32.EnumChildWindows(hWndParent, EnumCallback, handleIndex); + HandleLists.Remove(handleList); + + return handleList; + } + + private static readonly List> HandleLists = new List>(); + + private static bool EnumCallback(int hwnd, int lParam) + { + HandleLists[lParam].Add((IntPtr)hwnd); + return true; + } + + // ReSharper disable ClassNeverInstantiated.Local + private class Win32 + { + // ReSharper restore ClassNeverInstantiated.Local + public delegate bool EnumWindowsProc(int hwnd, int lParam); + [DllImport("user32", ExactSpelling=true, CharSet=CharSet.Ansi, SetLastError=true)] + public static extern bool EnumWindows(EnumWindowsProc lpEnumFunc, int lParam); + [DllImport("user32", ExactSpelling=true, CharSet=CharSet.Ansi, SetLastError=true)] + public static extern bool EnumChildWindows(IntPtr hWndParent, EnumWindowsProc lpEnumFunc, int lParam); + } + } } diff --git a/mRemoteV1/CS/Tools/EnvironmentInfo.cs b/mRemoteV1/CS/Tools/EnvironmentInfo.cs index 3e9eea7e1..24989ae16 100644 --- a/mRemoteV1/CS/Tools/EnvironmentInfo.cs +++ b/mRemoteV1/CS/Tools/EnvironmentInfo.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,62 +8,62 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.Runtime.InteropServices; namespace mRemoteNG.Tools { public class EnvironmentInfo + { + public static bool IsWow64 { -public static bool IsWow64 + get { - get + Win32.IsWow64ProcessDelegate isWow64ProcessDelegate = GetIsWow64ProcessDelegate(); + if (isWow64ProcessDelegate == null) { - Win32.IsWow64ProcessDelegate isWow64ProcessDelegate = GetIsWow64ProcessDelegate(); - if (isWow64ProcessDelegate == null) - { - return false; - } + return false; + } - bool isWow64Process = false; - bool result = System.Convert.ToBoolean(isWow64ProcessDelegate.Invoke(Process.GetCurrentProcess().Handle, isWow64Process)); - if (!result) - { - return false; - } + bool isWow64Process = false; + bool result = System.Convert.ToBoolean(isWow64ProcessDelegate.Invoke(Process.GetCurrentProcess().Handle, ref isWow64Process)); + if (!result) + { + return false; + } - return isWow64Process; - } - } - - private static Win32.IsWow64ProcessDelegate GetIsWow64ProcessDelegate() - { - IntPtr moduleHandle = Win32.LoadLibrary("kernel32"); - if (moduleHandle == IntPtr.Zero) - { - return null; - } - - IntPtr functionPointer = Win32.GetProcAddress(moduleHandle, "IsWow64Process"); - if (functionPointer == IntPtr.Zero) - { - return null; - } - - return Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(Win32.IsWow64ProcessDelegate)); - } - - protected class Win32 - { - // ReSharper disable InconsistentNaming - [DllImport("kernel32", CharSet = CharSet.Auto, SetLastError = true)]public static extern IntPtr LoadLibrary([In(), MarshalAs(UnmanagedType.LPTStr)]string lpFileName); - - [DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]public static extern IntPtr GetProcAddress([In()]IntPtr hModule, [In(), MarshalAs(UnmanagedType.LPStr)]string lpProcName); - - public delegate bool IsWow64ProcessDelegate([In()]IntPtr hProcess, ref bool Wow64Process); - // ReSharper restore InconsistentNaming + return isWow64Process; } } + + private static Win32.IsWow64ProcessDelegate GetIsWow64ProcessDelegate() + { + IntPtr moduleHandle = Win32.LoadLibrary("kernel32"); + if (moduleHandle == IntPtr.Zero) + { + return null; + } + + IntPtr functionPointer = Win32.GetProcAddress(moduleHandle, "IsWow64Process"); + if (functionPointer == IntPtr.Zero) + { + return null; + } + + return (Win32.IsWow64ProcessDelegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(Win32.IsWow64ProcessDelegate)); + } + + protected class Win32 + { + // ReSharper disable InconsistentNaming + [DllImport("kernel32", CharSet = CharSet.Auto, SetLastError = true)] + public static extern IntPtr LoadLibrary([In(), MarshalAs(UnmanagedType.LPTStr)]string lpFileName); + + [DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)] + public static extern IntPtr GetProcAddress([In()]IntPtr hModule, [In(), MarshalAs(UnmanagedType.LPStr)]string lpProcName); + + public delegate bool IsWow64ProcessDelegate([In()]IntPtr hProcess, ref bool Wow64Process); + // ReSharper restore InconsistentNaming + } + } } diff --git a/mRemoteV1/CS/Tools/ProcessController.cs b/mRemoteV1/CS/Tools/ProcessController.cs index 88409ceeb..ecb81f32c 100644 --- a/mRemoteV1/CS/Tools/ProcessController.cs +++ b/mRemoteV1/CS/Tools/ProcessController.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.Runtime.InteropServices; using System.Text; using mRemoteNG.My; @@ -19,249 +16,247 @@ using mRemoteNG.My; namespace mRemoteNG.Tools { public class ProcessController + { + #region Public Methods + public bool Start(string fileName, CommandLineArguments arguments = null) { -#region Public Methods - public bool Start(string fileName, CommandLineArguments arguments = null) + Process.StartInfo.UseShellExecute = false; + Process.StartInfo.FileName = fileName; + if (arguments != null) { - Process.StartInfo.UseShellExecute = false; - Process.StartInfo.FileName = fileName; - if (arguments != null) - { - Process.StartInfo.Arguments = arguments.ToString(); - } - - if (!Process.Start()) - { - return false; - } - GetMainWindowHandle(); - - return true; + Process.StartInfo.Arguments = arguments.ToString(); } + + if (!Process.Start()) + { + return false; + } + GetMainWindowHandle(); + + return true; + } - public bool SetControlVisible(string className, string text, bool visible = true) + public bool SetControlVisible(string className, string text, bool visible = true) + { + if (Process == null || Process.HasExited) { - if (Process == null || Process.HasExited) - { - return false; - } - if (Handle == IntPtr.Zero) - { - return false; - } - - IntPtr controlHandle = GetControlHandle(className, text); - if (controlHandle == IntPtr.Zero) - { - return false; - } - - int nCmdShow = 0; - if (visible) - { - nCmdShow = Win32.SW_SHOW; - } - else - { - nCmdShow = Win32.SW_HIDE; - } - - Win32.ShowWindow(controlHandle, nCmdShow); - - return true; + return false; } + if (Handle == IntPtr.Zero) + { + return false; + } + + IntPtr controlHandle = GetControlHandle(className, text); + if (controlHandle == IntPtr.Zero) + { + return false; + } + + int nCmdShow = 0; + if (visible) + { + nCmdShow = Win32.SW_SHOW; + } + else + { + nCmdShow = Win32.SW_HIDE; + } + Win32.ShowWindow(controlHandle, nCmdShow); + return true; + } - public bool SetControlText(string className, string oldText, string newText) + public bool SetControlText(string className, string oldText, string newText) + { + if (Process == null || Process.HasExited) { - if (Process == null || Process.HasExited) - { - return false; - } - if (Handle == IntPtr.Zero) - { - return false; - } - - IntPtr controlHandle = GetControlHandle(className, oldText); - if (controlHandle == IntPtr.Zero) - { - return false; - } - - IntPtr result = Win32.SendMessage(controlHandle, Win32.WM_SETTEXT, 0, new StringBuilder(newText)); - if (!(result.ToInt32() == Win32.TRUE)) - { - return false; - } - - return true; + return false; } + if (Handle == IntPtr.Zero) + { + return false; + } + + IntPtr controlHandle = GetControlHandle(className, oldText); + if (controlHandle == IntPtr.Zero) + { + return false; + } + + IntPtr result = Win32.SendMessage(controlHandle, Win32.WM_SETTEXT, (IntPtr)0, new StringBuilder(newText)); + if (!(result.ToInt32() == Win32.TRUE)) + { + return false; + } + + return true; + } - public bool SelectListBoxItem(string itemText) + public bool SelectListBoxItem(string itemText) + { + if (Process == null || Process.HasExited) { - if (Process == null || Process.HasExited) - { - return false; - } - if (Handle == IntPtr.Zero) - { - return false; - } - - IntPtr listBoxHandle = GetControlHandle("ListBox"); - if (listBoxHandle == IntPtr.Zero) - { - return false; - } - - IntPtr result = Win32.SendMessage(listBoxHandle, Win32.LB_SELECTSTRING, -1, new StringBuilder(itemText)); - if (result.ToInt32() == Win32.LB_ERR) - { - return false; - } - - return true; + return false; } + if (Handle == IntPtr.Zero) + { + return false; + } + + IntPtr listBoxHandle = GetControlHandle("ListBox"); + if (listBoxHandle == IntPtr.Zero) + { + return false; + } + + IntPtr result = Win32.SendMessage(listBoxHandle, Win32.LB_SELECTSTRING, (IntPtr)(-1), new StringBuilder(itemText)); + if (result.ToInt32() == Win32.LB_ERR) + { + return false; + } + + return true; + } - public bool ClickButton(string text) + public bool ClickButton(string text) + { + if (Process == null || Process.HasExited) { - if (Process == null || Process.HasExited) - { - return false; - } - if (Handle == IntPtr.Zero) - { - return false; - } - - IntPtr buttonHandle = GetControlHandle("Button", text); - if (buttonHandle == IntPtr.Zero) - { - return false; - } - - int buttonControlId = Win32.GetDlgCtrlID(buttonHandle); - Win32.SendMessage(Handle, Win32.WM_COMMAND, buttonControlId, buttonHandle); - - return true; + return false; } + if (Handle == IntPtr.Zero) + { + return false; + } + + IntPtr buttonHandle = GetControlHandle("Button", text); + if (buttonHandle == IntPtr.Zero) + { + return false; + } + + int buttonControlId = Win32.GetDlgCtrlID(buttonHandle.ToInt32()); + Win32.SendMessage(Handle, Win32.WM_COMMAND, (IntPtr)buttonControlId, buttonHandle); + + return true; + } - public void WaitForExit() + public void WaitForExit() + { + if (Process == null || Process.HasExited) { - if (Process == null || Process.HasExited) - { - return ; - } - Process.WaitForExit(); + return ; } + Process.WaitForExit(); + } #endregion #region Protected Fields - protected Process Process = new Process(); - protected IntPtr Handle = IntPtr.Zero; - protected List Controls = new List(); + protected Process Process = new Process(); + protected IntPtr Handle = IntPtr.Zero; + protected List Controls = new List(); #endregion #region Protected Methods - protected IntPtr GetMainWindowHandle() + protected IntPtr GetMainWindowHandle() + { + if (Process == null || Process.HasExited) { - if (Process == null || Process.HasExited) - { - return IntPtr.Zero; - } - - Process.WaitForInputIdle(Settings.MaxPuttyWaitTime * 1000); - - Handle = IntPtr.Zero; - int startTicks = Environment.TickCount; - while (Handle == IntPtr.Zero && Environment.TickCount < startTicks + (Settings.MaxPuttyWaitTime * 1000)) - { - Process.Refresh(); - Handle = Process.MainWindowHandle; - if (Handle == IntPtr.Zero) - { - System.Threading.Thread.Sleep(0); - } - } - - return Handle; + return IntPtr.Zero; } - protected IntPtr GetControlHandle(string className, string text = "") + Process.WaitForInputIdle(My.Settings.Default.MaxPuttyWaitTime * 1000); + + Handle = IntPtr.Zero; + int startTicks = Environment.TickCount; + while (Handle == IntPtr.Zero && Environment.TickCount < startTicks + (My.Settings.Default.MaxPuttyWaitTime * 1000)) { - if (Process == null || Process.HasExited) - { - return IntPtr.Zero; - } + Process.Refresh(); + Handle = Process.MainWindowHandle; if (Handle == IntPtr.Zero) { - return IntPtr.Zero; + System.Threading.Thread.Sleep(0); } + } - if (Controls.Count == 0) - { - Controls = EnumWindows.EnumChildWindows(Handle); - } + return Handle; + } + + protected IntPtr GetControlHandle(string className, string text = "") + { + if (Process == null || Process.HasExited) + { + return IntPtr.Zero; + } + if (Handle == IntPtr.Zero) + { + return IntPtr.Zero; + } - System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); - IntPtr controlHandle = IntPtr.Zero; - foreach (IntPtr control in Controls) + if (Controls.Count == 0) + { + Controls = EnumWindows.EnumChildWindows(Handle); + } + + System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); + IntPtr controlHandle = IntPtr.Zero; + foreach (IntPtr control in Controls) + { + Win32.GetClassName(control, stringBuilder, stringBuilder.Capacity); + if (stringBuilder.ToString() == className) { - Win32.GetClassName(control, stringBuilder, stringBuilder.Capacity); - if (stringBuilder.ToString() == className) + if (string.IsNullOrEmpty(text)) { - if (string.IsNullOrEmpty(text)) + controlHandle = control; + break; + } + else + { + Win32.SendMessage(control, Win32.WM_GETTEXT, new IntPtr(stringBuilder.Capacity), stringBuilder); + if (stringBuilder.ToString() == text) { controlHandle = control; break; } - else - { - Win32.SendMessage(control, Win32.WM_GETTEXT, stringBuilder.Capacity, stringBuilder); - if (stringBuilder.ToString() == text) - { - controlHandle = control; - break; - } - } } } - - return controlHandle; } + + return controlHandle; + } #endregion #region Win32 - // ReSharper disable ClassNeverInstantiated.Local - private class Win32 - { - // ReSharper restore ClassNeverInstantiated.Local - // ReSharper disable InconsistentNaming - // ReSharper disable UnusedMethodReturnValue.Local - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern void GetClassName(IntPtr hWnd, System.Text.StringBuilder lpClassName, int nMaxCount); + // ReSharper disable ClassNeverInstantiated.Local + private class Win32 + { + // ReSharper restore ClassNeverInstantiated.Local + // ReSharper disable InconsistentNaming + // ReSharper disable UnusedMethodReturnValue.Local + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern void GetClassName(IntPtr hWnd, System.Text.StringBuilder lpClassName, int nMaxCount); - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam); + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam); - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, System.Text.StringBuilder lParam); + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, System.Text.StringBuilder lParam); - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern int GetDlgCtrlID(int hwndCtl); + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern int GetDlgCtrlID(int hwndCtl); - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); - public const int LB_ERR = -1; - public const int LB_SELECTSTRING = 0x18C; + public const int LB_ERR = -1; + public const int LB_SELECTSTRING = 0x18C; - public const int WM_SETTEXT = 0xC; - public const int WM_GETTEXT = 0xD; - public const int WM_COMMAND = 0x111; + public const int WM_SETTEXT = 0xC; + public const int WM_GETTEXT = 0xD; + public const int WM_COMMAND = 0x111; - public const int SW_HIDE = 0; - public const int SW_SHOW = 5; + public const int SW_HIDE = 0; + public const int SW_SHOW = 5; - public const int TRUE = 1; - // ReSharper restore UnusedMethodReturnValue.Local - // ReSharper restore InconsistentNaming - } -#endregion + public const int TRUE = 1; + // ReSharper restore UnusedMethodReturnValue.Local + // ReSharper restore InconsistentNaming } +#endregion + } } diff --git a/mRemoteV1/CS/Tools/PropertyGridCommandSite.cs b/mRemoteV1/CS/Tools/PropertyGridCommandSite.cs index c8a2d0046..54d5715dd 100644 --- a/mRemoteV1/CS/Tools/PropertyGridCommandSite.cs +++ b/mRemoteV1/CS/Tools/PropertyGridCommandSite.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,8 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - using System.ComponentModel; using System.ComponentModel.Design; using System.Reflection; @@ -20,14 +17,13 @@ namespace mRemoteNG.Tools { public class PropertyGridCommandSite : IMenuCommandService, ISite { - protected object TheObject; public PropertyGridCommandSite(object @object) { TheObject = @object; } -public DesignerVerbCollection Verbs + public DesignerVerbCollection Verbs { get { @@ -121,7 +117,7 @@ public DesignerVerbCollection Verbs } } -public System.ComponentModel.IComponent Component + public System.ComponentModel.IComponent Component { get { @@ -129,7 +125,7 @@ public System.ComponentModel.IComponent Component } } -public System.ComponentModel.IContainer Container + public System.ComponentModel.IContainer Container { get { @@ -137,7 +133,7 @@ public System.ComponentModel.IContainer Container } } -public bool DesignMode + public bool DesignMode { get { @@ -145,7 +141,7 @@ public bool DesignMode } } -public string Name + public string Name { get { @@ -195,22 +191,22 @@ public string Name } public class CommandAttribute : Attribute + { + private bool _Command = false; + public bool Command { - private bool _Command = false; -public bool Command + get { - get - { - return _Command; - } - set - { - _Command = value; - } + return _Command; } - public CommandAttribute(bool isCommand = true) + set { - Command = isCommand; + _Command = value; } } + public CommandAttribute(bool isCommand = true) + { + Command = isCommand; + } + } } diff --git a/mRemoteV1/CS/Tools/ReconnectGroup.Designer.cs b/mRemoteV1/CS/Tools/ReconnectGroup.Designer.cs index 33608a0b3..8d0443fe4 100644 --- a/mRemoteV1/CS/Tools/ReconnectGroup.Designer.cs +++ b/mRemoteV1/CS/Tools/ReconnectGroup.Designer.cs @@ -110,7 +110,7 @@ namespace mRemoteNG // //pbServerStatus // - this.pbServerStatus.Image = global::My.Resources.Resources.HostStatus_Check; + this.pbServerStatus.Image = My.Resources.HostStatus_Check; this.pbServerStatus.Location = new System.Drawing.Point(99, 23); this.pbServerStatus.Name = "pbServerStatus"; this.pbServerStatus.Size = new System.Drawing.Size(16, 16); diff --git a/mRemoteV1/CS/Tools/ReconnectGroup.cs b/mRemoteV1/CS/Tools/ReconnectGroup.cs index 2c9698655..fafb42a27 100644 --- a/mRemoteV1/CS/Tools/ReconnectGroup.cs +++ b/mRemoteV1/CS/Tools/ReconnectGroup.cs @@ -29,11 +29,11 @@ namespace mRemoteNG { if (value == true) { - SetStatusImage(global::My.Resources.HostStatus_On); + SetStatusImage(My.Resources.HostStatus_On); } else { - SetStatusImage(global::My.Resources.HostStatus_Off); + SetStatusImage(My.Resources.HostStatus_Off); } _ServerReady = value; diff --git a/mRemoteV1/CS/Tools/Tools.Controls.cs b/mRemoteV1/CS/Tools/Tools.Controls.cs index 019447320..d808fe6fd 100644 --- a/mRemoteV1/CS/Tools/Tools.Controls.cs +++ b/mRemoteV1/CS/Tools/Tools.Controls.cs @@ -86,7 +86,7 @@ namespace mRemoteNG.Tools { this._cMenCons = new ToolStripMenuItem(); this._cMenCons.Text = My.Language.strConnections; - this._cMenCons.Image = global::My.Resources.Root; + this._cMenCons.Image = My.Resources.Root; this._cMenSep1 = new ToolStripSeparator(); @@ -102,7 +102,7 @@ namespace mRemoteNG.Tools this._nI = new NotifyIcon(); this._nI.Text = "mRemote"; this._nI.BalloonTipText = "mRemote"; - this._nI.Icon = global::My.Resources.mRemote_Icon; + this._nI.Icon = My.Resources.mRemote_Icon; this._nI.ContextMenuStrip = this._cMen; this._nI.Visible = true; @@ -155,7 +155,7 @@ namespace mRemoteNG.Tools if (Tree.Node.GetNodeType(tNode) == Tree.Node.Type.Container) { - tMenItem.Image = global::My.Resources.Folder; + tMenItem.Image = My.Resources.Folder; tMenItem.Tag = tNode.Tag; menToolStrip.DropDownItems.Add(tMenItem); diff --git a/mRemoteV1/CS/Tree/Tree.Node.cs b/mRemoteV1/CS/Tree/Tree.Node.cs index 72ac7390b..f69533828 100644 --- a/mRemoteV1/CS/Tree/Tree.Node.cs +++ b/mRemoteV1/CS/Tree/Tree.Node.cs @@ -32,22 +32,13 @@ namespace mRemoteNG.Tree private static TreeView _TreeView; public static TreeView TreeView { - get - { - return _TreeView; - } - set - { - _TreeView = value; - } + get { return _TreeView; } + set { _TreeView = value; } } public static TreeNode SelectedNode { - get - { - return _TreeView.SelectedNode; - } + get { return _TreeView.SelectedNode; } set { treeNodeToBeSelected = value; @@ -72,7 +63,6 @@ namespace mRemoteNG.Tree } } - public static string GetConstantID(TreeNode node) { if (GetNodeType(node) == Type.Connection) @@ -525,7 +515,7 @@ namespace mRemoteNG.Tree if (newName.Length > 0) { - SelectedNode.Tag.Name = newName; + ((Connection.Info)SelectedNode.Tag).Name = newName; if (My.Settings.Default.SetHostnameLikeDisplayName) { diff --git a/mRemoteV1/CS/Controls/ListView.cs b/mRemoteV1/CS/UI/Controls/ListView.cs similarity index 99% rename from mRemoteV1/CS/Controls/ListView.cs rename to mRemoteV1/CS/UI/Controls/ListView.cs index 837836c87..b8219e4ba 100644 --- a/mRemoteV1/CS/Controls/ListView.cs +++ b/mRemoteV1/CS/UI/Controls/ListView.cs @@ -207,7 +207,7 @@ namespace mRemoteNG.Controls break; } - if (RightToLeft) + if (RightToLeft.ToString() != null) { format.FormatFlags = (System.Drawing.StringFormatFlags) (format.FormatFlags | StringFormatFlags.DirectionRightToLeft); } diff --git a/mRemoteV1/CS/Controls/QuickConnectComboBox.cs b/mRemoteV1/CS/UI/Controls/QuickConnectComboBox.cs similarity index 98% rename from mRemoteV1/CS/Controls/QuickConnectComboBox.cs rename to mRemoteV1/CS/UI/Controls/QuickConnectComboBox.cs index 62e6b3d60..1201cb802 100644 --- a/mRemoteV1/CS/Controls/QuickConnectComboBox.cs +++ b/mRemoteV1/CS/UI/Controls/QuickConnectComboBox.cs @@ -17,7 +17,6 @@ namespace mRemoteNG.Controls { public class QuickConnectComboBox : ToolStripComboBox { - private ComboBox _comboBox; private bool _ignoreEnter = false; @@ -97,7 +96,7 @@ namespace mRemoteNG.Controls if (drawItem is HistoryItem) { HistoryItem historyItem = (HistoryItem) drawItem; - drawString = historyItem.ToString[true]; + drawString = historyItem.ToString(true); } else { @@ -188,7 +187,7 @@ namespace mRemoteNG.Controls } } -#region Events + #region Events public class ConnectRequestedEventArgs : EventArgs { @@ -199,7 +198,7 @@ namespace mRemoteNG.Controls private string _connectionString; -public string ConnectionString + public string ConnectionString { get { diff --git a/mRemoteV1/CS/UI/Controls/TextBox.cs b/mRemoteV1/CS/UI/Controls/TextBox.cs new file mode 100644 index 000000000..0de3b7b96 --- /dev/null +++ b/mRemoteV1/CS/UI/Controls/TextBox.cs @@ -0,0 +1,74 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using System.ComponentModel; + + +// Adapted from http://stackoverflow.com/a/3678888/2101395 + +namespace mRemoteNG.Controls +{ + public class TextBox : System.Windows.Forms.TextBox + { + #region Public Properties + [Category("Behavior"), + DefaultValue(false)]private bool _SelectAllOnFocus = false; + public bool SelectAllOnFocus + { + get + { + return _SelectAllOnFocus; + } + set + { + _SelectAllOnFocus = value; + } + } + #endregion + + #region Protected Methods + protected override void OnEnter(EventArgs e) + { + base.OnEnter(e); + + if (MouseButtons == MouseButtons.None) + { + SelectAll(); + _focusHandled = true; + } + } + + protected override void OnLeave(EventArgs e) + { + base.OnLeave(e); + + _focusHandled = false; + } + + protected override void OnMouseUp(MouseEventArgs e) + { + base.OnMouseUp(e); + + if (!_focusHandled) + { + if (SelectionLength == 0) + { + SelectAll(); + } + _focusHandled = true; + } + } + #endregion + + #region Private Fields + private bool _focusHandled = false; + #endregion + } +} \ No newline at end of file diff --git a/mRemoteV1/CS/Controls/ToolStripSplitButton.cs b/mRemoteV1/CS/UI/Controls/ToolStripSplitButton.cs similarity index 89% rename from mRemoteV1/CS/Controls/ToolStripSplitButton.cs rename to mRemoteV1/CS/UI/Controls/ToolStripSplitButton.cs index 52ddd04ed..dbfdc1fce 100644 --- a/mRemoteV1/CS/Controls/ToolStripSplitButton.cs +++ b/mRemoteV1/CS/UI/Controls/ToolStripSplitButton.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,7 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG @@ -19,7 +17,7 @@ namespace mRemoteNG public class ToolStripSplitButton : System.Windows.Forms.ToolStripSplitButton { -public ToolStripDropDown DropDown + public ToolStripDropDown DropDown { get { @@ -30,7 +28,7 @@ public ToolStripDropDown DropDown if (base.DropDown != value) { base.DropDown = value; - base.DropDown.Closing += new System.EventHandler(DropDown_Closing); + base.DropDown.Closing += DropDown_Closing; } } } diff --git a/mRemoteV1/CS/UI/Forms/ExportForm.Designer.cs b/mRemoteV1/CS/UI/Forms/ExportForm.Designer.cs new file mode 100644 index 000000000..c07aed90a --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/ExportForm.Designer.cs @@ -0,0 +1,313 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms +{ + public partial class ExportForm : Form + { + #region Windows Form Designer generated code + + private void InitializeComponent() + { + this.btnCancel = new System.Windows.Forms.Button(); + this.Load += new System.EventHandler(ExportForm_Load); + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + this.btnOK = new System.Windows.Forms.Button(); + this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + this.lblUncheckProperties = new System.Windows.Forms.Label(); + this.chkUsername = new System.Windows.Forms.CheckBox(); + this.chkPassword = new System.Windows.Forms.CheckBox(); + this.chkDomain = new System.Windows.Forms.CheckBox(); + this.chkInheritance = new System.Windows.Forms.CheckBox(); + this.txtFileName = new System.Windows.Forms.TextBox(); + this.txtFileName.TextChanged += new System.EventHandler(this.txtFileName_TextChanged); + this.btnBrowse = new System.Windows.Forms.Button(); + this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click); + this.grpProperties = new System.Windows.Forms.GroupBox(); + this.grpFile = new System.Windows.Forms.GroupBox(); + this.lblFileFormat = new System.Windows.Forms.Label(); + this.lblFileName = new System.Windows.Forms.Label(); + this.cboFileFormat = new System.Windows.Forms.ComboBox(); + this.grpItems = new System.Windows.Forms.GroupBox(); + this.lblSelectedConnection = new System.Windows.Forms.Label(); + this.lblSelectedFolder = new System.Windows.Forms.Label(); + this.rdoExportSelectedConnection = new System.Windows.Forms.RadioButton(); + this.rdoExportSelectedFolder = new System.Windows.Forms.RadioButton(); + this.rdoExportEverything = new System.Windows.Forms.RadioButton(); + this.grpProperties.SuspendLayout(); + this.grpFile.SuspendLayout(); + this.grpItems.SuspendLayout(); + this.SuspendLayout(); + // + //btnCancel + // + this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.btnCancel.Location = new System.Drawing.Point(447, 473); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.TabIndex = 3; + this.btnCancel.Text = "&Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; + // + //btnOK + // + this.btnOK.Location = new System.Drawing.Point(366, 473); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(75, 23); + this.btnOK.TabIndex = 2; + this.btnOK.Text = "&OK"; + this.btnOK.UseVisualStyleBackColor = true; + // + //lblUncheckProperties + // + this.lblUncheckProperties.AutoSize = true; + this.lblUncheckProperties.Location = new System.Drawing.Point(12, 134); + this.lblUncheckProperties.Name = "lblUncheckProperties"; + this.lblUncheckProperties.Size = new System.Drawing.Size(244, 13); + this.lblUncheckProperties.TabIndex = 4; + this.lblUncheckProperties.Text = "Uncheck the properties you want not to be saved!"; + // + //chkUsername + // + this.chkUsername.AutoSize = true; + this.chkUsername.Checked = true; + this.chkUsername.CheckState = System.Windows.Forms.CheckState.Checked; + this.chkUsername.Location = new System.Drawing.Point(15, 32); + this.chkUsername.Name = "chkUsername"; + this.chkUsername.Size = new System.Drawing.Size(74, 17); + this.chkUsername.TabIndex = 0; + this.chkUsername.Text = "Username"; + this.chkUsername.UseVisualStyleBackColor = true; + // + //chkPassword + // + this.chkPassword.AutoSize = true; + this.chkPassword.Checked = true; + this.chkPassword.CheckState = System.Windows.Forms.CheckState.Checked; + this.chkPassword.Location = new System.Drawing.Point(15, 55); + this.chkPassword.Name = "chkPassword"; + this.chkPassword.Size = new System.Drawing.Size(72, 17); + this.chkPassword.TabIndex = 1; + this.chkPassword.Text = "Password"; + this.chkPassword.UseVisualStyleBackColor = true; + // + //chkDomain + // + this.chkDomain.AutoSize = true; + this.chkDomain.Checked = true; + this.chkDomain.CheckState = System.Windows.Forms.CheckState.Checked; + this.chkDomain.Location = new System.Drawing.Point(15, 78); + this.chkDomain.Name = "chkDomain"; + this.chkDomain.Size = new System.Drawing.Size(62, 17); + this.chkDomain.TabIndex = 2; + this.chkDomain.Text = "Domain"; + this.chkDomain.UseVisualStyleBackColor = true; + // + //chkInheritance + // + this.chkInheritance.AutoSize = true; + this.chkInheritance.Checked = true; + this.chkInheritance.CheckState = System.Windows.Forms.CheckState.Checked; + this.chkInheritance.Location = new System.Drawing.Point(15, 101); + this.chkInheritance.Name = "chkInheritance"; + this.chkInheritance.Size = new System.Drawing.Size(79, 17); + this.chkInheritance.TabIndex = 3; + this.chkInheritance.Text = "Inheritance"; + this.chkInheritance.UseVisualStyleBackColor = true; + // + //txtFileName + // + this.txtFileName.Location = new System.Drawing.Point(15, 48); + this.txtFileName.Name = "txtFileName"; + this.txtFileName.Size = new System.Drawing.Size(396, 20); + this.txtFileName.TabIndex = 1; + // + //btnBrowse + // + this.btnBrowse.Location = new System.Drawing.Point(417, 46); + this.btnBrowse.Name = "btnBrowse"; + this.btnBrowse.Size = new System.Drawing.Size(75, 23); + this.btnBrowse.TabIndex = 2; + this.btnBrowse.Text = "&Browse"; + this.btnBrowse.UseVisualStyleBackColor = true; + // + //grpProperties + // + this.grpProperties.Controls.Add(this.lblUncheckProperties); + this.grpProperties.Controls.Add(this.chkInheritance); + this.grpProperties.Controls.Add(this.chkUsername); + this.grpProperties.Controls.Add(this.chkDomain); + this.grpProperties.Controls.Add(this.chkPassword); + this.grpProperties.Location = new System.Drawing.Point(12, 304); + this.grpProperties.Name = "grpProperties"; + this.grpProperties.Size = new System.Drawing.Size(510, 163); + this.grpProperties.TabIndex = 1; + this.grpProperties.TabStop = false; + this.grpProperties.Text = "Export Properties"; + // + //grpFile + // + this.grpFile.Controls.Add(this.lblFileFormat); + this.grpFile.Controls.Add(this.lblFileName); + this.grpFile.Controls.Add(this.cboFileFormat); + this.grpFile.Controls.Add(this.txtFileName); + this.grpFile.Controls.Add(this.btnBrowse); + this.grpFile.Location = new System.Drawing.Point(12, 12); + this.grpFile.Name = "grpFile"; + this.grpFile.Size = new System.Drawing.Size(510, 140); + this.grpFile.TabIndex = 0; + this.grpFile.TabStop = false; + this.grpFile.Text = "Export File"; + // + //lblFileFormat + // + this.lblFileFormat.AutoSize = true; + this.lblFileFormat.Location = new System.Drawing.Point(12, 84); + this.lblFileFormat.Name = "lblFileFormat"; + this.lblFileFormat.Size = new System.Drawing.Size(61, 13); + this.lblFileFormat.TabIndex = 3; + this.lblFileFormat.Text = "File &Format:"; + // + //lblFileName + // + this.lblFileName.AutoSize = true; + this.lblFileName.Location = new System.Drawing.Point(12, 32); + this.lblFileName.Name = "lblFileName"; + this.lblFileName.Size = new System.Drawing.Size(52, 13); + this.lblFileName.TabIndex = 0; + this.lblFileName.Text = "Filename:"; + // + //cboFileFormat + // + this.cboFileFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboFileFormat.FormattingEnabled = true; + this.cboFileFormat.Location = new System.Drawing.Point(15, 100); + this.cboFileFormat.Name = "cboFileFormat"; + this.cboFileFormat.Size = new System.Drawing.Size(294, 21); + this.cboFileFormat.TabIndex = 4; + // + //grpItems + // + this.grpItems.Controls.Add(this.lblSelectedConnection); + this.grpItems.Controls.Add(this.lblSelectedFolder); + this.grpItems.Controls.Add(this.rdoExportSelectedConnection); + this.grpItems.Controls.Add(this.rdoExportSelectedFolder); + this.grpItems.Controls.Add(this.rdoExportEverything); + this.grpItems.Location = new System.Drawing.Point(12, 158); + this.grpItems.Name = "grpItems"; + this.grpItems.Size = new System.Drawing.Size(510, 140); + this.grpItems.TabIndex = 4; + this.grpItems.TabStop = false; + this.grpItems.Text = "Export Items"; + // + //lblSelectedConnection + // + this.lblSelectedConnection.AutoSize = true; + this.lblSelectedConnection.Location = new System.Drawing.Point(48, 111); + this.lblSelectedConnection.Name = "lblSelectedConnection"; + this.lblSelectedConnection.Size = new System.Drawing.Size(92, 13); + this.lblSelectedConnection.TabIndex = 4; + this.lblSelectedConnection.Text = "Connection Name"; + // + //lblSelectedFolder + // + this.lblSelectedFolder.AutoSize = true; + this.lblSelectedFolder.Location = new System.Drawing.Point(48, 75); + this.lblSelectedFolder.Name = "lblSelectedFolder"; + this.lblSelectedFolder.Size = new System.Drawing.Size(67, 13); + this.lblSelectedFolder.TabIndex = 3; + this.lblSelectedFolder.Text = "Folder Name"; + // + //rdoExportSelectedConnection + // + this.rdoExportSelectedConnection.AutoSize = true; + this.rdoExportSelectedConnection.Location = new System.Drawing.Point(15, 91); + this.rdoExportSelectedConnection.Name = "rdoExportSelectedConnection"; + this.rdoExportSelectedConnection.Size = new System.Drawing.Size(215, 17); + this.rdoExportSelectedConnection.TabIndex = 2; + this.rdoExportSelectedConnection.TabStop = true; + this.rdoExportSelectedConnection.Text = "Export the currently selected connection"; + this.rdoExportSelectedConnection.UseVisualStyleBackColor = true; + // + //rdoExportSelectedFolder + // + this.rdoExportSelectedFolder.AutoSize = true; + this.rdoExportSelectedFolder.Location = new System.Drawing.Point(15, 55); + this.rdoExportSelectedFolder.Name = "rdoExportSelectedFolder"; + this.rdoExportSelectedFolder.Size = new System.Drawing.Size(188, 17); + this.rdoExportSelectedFolder.TabIndex = 1; + this.rdoExportSelectedFolder.TabStop = true; + this.rdoExportSelectedFolder.Text = "Export the currently selected folder"; + this.rdoExportSelectedFolder.UseVisualStyleBackColor = true; + // + //rdoExportEverything + // + this.rdoExportEverything.AutoSize = true; + this.rdoExportEverything.Checked = true; + this.rdoExportEverything.Location = new System.Drawing.Point(15, 32); + this.rdoExportEverything.Name = "rdoExportEverything"; + this.rdoExportEverything.Size = new System.Drawing.Size(107, 17); + this.rdoExportEverything.TabIndex = 0; + this.rdoExportEverything.TabStop = true; + this.rdoExportEverything.Text = "Export everything"; + this.rdoExportEverything.UseVisualStyleBackColor = true; + // + //ExportForm + // + this.AcceptButton = this.btnOK; + this.CancelButton = this.btnCancel; + this.ClientSize = new System.Drawing.Size(534, 508); + this.Controls.Add(this.grpItems); + this.Controls.Add(this.grpFile); + this.Controls.Add(this.grpProperties); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOK); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Icon = My.Resources.Connections_SaveAs_Icon; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "ExportForm"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Export Connections"; + this.grpProperties.ResumeLayout(false); + this.grpProperties.PerformLayout(); + this.grpFile.ResumeLayout(false); + this.grpFile.PerformLayout(); + this.grpItems.ResumeLayout(false); + this.grpItems.PerformLayout(); + this.ResumeLayout(false); + + } + private System.Windows.Forms.Button btnCancel; + private System.Windows.Forms.Button btnOK; + private System.Windows.Forms.Label lblUncheckProperties; + private System.Windows.Forms.CheckBox chkUsername; + private System.Windows.Forms.CheckBox chkPassword; + private System.Windows.Forms.CheckBox chkDomain; + private System.Windows.Forms.CheckBox chkInheritance; + private System.Windows.Forms.TextBox txtFileName; + private System.Windows.Forms.Button btnBrowse; + private System.Windows.Forms.GroupBox grpProperties; + private System.Windows.Forms.GroupBox grpFile; + private System.Windows.Forms.Label lblFileFormat; + private System.Windows.Forms.Label lblFileName; + private System.Windows.Forms.ComboBox cboFileFormat; + private System.Windows.Forms.GroupBox grpItems; + private System.Windows.Forms.Label lblSelectedConnection; + private System.Windows.Forms.Label lblSelectedFolder; + private System.Windows.Forms.RadioButton rdoExportSelectedConnection; + private System.Windows.Forms.RadioButton rdoExportSelectedFolder; + private System.Windows.Forms.RadioButton rdoExportEverything; + #endregion + } +} diff --git a/mRemoteV1/CS/UI/Forms/ExportForm.cs b/mRemoteV1/CS/UI/Forms/ExportForm.cs new file mode 100644 index 000000000..5ea4ef165 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/ExportForm.cs @@ -0,0 +1,338 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using System.ComponentModel; +using mRemoteNG.Config; +using mRemoteNG.App; +using mRemoteNG.My; + + +namespace mRemoteNG.Forms +{ + public partial class ExportForm : Form + { + #region Public Properties + public string FileName + { + get + { + return txtFileName.Text; + } + set + { + txtFileName.Text = value; + } + } + + public Config.Connections.Save.Format SaveFormat + { + get + { + ExportFormat exportFormat = cboFileFormat.SelectedItem as ExportFormat; + if (exportFormat == null) + { + return Config.Connections.Save.Format.mRXML; + } + else + { + return exportFormat.Format; + } + } + set + { + foreach (object item in cboFileFormat.Items) + { + ExportFormat exportFormat = item as ExportFormat; + if (exportFormat == null) + { + continue; + } + if (exportFormat.Format == value) + { + cboFileFormat.SelectedItem = item; + break; + } + } + } + } + + public ExportScope Scope + { + get + { + if (rdoExportSelectedFolder.Checked) + { + return ExportScope.SelectedFolder; + } + else if (rdoExportSelectedConnection.Checked) + { + return ExportScope.SelectedConnection; + } + else + { + return ExportScope.Everything; + } + } + set + { + switch (value) + { + case ExportScope.Everything: + rdoExportEverything.Checked = true; + break; + case ExportScope.SelectedFolder: + rdoExportSelectedFolder.Checked = true; + break; + case ExportScope.SelectedConnection: + rdoExportSelectedConnection.Checked = true; + break; + } + } + } + + private TreeNode _selectedFolder; + public TreeNode SelectedFolder + { + get + { + return _selectedFolder; + } + set + { + _selectedFolder = value; + if (value == null) + { + lblSelectedFolder.Text = string.Empty; + } + else + { + lblSelectedFolder.Text = value.Text; + } + rdoExportSelectedFolder.Enabled = value != null; + } + } + + private TreeNode _selectedConnection; + public TreeNode SelectedConnection + { + get + { + return _selectedConnection; + } + set + { + _selectedConnection = value; + if (value == null) + { + lblSelectedConnection.Text = string.Empty; + } + else + { + lblSelectedConnection.Text = value.Text; + } + rdoExportSelectedConnection.Enabled = value != null; + } + } + + public bool IncludeUsername + { + get + { + return chkUsername.Checked; + } + set + { + chkUsername.Checked = value; + } + } + + public bool IncludePassword + { + get + { + return chkPassword.Checked; + } + set + { + chkPassword.Checked = value; + } + } + + public bool IncludeDomain + { + get + { + return chkDomain.Checked; + } + set + { + chkDomain.Checked = value; + } + } + + public bool IncludeInheritance + { + get + { + return chkInheritance.Checked; + } + set + { + chkInheritance.Checked = value; + } + } + #endregion + + #region Constructors + public ExportForm() + { + InitializeComponent(); + + Runtime.FontOverride(this); + + SelectedFolder = null; + SelectedConnection = null; + + btnOK.Enabled = false; + } + #endregion + + #region Private Methods + #region Event Handlers + public void ExportForm_Load(object sender, EventArgs e) + { + cboFileFormat.Items.Clear(); + cboFileFormat.Items.Add(new ExportFormat(Config.Connections.Save.Format.mRXML)); + cboFileFormat.Items.Add(new ExportFormat(Config.Connections.Save.Format.mRCSV)); + cboFileFormat.Items.Add(new ExportFormat(Config.Connections.Save.Format.vRDCSV)); + cboFileFormat.SelectedIndex = 0; + + ApplyLanguage(); + } + + public void txtFileName_TextChanged(System.Object sender, EventArgs e) + { + btnOK.Enabled = !string.IsNullOrEmpty(txtFileName.Text); + } + + public void btnBrowse_Click(System.Object sender, EventArgs e) + { + using (SaveFileDialog saveFileDialog = new SaveFileDialog()) + { + saveFileDialog.CheckPathExists = true; + saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal); + saveFileDialog.OverwritePrompt = true; + + List fileTypes = new List(); + fileTypes.AddRange(new[] {Language.strFiltermRemoteXML, "*.xml"}); + fileTypes.AddRange(new[] {Language.strFiltermRemoteCSV, "*.csv"}); + fileTypes.AddRange(new[] {Language.strFiltervRD2008CSV, "*.csv"}); + fileTypes.AddRange(new[] {Language.strFilterAll, "*.*"}); + + saveFileDialog.Filter = string.Join("|", fileTypes.ToArray()); + + if (!(saveFileDialog.ShowDialog(this) == DialogResult.OK)) + { + return ; + } + + txtFileName.Text = saveFileDialog.FileName; + } + + } + + public void btnOK_Click(System.Object sender, EventArgs e) + { + DialogResult = DialogResult.OK; + } + + public void btnCancel_Click(System.Object sender, EventArgs e) + { + DialogResult = DialogResult.Cancel; + } + #endregion + + private void ApplyLanguage() + { + Text = Language.strExport; + + grpFile.Text = Language.strExportFile; + lblFileName.Text = Language.strLabelFilename; + btnBrowse.Text = Language.strButtonBrowse; + lblFileFormat.Text = Language.strFileFormatLabel; + + grpItems.Text = Language.strExportItems; + rdoExportEverything.Text = Language.strExportEverything; + rdoExportSelectedFolder.Text = Language.strExportSelectedFolder; + rdoExportSelectedConnection.Text = Language.strExportSelectedConnection; + + grpProperties.Text = Language.strExportProperties; + chkUsername.Text = Language.strCheckboxUsername; + chkPassword.Text = Language.strCheckboxPassword; + chkDomain.Text = Language.strCheckboxDomain; + chkInheritance.Text = Language.strCheckboxInheritance; + lblUncheckProperties.Text = Language.strUncheckProperties; + + btnOK.Text = Language.strButtonOK; + btnCancel.Text = Language.strButtonCancel; + } + #endregion + + #region Public Enumerations + public enum ExportScope + { + Everything, + SelectedFolder, + SelectedConnection + } + #endregion + + #region Private Classes + [ImmutableObject(true)] + private class ExportFormat + { + #region Public Properties + private Config.Connections.Save.Format _format; + public Config.Connections.Save.Format Format + { + get + { + return _format; + } + } + #endregion + + #region Constructors + public ExportFormat(Config.Connections.Save.Format format) + { + _format = format; + } + #endregion + + #region Public Methods + public override string ToString() + { + switch (Format) + { + case Config.Connections.Save.Format.mRXML: + return Language.strMremoteNgXml; + case Config.Connections.Save.Format.mRCSV: + return Language.strMremoteNgCsv; + case Config.Connections.Save.Format.vRDCSV: + return Language.strVisionAppRemoteDesktopCsv; + default: + return Format.ToString(); + } + } + #endregion + } + #endregion + } +} diff --git a/mRemoteV1/CS/Forms/ExportForm.resx b/mRemoteV1/CS/UI/Forms/ExportForm.resx similarity index 100% rename from mRemoteV1/CS/Forms/ExportForm.resx rename to mRemoteV1/CS/UI/Forms/ExportForm.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsForm.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsForm.Designer.cs new file mode 100644 index 000000000..b5db4921a --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsForm.Designer.cs @@ -0,0 +1,115 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public + partial class OptionsForm : System.Windows.Forms.Form + { + + //Form overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsForm)); + mRemoteNG.Controls.Alignment Alignment2 = new mRemoteNG.Controls.Alignment(); + this.PagePanel = new System.Windows.Forms.Panel(); + base.Load += new System.EventHandler(OptionsForm_Load); + base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(OptionsForm_FormClosing); + this.OkButton = new System.Windows.Forms.Button(); + this.OkButton.Click += new System.EventHandler(this.OkButton_Click); + this.CancelButtonControl = new System.Windows.Forms.Button(); + this.CancelButtonControl.Click += new System.EventHandler(this.CancelButtonControl_Click); + this.PageListView = new mRemoteNG.Controls.ListView(); + this.PageListView.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.PageListView_ItemSelectionChanged); + this.PageListView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PageListView_MouseUp); + this.SuspendLayout(); + // + //PagePanel + // + resources.ApplyResources(this.PagePanel, "PagePanel"); + this.PagePanel.Name = "PagePanel"; + // + //OkButton + // + resources.ApplyResources(this.OkButton, "OkButton"); + this.OkButton.Name = "OkButton"; + this.OkButton.UseVisualStyleBackColor = true; + // + //CancelButtonControl + // + this.CancelButtonControl.DialogResult = System.Windows.Forms.DialogResult.Cancel; + resources.ApplyResources(this.CancelButtonControl, "CancelButtonControl"); + this.CancelButtonControl.Name = "CancelButtonControl"; + this.CancelButtonControl.UseVisualStyleBackColor = true; + // + //PageListView + // + this.PageListView.InactiveHighlightBackColor = System.Drawing.SystemColors.Highlight; + this.PageListView.InactiveHighlightBorderColor = System.Drawing.SystemColors.HotTrack; + this.PageListView.InactiveHighlightForeColor = System.Drawing.SystemColors.HighlightText; + Alignment2.Horizontal = mRemoteNG.Controls.HorizontalAlignment.Left; + Alignment2.Vertical = mRemoteNG.Controls.VerticalAlignment.Middle; + this.PageListView.LabelAlignment = Alignment2; + resources.ApplyResources(this.PageListView, "PageListView"); + this.PageListView.MultiSelect = false; + this.PageListView.Name = "PageListView"; + this.PageListView.OwnerDraw = true; + this.PageListView.ShowFocusCues = false; + this.PageListView.TileSize = new System.Drawing.Size(150, 30); + this.PageListView.UseCompatibleStateImageBehavior = false; + this.PageListView.View = System.Windows.Forms.View.Tile; + // + //OptionsForm + // + this.AcceptButton = this.OkButton; + resources.ApplyResources(this, "$this"); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.CancelButtonControl; + this.Controls.Add(this.CancelButtonControl); + this.Controls.Add(this.OkButton); + this.Controls.Add(this.PagePanel); + this.Controls.Add(this.PageListView); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "OptionsForm"; + this.ShowInTaskbar = false; + this.ResumeLayout(false); + + } + internal mRemoteNG.Controls.ListView PageListView; + internal System.Windows.Forms.Panel PagePanel; + internal System.Windows.Forms.Button OkButton; + internal System.Windows.Forms.Button CancelButtonControl; + } +} diff --git a/mRemoteV1/CS/Forms/OptionsForm.cs b/mRemoteV1/CS/UI/Forms/OptionsForm.cs similarity index 96% rename from mRemoteV1/CS/Forms/OptionsForm.cs rename to mRemoteV1/CS/UI/Forms/OptionsForm.cs index 2c77bd305..ba77d1673 100644 --- a/mRemoteV1/CS/Forms/OptionsForm.cs +++ b/mRemoteV1/CS/UI/Forms/OptionsForm.cs @@ -24,7 +24,7 @@ namespace mRemoteNG.Forms InitializeComponent(); // Add any initialization after the InitializeComponent() call. - FontOverride(this); + Runtime.FontOverride(this); _pages.Add(new Forms.OptionsPages.StartupExitPage(), new PageInfo()); _pages.Add(new AppearancePage(), new PageInfo()); @@ -65,8 +65,8 @@ namespace mRemoteNG.Forms { foreach (KeyValuePair keyValuePair in _pages) { - OptionsPage page = KeyValuePair.Key; - PageInfo pageInfo = KeyValuePair.Value; + OptionsPage page = keyValuePair.Key; + PageInfo pageInfo = keyValuePair.Value; _pageIconImageList.Images.Add(pageInfo.IconKey, page.PageIcon); pageInfo.ListViewItem = PageListView.Items.Add(page.PageName, pageInfo.IconKey); } @@ -210,8 +210,8 @@ namespace mRemoteNG.Forms { foreach (KeyValuePair keyValuePair in _pages) { - OptionsPage page = KeyValuePair.Key; - PageInfo pageInfo = KeyValuePair.Value; + OptionsPage page = keyValuePair.Key; + PageInfo pageInfo = keyValuePair.Value; if (pageInfo.ListViewItem == listViewItem) { return page; diff --git a/mRemoteV1/CS/Forms/OptionsForm.resx b/mRemoteV1/CS/UI/Forms/OptionsForm.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsForm.resx rename to mRemoteV1/CS/UI/Forms/OptionsForm.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.Designer.cs new file mode 100644 index 000000000..7c348e9bd --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.Designer.cs @@ -0,0 +1,284 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class AdvancedPage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AdvancedPage)); + this.chkWriteLogFile = new System.Windows.Forms.CheckBox(); + this.chkAutomaticallyGetSessionInfo = new System.Windows.Forms.CheckBox(); + this.lblXulRunnerPath = new System.Windows.Forms.Label(); + this.lblMaximumPuttyWaitTime = new System.Windows.Forms.Label(); + this.chkEncryptCompleteFile = new System.Windows.Forms.CheckBox(); + this.chkAutomaticReconnect = new System.Windows.Forms.CheckBox(); + this.btnBrowseXulRunnerPath = new System.Windows.Forms.Button(); + this.btnBrowseXulRunnerPath.Click += new System.EventHandler(this.btnBrowseXulRunnerPath_Click); + this.numPuttyWaitTime = new System.Windows.Forms.NumericUpDown(); + this.chkUseCustomPuttyPath = new System.Windows.Forms.CheckBox(); + this.chkUseCustomPuttyPath.CheckedChanged += new System.EventHandler(this.chkUseCustomPuttyPath_CheckedChanged); + this.lblConfigurePuttySessions = new System.Windows.Forms.Label(); + this.txtXULrunnerPath = new System.Windows.Forms.TextBox(); + this.numUVNCSCPort = new System.Windows.Forms.NumericUpDown(); + this.txtCustomPuttyPath = new System.Windows.Forms.TextBox(); + this.txtCustomPuttyPath.TextChanged += new System.EventHandler(this.txtCustomPuttyPath_TextChanged); + this.btnLaunchPutty = new System.Windows.Forms.Button(); + this.btnLaunchPutty.Click += new System.EventHandler(this.btnLaunchPutty_Click); + this.lblUVNCSCPort = new System.Windows.Forms.Label(); + this.lblSeconds = new System.Windows.Forms.Label(); + this.btnBrowseCustomPuttyPath = new System.Windows.Forms.Button(); + this.btnBrowseCustomPuttyPath.Click += new System.EventHandler(this.btnBrowseCustomPuttyPath_Click); + ((System.ComponentModel.ISupportInitialize) this.numPuttyWaitTime).BeginInit(); + ((System.ComponentModel.ISupportInitialize) this.numUVNCSCPort).BeginInit(); + this.SuspendLayout(); + // + //chkWriteLogFile + // + this.chkWriteLogFile.AutoSize = true; + this.chkWriteLogFile.Location = new System.Drawing.Point(3, 0); + this.chkWriteLogFile.Name = "chkWriteLogFile"; + this.chkWriteLogFile.Size = new System.Drawing.Size(171, 17); + this.chkWriteLogFile.TabIndex = 17; + this.chkWriteLogFile.Text = "Write log file (mRemoteNG.log)"; + this.chkWriteLogFile.UseVisualStyleBackColor = true; + // + //chkAutomaticallyGetSessionInfo + // + this.chkAutomaticallyGetSessionInfo.AutoSize = true; + this.chkAutomaticallyGetSessionInfo.Location = new System.Drawing.Point(3, 46); + this.chkAutomaticallyGetSessionInfo.Name = "chkAutomaticallyGetSessionInfo"; + this.chkAutomaticallyGetSessionInfo.Size = new System.Drawing.Size(198, 17); + this.chkAutomaticallyGetSessionInfo.TabIndex = 19; + this.chkAutomaticallyGetSessionInfo.Text = "Automatically get session information"; + this.chkAutomaticallyGetSessionInfo.UseVisualStyleBackColor = true; + // + //lblXulRunnerPath + // + this.lblXulRunnerPath.AutoSize = true; + this.lblXulRunnerPath.Location = new System.Drawing.Point(3, 217); + this.lblXulRunnerPath.Name = "lblXulRunnerPath"; + this.lblXulRunnerPath.Size = new System.Drawing.Size(85, 13); + this.lblXulRunnerPath.TabIndex = 29; + this.lblXulRunnerPath.Text = "XULrunner path:"; + // + //lblMaximumPuttyWaitTime + // + this.lblMaximumPuttyWaitTime.Location = new System.Drawing.Point(3, 185); + this.lblMaximumPuttyWaitTime.Name = "lblMaximumPuttyWaitTime"; + this.lblMaximumPuttyWaitTime.Size = new System.Drawing.Size(364, 13); + this.lblMaximumPuttyWaitTime.TabIndex = 26; + this.lblMaximumPuttyWaitTime.Text = "Maximum PuTTY wait time:"; + this.lblMaximumPuttyWaitTime.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //chkEncryptCompleteFile + // + this.chkEncryptCompleteFile.AutoSize = true; + this.chkEncryptCompleteFile.Location = new System.Drawing.Point(3, 23); + this.chkEncryptCompleteFile.Name = "chkEncryptCompleteFile"; + this.chkEncryptCompleteFile.Size = new System.Drawing.Size(180, 17); + this.chkEncryptCompleteFile.TabIndex = 18; + this.chkEncryptCompleteFile.Text = "Encrypt complete connection file"; + this.chkEncryptCompleteFile.UseVisualStyleBackColor = true; + // + //chkAutomaticReconnect + // + this.chkAutomaticReconnect.AutoSize = true; + this.chkAutomaticReconnect.Location = new System.Drawing.Point(3, 69); + this.chkAutomaticReconnect.Name = "chkAutomaticReconnect"; + this.chkAutomaticReconnect.Size = new System.Drawing.Size(399, 17); + this.chkAutomaticReconnect.TabIndex = 20; + this.chkAutomaticReconnect.Text = "Automatically try to reconnect when disconnected from server (RDP && ICA only)"; + this.chkAutomaticReconnect.UseVisualStyleBackColor = true; + // + //btnBrowseXulRunnerPath + // + this.btnBrowseXulRunnerPath.Location = new System.Drawing.Point(373, 233); + this.btnBrowseXulRunnerPath.Name = "btnBrowseXulRunnerPath"; + this.btnBrowseXulRunnerPath.Size = new System.Drawing.Size(75, 23); + this.btnBrowseXulRunnerPath.TabIndex = 31; + this.btnBrowseXulRunnerPath.Text = "Browse..."; + this.btnBrowseXulRunnerPath.UseVisualStyleBackColor = true; + // + //numPuttyWaitTime + // + this.numPuttyWaitTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.numPuttyWaitTime.Location = new System.Drawing.Point(373, 183); + this.numPuttyWaitTime.Maximum = new decimal(new int[] {999, 0, 0, 0}); + this.numPuttyWaitTime.Name = "numPuttyWaitTime"; + this.numPuttyWaitTime.Size = new System.Drawing.Size(49, 20); + this.numPuttyWaitTime.TabIndex = 27; + this.numPuttyWaitTime.Value = new decimal(new int[] {5, 0, 0, 0}); + // + //chkUseCustomPuttyPath + // + this.chkUseCustomPuttyPath.AutoSize = true; + this.chkUseCustomPuttyPath.Location = new System.Drawing.Point(3, 92); + this.chkUseCustomPuttyPath.Name = "chkUseCustomPuttyPath"; + this.chkUseCustomPuttyPath.Size = new System.Drawing.Size(146, 17); + this.chkUseCustomPuttyPath.TabIndex = 21; + this.chkUseCustomPuttyPath.Text = "Use custom PuTTY path:"; + this.chkUseCustomPuttyPath.UseVisualStyleBackColor = true; + // + //lblConfigurePuttySessions + // + this.lblConfigurePuttySessions.Location = new System.Drawing.Point(3, 154); + this.lblConfigurePuttySessions.Name = "lblConfigurePuttySessions"; + this.lblConfigurePuttySessions.Size = new System.Drawing.Size(364, 13); + this.lblConfigurePuttySessions.TabIndex = 24; + this.lblConfigurePuttySessions.Text = "To configure PuTTY sessions click this button:"; + this.lblConfigurePuttySessions.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //txtXULrunnerPath + // + this.txtXULrunnerPath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtXULrunnerPath.Location = new System.Drawing.Point(21, 235); + this.txtXULrunnerPath.Name = "txtXULrunnerPath"; + this.txtXULrunnerPath.Size = new System.Drawing.Size(346, 20); + this.txtXULrunnerPath.TabIndex = 30; + // + //numUVNCSCPort + // + this.numUVNCSCPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.numUVNCSCPort.Location = new System.Drawing.Point(373, 276); + this.numUVNCSCPort.Maximum = new decimal(new int[] {65535, 0, 0, 0}); + this.numUVNCSCPort.Name = "numUVNCSCPort"; + this.numUVNCSCPort.Size = new System.Drawing.Size(72, 20); + this.numUVNCSCPort.TabIndex = 33; + this.numUVNCSCPort.Value = new decimal(new int[] {5500, 0, 0, 0}); + this.numUVNCSCPort.Visible = false; + // + //txtCustomPuttyPath + // + this.txtCustomPuttyPath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtCustomPuttyPath.Enabled = false; + this.txtCustomPuttyPath.Location = new System.Drawing.Point(21, 115); + this.txtCustomPuttyPath.Name = "txtCustomPuttyPath"; + this.txtCustomPuttyPath.Size = new System.Drawing.Size(346, 20); + this.txtCustomPuttyPath.TabIndex = 22; + // + //btnLaunchPutty + // + this.btnLaunchPutty.Image = My.Resources.PuttyConfig; + this.btnLaunchPutty.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnLaunchPutty.Location = new System.Drawing.Point(373, 149); + this.btnLaunchPutty.Name = "btnLaunchPutty"; + this.btnLaunchPutty.Size = new System.Drawing.Size(110, 23); + this.btnLaunchPutty.TabIndex = 25; + this.btnLaunchPutty.Text = "Launch PuTTY"; + this.btnLaunchPutty.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.btnLaunchPutty.UseVisualStyleBackColor = true; + // + //lblUVNCSCPort + // + this.lblUVNCSCPort.Location = new System.Drawing.Point(3, 278); + this.lblUVNCSCPort.Name = "lblUVNCSCPort"; + this.lblUVNCSCPort.Size = new System.Drawing.Size(364, 13); + this.lblUVNCSCPort.TabIndex = 32; + this.lblUVNCSCPort.Text = "UltraVNC SingleClick Listening Port:"; + this.lblUVNCSCPort.TextAlign = System.Drawing.ContentAlignment.TopRight; + this.lblUVNCSCPort.Visible = false; + // + //lblSeconds + // + this.lblSeconds.AutoSize = true; + this.lblSeconds.Location = new System.Drawing.Point(428, 185); + this.lblSeconds.Name = "lblSeconds"; + this.lblSeconds.Size = new System.Drawing.Size(47, 13); + this.lblSeconds.TabIndex = 28; + this.lblSeconds.Text = "seconds"; + // + //btnBrowseCustomPuttyPath + // + this.btnBrowseCustomPuttyPath.Enabled = false; + this.btnBrowseCustomPuttyPath.Location = new System.Drawing.Point(373, 113); + this.btnBrowseCustomPuttyPath.Name = "btnBrowseCustomPuttyPath"; + this.btnBrowseCustomPuttyPath.Size = new System.Drawing.Size(75, 23); + this.btnBrowseCustomPuttyPath.TabIndex = 23; + this.btnBrowseCustomPuttyPath.Text = "Browse..."; + this.btnBrowseCustomPuttyPath.UseVisualStyleBackColor = true; + // + //AdvancedPage + // + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.chkWriteLogFile); + this.Controls.Add(this.chkAutomaticallyGetSessionInfo); + this.Controls.Add(this.lblXulRunnerPath); + this.Controls.Add(this.lblMaximumPuttyWaitTime); + this.Controls.Add(this.chkEncryptCompleteFile); + this.Controls.Add(this.chkAutomaticReconnect); + this.Controls.Add(this.btnBrowseXulRunnerPath); + this.Controls.Add(this.numPuttyWaitTime); + this.Controls.Add(this.chkUseCustomPuttyPath); + this.Controls.Add(this.lblConfigurePuttySessions); + this.Controls.Add(this.txtXULrunnerPath); + this.Controls.Add(this.numUVNCSCPort); + this.Controls.Add(this.txtCustomPuttyPath); + this.Controls.Add(this.btnLaunchPutty); + this.Controls.Add(this.lblUVNCSCPort); + this.Controls.Add(this.lblSeconds); + this.Controls.Add(this.btnBrowseCustomPuttyPath); + this.Name = "AdvancedPage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + ((System.ComponentModel.ISupportInitialize) this.numPuttyWaitTime).EndInit(); + ((System.ComponentModel.ISupportInitialize) this.numUVNCSCPort).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + internal System.Windows.Forms.CheckBox chkWriteLogFile; + internal System.Windows.Forms.CheckBox chkAutomaticallyGetSessionInfo; + internal System.Windows.Forms.Label lblXulRunnerPath; + internal System.Windows.Forms.Label lblMaximumPuttyWaitTime; + internal System.Windows.Forms.CheckBox chkEncryptCompleteFile; + internal System.Windows.Forms.CheckBox chkAutomaticReconnect; + internal System.Windows.Forms.Button btnBrowseXulRunnerPath; + internal System.Windows.Forms.NumericUpDown numPuttyWaitTime; + internal System.Windows.Forms.CheckBox chkUseCustomPuttyPath; + internal System.Windows.Forms.Label lblConfigurePuttySessions; + internal System.Windows.Forms.TextBox txtXULrunnerPath; + internal System.Windows.Forms.NumericUpDown numUVNCSCPort; + internal System.Windows.Forms.TextBox txtCustomPuttyPath; + internal System.Windows.Forms.Button btnLaunchPutty; + internal System.Windows.Forms.Label lblUVNCSCPort; + internal System.Windows.Forms.Label lblSeconds; + internal System.Windows.Forms.Button btnBrowseCustomPuttyPath; + + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.cs new file mode 100644 index 000000000..009b9a9ca --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.cs @@ -0,0 +1,224 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using System.IO; +using mRemoteNG.App; +using mRemoteNG.My; +using mRemoteNG.Connection.Protocol; +using mRemoteNG.Tools; +using PSTaskDialog; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class AdvancedPage + { + public AdvancedPage() + { + InitializeComponent(); + } + + #region Public Methods + public override string PageName + { + get + { + return Language.strTabAdvanced; + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + lblSeconds.Text = Language.strLabelSeconds; + lblMaximumPuttyWaitTime.Text = Language.strLabelPuttyTimeout; + chkAutomaticReconnect.Text = Language.strCheckboxAutomaticReconnect; + lblConfigurePuttySessions.Text = Language.strLabelPuttySessionsConfig; + btnLaunchPutty.Text = Language.strButtonLaunchPutty; + btnBrowseCustomPuttyPath.Text = Language.strButtonBrowse; + chkUseCustomPuttyPath.Text = Language.strCheckboxPuttyPath; + chkAutomaticallyGetSessionInfo.Text = Language.strAutomaticallyGetSessionInfo; + chkWriteLogFile.Text = Language.strWriteLogFile; + lblUVNCSCPort.Text = Language.strUltraVNCSCListeningPort; + lblXulRunnerPath.Text = Language.strXULrunnerPath; + btnBrowseXulRunnerPath.Text = Language.strButtonBrowse; + chkEncryptCompleteFile.Text = Language.strEncryptCompleteConnectionFile; + } + + public override void LoadSettings() + { + base.SaveSettings(); + + chkWriteLogFile.Checked = System.Convert.ToBoolean(My.Settings.Default.WriteLogFile); + chkEncryptCompleteFile.Checked = System.Convert.ToBoolean(My.Settings.Default.EncryptCompleteConnectionsFile); + chkAutomaticallyGetSessionInfo.Checked = System.Convert.ToBoolean(My.Settings.Default.AutomaticallyGetSessionInfo); + chkAutomaticReconnect.Checked = System.Convert.ToBoolean(My.Settings.Default.ReconnectOnDisconnect); + numPuttyWaitTime.Value = System.Convert.ToDecimal(My.Settings.Default.MaxPuttyWaitTime); + + chkUseCustomPuttyPath.Checked = My.Settings.Default.UseCustomPuttyPath; + txtCustomPuttyPath.Text = My.Settings.Default.CustomPuttyPath; + SetPuttyLaunchButtonEnabled(); + + numUVNCSCPort.Value = System.Convert.ToDecimal(My.Settings.Default.UVNCSCPort); + + txtXULrunnerPath.Text = System.Convert.ToString(My.Settings.Default.XULRunnerPath); + } + + public override void SaveSettings() + { + base.SaveSettings(); + + My.Settings.Default.WriteLogFile = chkWriteLogFile.Checked; + My.Settings.Default.EncryptCompleteConnectionsFile = chkEncryptCompleteFile.Checked; + My.Settings.Default.AutomaticallyGetSessionInfo = chkAutomaticallyGetSessionInfo.Checked; + My.Settings.Default.ReconnectOnDisconnect = chkAutomaticReconnect.Checked; + + bool puttyPathChanged = false; + if (!(My.Settings.Default.CustomPuttyPath == txtCustomPuttyPath.Text)) + { + puttyPathChanged = true; + My.Settings.Default.CustomPuttyPath = txtCustomPuttyPath.Text; + } + if (!(My.Settings.Default.UseCustomPuttyPath == chkUseCustomPuttyPath.Checked)) + { + puttyPathChanged = true; + My.Settings.Default.UseCustomPuttyPath = chkUseCustomPuttyPath.Checked; + } + if (puttyPathChanged) + { + if (My.Settings.Default.UseCustomPuttyPath) + { + PuttyBase.PuttyPath = My.Settings.Default.CustomPuttyPath; + } + else + { + PuttyBase.PuttyPath = App.Info.General.PuttyPath; + } + Config.Putty.Sessions.AddSessionsToTree(); + } + + My.Settings.Default.MaxPuttyWaitTime = (int)numPuttyWaitTime.Value; + + My.Settings.Default.UVNCSCPort = (int)numUVNCSCPort.Value; + + My.Settings.Default.XULRunnerPath = txtXULrunnerPath.Text; + } + #endregion + + #region Private Methods + #region Event Handlers + public void chkUseCustomPuttyPath_CheckedChanged(object sender, EventArgs e) + { + txtCustomPuttyPath.Enabled = chkUseCustomPuttyPath.Checked; + btnBrowseCustomPuttyPath.Enabled = chkUseCustomPuttyPath.Checked; + SetPuttyLaunchButtonEnabled(); + } + + public void txtCustomPuttyPath_TextChanged(object sender, EventArgs e) + { + SetPuttyLaunchButtonEnabled(); + } + + public void btnBrowseCustomPuttyPath_Click(object sender, EventArgs e) + { + using (OpenFileDialog openFileDialog = new OpenFileDialog()) + { + openFileDialog.Filter = string.Format("{0}|*.exe|{1}|*.*", Language.strFilterApplication, Language.strFilterAll); + openFileDialog.FileName = Path.GetFileName(App.Info.General.PuttyPath); + openFileDialog.CheckFileExists = true; + openFileDialog.Multiselect = false; + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + txtCustomPuttyPath.Text = openFileDialog.FileName; + SetPuttyLaunchButtonEnabled(); + } + } + + } + + public void btnLaunchPutty_Click(object sender, EventArgs e) + { + try + { + PuttyProcessController puttyProcess = new PuttyProcessController(); + string fileName = ""; + if (chkUseCustomPuttyPath.Checked) + { + fileName = txtCustomPuttyPath.Text; + } + else + { + fileName = App.Info.General.PuttyPath; + } + puttyProcess.Start(fileName); + puttyProcess.SetControlText("Button", "&Cancel", "&Close"); + puttyProcess.SetControlVisible("Button", "&Open", false); + puttyProcess.WaitForExit(); + } + catch (Exception ex) + { + cTaskDialog.MessageBox(System.Convert.ToString(Application.ProductName), Language.strErrorCouldNotLaunchPutty, "", ex.Message, "", "", eTaskDialogButtons.OK, eSysIcons.Error, eSysIcons.Error); + } + } + + public void btnBrowseXulRunnerPath_Click(object sender, EventArgs e) + { + FolderBrowserDialog oDlg = new FolderBrowserDialog(); + oDlg.ShowNewFolderButton = false; + + if (oDlg.ShowDialog() == DialogResult.OK) + { + txtXULrunnerPath.Text = oDlg.SelectedPath; + } + + oDlg.Dispose(); + } + #endregion + + private void SetPuttyLaunchButtonEnabled() + { + string puttyPath = ""; + if (chkUseCustomPuttyPath.Checked) + { + puttyPath = txtCustomPuttyPath.Text; + } + else + { + puttyPath = App.Info.General.PuttyPath; + } + + bool exists = false; + try + { + exists = File.Exists(puttyPath); + } + catch + { + } + + if (exists) + { + lblConfigurePuttySessions.Enabled = true; + btnLaunchPutty.Enabled = true; + } + else + { + lblConfigurePuttySessions.Enabled = false; + btnLaunchPutty.Enabled = false; + } + } + #endregion + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/AdvancedPage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/AdvancedPage.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.Designer.cs new file mode 100644 index 000000000..85121e989 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.Designer.cs @@ -0,0 +1,147 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class AppearancePage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AppearancePage)); + this.lblLanguageRestartRequired = new System.Windows.Forms.Label(); + this.cboLanguage = new System.Windows.Forms.ComboBox(); + this.lblLanguage = new System.Windows.Forms.Label(); + this.chkShowFullConnectionsFilePathInTitle = new System.Windows.Forms.CheckBox(); + this.chkShowDescriptionTooltipsInTree = new System.Windows.Forms.CheckBox(); + this.chkShowSystemTrayIcon = new System.Windows.Forms.CheckBox(); + this.chkMinimizeToSystemTray = new System.Windows.Forms.CheckBox(); + this.SuspendLayout(); + // + //lblLanguageRestartRequired + // + this.lblLanguageRestartRequired.AutoSize = true; + this.lblLanguageRestartRequired.Location = new System.Drawing.Point(3, 56); + this.lblLanguageRestartRequired.Name = "lblLanguageRestartRequired"; + this.lblLanguageRestartRequired.Size = new System.Drawing.Size(380, 13); + this.lblLanguageRestartRequired.TabIndex = 9; + this.lblLanguageRestartRequired.Text = "mRemoteNG must be restarted before changes to the language will take effect."; + // + //cboLanguage + // + this.cboLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboLanguage.FormattingEnabled = true; + this.cboLanguage.Location = new System.Drawing.Point(3, 24); + this.cboLanguage.Name = "cboLanguage"; + this.cboLanguage.Size = new System.Drawing.Size(304, 21); + this.cboLanguage.Sorted = true; + this.cboLanguage.TabIndex = 8; + // + //lblLanguage + // + this.lblLanguage.AutoSize = true; + this.lblLanguage.Location = new System.Drawing.Point(3, 0); + this.lblLanguage.Name = "lblLanguage"; + this.lblLanguage.Size = new System.Drawing.Size(55, 13); + this.lblLanguage.TabIndex = 7; + this.lblLanguage.Text = "Language"; + // + //chkShowFullConnectionsFilePathInTitle + // + this.chkShowFullConnectionsFilePathInTitle.AutoSize = true; + this.chkShowFullConnectionsFilePathInTitle.Location = new System.Drawing.Point(3, 141); + this.chkShowFullConnectionsFilePathInTitle.Name = "chkShowFullConnectionsFilePathInTitle"; + this.chkShowFullConnectionsFilePathInTitle.Size = new System.Drawing.Size(239, 17); + this.chkShowFullConnectionsFilePathInTitle.TabIndex = 11; + this.chkShowFullConnectionsFilePathInTitle.Text = "Show full connections file path in window title"; + this.chkShowFullConnectionsFilePathInTitle.UseVisualStyleBackColor = true; + // + //chkShowDescriptionTooltipsInTree + // + this.chkShowDescriptionTooltipsInTree.AutoSize = true; + this.chkShowDescriptionTooltipsInTree.Location = new System.Drawing.Point(3, 118); + this.chkShowDescriptionTooltipsInTree.Name = "chkShowDescriptionTooltipsInTree"; + this.chkShowDescriptionTooltipsInTree.Size = new System.Drawing.Size(231, 17); + this.chkShowDescriptionTooltipsInTree.TabIndex = 10; + this.chkShowDescriptionTooltipsInTree.Text = "Show description tooltips in connection tree"; + this.chkShowDescriptionTooltipsInTree.UseVisualStyleBackColor = true; + // + //chkShowSystemTrayIcon + // + this.chkShowSystemTrayIcon.AutoSize = true; + this.chkShowSystemTrayIcon.Location = new System.Drawing.Point(3, 187); + this.chkShowSystemTrayIcon.Name = "chkShowSystemTrayIcon"; + this.chkShowSystemTrayIcon.Size = new System.Drawing.Size(172, 17); + this.chkShowSystemTrayIcon.TabIndex = 12; + this.chkShowSystemTrayIcon.Text = "Always show System Tray Icon"; + this.chkShowSystemTrayIcon.UseVisualStyleBackColor = true; + // + //chkMinimizeToSystemTray + // + this.chkMinimizeToSystemTray.AutoSize = true; + this.chkMinimizeToSystemTray.Location = new System.Drawing.Point(3, 210); + this.chkMinimizeToSystemTray.Name = "chkMinimizeToSystemTray"; + this.chkMinimizeToSystemTray.Size = new System.Drawing.Size(139, 17); + this.chkMinimizeToSystemTray.TabIndex = 13; + this.chkMinimizeToSystemTray.Text = "Minimize to System Tray"; + this.chkMinimizeToSystemTray.UseVisualStyleBackColor = true; + // + //AppearancePage + // + this.Controls.Add(this.lblLanguageRestartRequired); + this.Controls.Add(this.cboLanguage); + this.Controls.Add(this.lblLanguage); + this.Controls.Add(this.chkShowFullConnectionsFilePathInTitle); + this.Controls.Add(this.chkShowDescriptionTooltipsInTree); + this.Controls.Add(this.chkShowSystemTrayIcon); + this.Controls.Add(this.chkMinimizeToSystemTray); + this.Name = "AppearancePage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + this.ResumeLayout(false); + this.PerformLayout(); + + } + internal System.Windows.Forms.Label Label1; + internal System.Windows.Forms.Label lblLanguageRestartRequired; + internal System.Windows.Forms.ComboBox cboLanguage; + internal System.Windows.Forms.Label lblLanguage; + internal System.Windows.Forms.CheckBox chkShowFullConnectionsFilePathInTitle; + internal System.Windows.Forms.CheckBox chkShowDescriptionTooltipsInTree; + internal System.Windows.Forms.CheckBox chkShowSystemTrayIcon; + internal System.Windows.Forms.CheckBox chkMinimizeToSystemTray; + + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.cs new file mode 100644 index 000000000..de01513d3 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.cs @@ -0,0 +1,109 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using mRemoteNG.App; +using mRemoteNG.My; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class AppearancePage + { + public AppearancePage() + { + InitializeComponent(); + } + public override string PageName + { + get + { + return Language.strTabAppearance; + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + lblLanguage.Text = Language.strLanguage; + lblLanguageRestartRequired.Text = string.Format(Language.strLanguageRestartRequired, Application.ProductName); + chkShowDescriptionTooltipsInTree.Text = Language.strShowDescriptionTooltips; + chkShowFullConnectionsFilePathInTitle.Text = Language.strShowFullConsFilePath; + chkShowSystemTrayIcon.Text = Language.strAlwaysShowSysTrayIcon; + chkMinimizeToSystemTray.Text = Language.strMinimizeToSysTray; + } + + public override void LoadSettings() + { + base.SaveSettings(); + + cboLanguage.Items.Clear(); + cboLanguage.Items.Add(Language.strLanguageDefault); + + foreach (string nativeName in SupportedCultures.CultureNativeNames) + { + cboLanguage.Items.Add(nativeName); + } + if (!string.IsNullOrEmpty(My.Settings.Default.OverrideUICulture) && SupportedCultures.IsNameSupported(My.Settings.Default.OverrideUICulture)) + { + cboLanguage.SelectedItem = SupportedCultures.get_CultureNativeName(My.Settings.Default.OverrideUICulture); + } + if (cboLanguage.SelectedIndex == -1) + { + cboLanguage.SelectedIndex = 0; + } + + chkShowDescriptionTooltipsInTree.Checked = My.Settings.Default.ShowDescriptionTooltipsInTree; + chkShowFullConnectionsFilePathInTitle.Checked = My.Settings.Default.ShowCompleteConsPathInTitle; + chkShowSystemTrayIcon.Checked = My.Settings.Default.ShowSystemTrayIcon; + chkMinimizeToSystemTray.Checked = My.Settings.Default.MinimizeToTray; + } + + public override void SaveSettings() + { + base.SaveSettings(); + + if (cboLanguage.SelectedIndex > 0 && SupportedCultures.IsNativeNameSupported(System.Convert.ToString(cboLanguage.SelectedItem))) + { + My.Settings.Default.OverrideUICulture = SupportedCultures.get_CultureName(System.Convert.ToString(cboLanguage.SelectedItem)); + } + else + { + My.Settings.Default.OverrideUICulture = string.Empty; + } + + My.Settings.Default.ShowDescriptionTooltipsInTree = chkShowDescriptionTooltipsInTree.Checked; + My.Settings.Default.ShowCompleteConsPathInTitle = chkShowFullConnectionsFilePathInTitle.Checked; + frmMain.Default.ShowFullPathInTitle = chkShowFullConnectionsFilePathInTitle.Checked; + + My.Settings.Default.ShowSystemTrayIcon = chkShowSystemTrayIcon.Checked; + if (My.Settings.Default.ShowSystemTrayIcon) + { + if (Runtime.NotificationAreaIcon == null) + { + Runtime.NotificationAreaIcon = new Tools.Controls.NotificationAreaIcon(); + } + } + else + { + if (Runtime.NotificationAreaIcon != null) + { + Runtime.NotificationAreaIcon.Dispose(); + Runtime.NotificationAreaIcon = null; + } + } + + My.Settings.Default.MinimizeToTray = chkMinimizeToSystemTray.Checked; + } + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/AppearancePage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/AppearancePage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/AppearancePage.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.Designer.cs new file mode 100644 index 000000000..b18bca9a5 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.Designer.cs @@ -0,0 +1,412 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class ConnectionsPage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConnectionsPage)); + this.pnlRdpReconnectionCount = new System.Windows.Forms.Panel(); + this.lblRdpReconnectionCount = new System.Windows.Forms.Label(); + this.numRdpReconnectionCount = new System.Windows.Forms.NumericUpDown(); + this.chkSingleClickOnConnectionOpensIt = new System.Windows.Forms.CheckBox(); + this.chkHostnameLikeDisplayName = new System.Windows.Forms.CheckBox(); + this.pnlDefaultCredentials = new System.Windows.Forms.Panel(); + this.radCredentialsCustom = new System.Windows.Forms.RadioButton(); + this.radCredentialsCustom.CheckedChanged += new System.EventHandler(this.radCredentialsCustom_CheckedChanged); + this.lblDefaultCredentials = new System.Windows.Forms.Label(); + this.radCredentialsNoInfo = new System.Windows.Forms.RadioButton(); + this.radCredentialsWindows = new System.Windows.Forms.RadioButton(); + this.txtCredentialsDomain = new System.Windows.Forms.TextBox(); + this.lblCredentialsUsername = new System.Windows.Forms.Label(); + this.txtCredentialsPassword = new System.Windows.Forms.TextBox(); + this.lblCredentialsPassword = new System.Windows.Forms.Label(); + this.txtCredentialsUsername = new System.Windows.Forms.TextBox(); + this.lblCredentialsDomain = new System.Windows.Forms.Label(); + this.chkSingleClickOnOpenedConnectionSwitchesToIt = new System.Windows.Forms.CheckBox(); + this.pnlAutoSave = new System.Windows.Forms.Panel(); + this.lblAutoSave1 = new System.Windows.Forms.Label(); + this.numAutoSave = new System.Windows.Forms.NumericUpDown(); + this.lblAutoSave2 = new System.Windows.Forms.Label(); + this.pnlConfirmCloseConnection = new System.Windows.Forms.Panel(); + this.lblClosingConnections = new System.Windows.Forms.Label(); + this.radCloseWarnAll = new System.Windows.Forms.RadioButton(); + this.radCloseWarnMultiple = new System.Windows.Forms.RadioButton(); + this.radCloseWarnExit = new System.Windows.Forms.RadioButton(); + this.radCloseWarnNever = new System.Windows.Forms.RadioButton(); + this.pnlRdpReconnectionCount.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize) this.numRdpReconnectionCount).BeginInit(); + this.pnlDefaultCredentials.SuspendLayout(); + this.pnlAutoSave.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize) this.numAutoSave).BeginInit(); + this.pnlConfirmCloseConnection.SuspendLayout(); + this.SuspendLayout(); + // + //pnlRdpReconnectionCount + // + this.pnlRdpReconnectionCount.Controls.Add(this.lblRdpReconnectionCount); + this.pnlRdpReconnectionCount.Controls.Add(this.numRdpReconnectionCount); + this.pnlRdpReconnectionCount.Location = new System.Drawing.Point(3, 69); + this.pnlRdpReconnectionCount.Name = "pnlRdpReconnectionCount"; + this.pnlRdpReconnectionCount.Size = new System.Drawing.Size(596, 29); + this.pnlRdpReconnectionCount.TabIndex = 10; + // + //lblRdpReconnectionCount + // + this.lblRdpReconnectionCount.Location = new System.Drawing.Point(6, 9); + this.lblRdpReconnectionCount.Name = "lblRdpReconnectionCount"; + this.lblRdpReconnectionCount.Size = new System.Drawing.Size(288, 13); + this.lblRdpReconnectionCount.TabIndex = 0; + this.lblRdpReconnectionCount.Text = "RDP Reconnection Count"; + this.lblRdpReconnectionCount.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //numRdpReconnectionCount + // + this.numRdpReconnectionCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.numRdpReconnectionCount.Location = new System.Drawing.Point(300, 7); + this.numRdpReconnectionCount.Maximum = new decimal(new int[] {20, 0, 0, 0}); + this.numRdpReconnectionCount.Name = "numRdpReconnectionCount"; + this.numRdpReconnectionCount.Size = new System.Drawing.Size(53, 20); + this.numRdpReconnectionCount.TabIndex = 1; + this.numRdpReconnectionCount.Value = new decimal(new int[] {5, 0, 0, 0}); + // + //chkSingleClickOnConnectionOpensIt + // + this.chkSingleClickOnConnectionOpensIt.AutoSize = true; + this.chkSingleClickOnConnectionOpensIt.Location = new System.Drawing.Point(3, 0); + this.chkSingleClickOnConnectionOpensIt.Name = "chkSingleClickOnConnectionOpensIt"; + this.chkSingleClickOnConnectionOpensIt.Size = new System.Drawing.Size(191, 17); + this.chkSingleClickOnConnectionOpensIt.TabIndex = 7; + this.chkSingleClickOnConnectionOpensIt.Text = "Single click on connection opens it"; + this.chkSingleClickOnConnectionOpensIt.UseVisualStyleBackColor = true; + // + //chkHostnameLikeDisplayName + // + this.chkHostnameLikeDisplayName.AutoSize = true; + this.chkHostnameLikeDisplayName.Location = new System.Drawing.Point(3, 46); + this.chkHostnameLikeDisplayName.Name = "chkHostnameLikeDisplayName"; + this.chkHostnameLikeDisplayName.Size = new System.Drawing.Size(328, 17); + this.chkHostnameLikeDisplayName.TabIndex = 9; + this.chkHostnameLikeDisplayName.Text = "Set hostname like display name when creating new connections"; + this.chkHostnameLikeDisplayName.UseVisualStyleBackColor = true; + // + //pnlDefaultCredentials + // + this.pnlDefaultCredentials.Controls.Add(this.radCredentialsCustom); + this.pnlDefaultCredentials.Controls.Add(this.lblDefaultCredentials); + this.pnlDefaultCredentials.Controls.Add(this.radCredentialsNoInfo); + this.pnlDefaultCredentials.Controls.Add(this.radCredentialsWindows); + this.pnlDefaultCredentials.Controls.Add(this.txtCredentialsDomain); + this.pnlDefaultCredentials.Controls.Add(this.lblCredentialsUsername); + this.pnlDefaultCredentials.Controls.Add(this.txtCredentialsPassword); + this.pnlDefaultCredentials.Controls.Add(this.lblCredentialsPassword); + this.pnlDefaultCredentials.Controls.Add(this.txtCredentialsUsername); + this.pnlDefaultCredentials.Controls.Add(this.lblCredentialsDomain); + this.pnlDefaultCredentials.Location = new System.Drawing.Point(3, 139); + this.pnlDefaultCredentials.Name = "pnlDefaultCredentials"; + this.pnlDefaultCredentials.Size = new System.Drawing.Size(596, 175); + this.pnlDefaultCredentials.TabIndex = 12; + // + //radCredentialsCustom + // + this.radCredentialsCustom.AutoSize = true; + this.radCredentialsCustom.Location = new System.Drawing.Point(16, 69); + this.radCredentialsCustom.Name = "radCredentialsCustom"; + this.radCredentialsCustom.Size = new System.Drawing.Size(87, 17); + this.radCredentialsCustom.TabIndex = 3; + this.radCredentialsCustom.Text = "the following:"; + this.radCredentialsCustom.UseVisualStyleBackColor = true; + // + //lblDefaultCredentials + // + this.lblDefaultCredentials.AutoSize = true; + this.lblDefaultCredentials.Location = new System.Drawing.Point(3, 9); + this.lblDefaultCredentials.Name = "lblDefaultCredentials"; + this.lblDefaultCredentials.Size = new System.Drawing.Size(257, 13); + this.lblDefaultCredentials.TabIndex = 0; + this.lblDefaultCredentials.Text = "For empty Username, Password or Domain fields use:"; + // + //radCredentialsNoInfo + // + this.radCredentialsNoInfo.AutoSize = true; + this.radCredentialsNoInfo.Checked = true; + this.radCredentialsNoInfo.Location = new System.Drawing.Point(16, 31); + this.radCredentialsNoInfo.Name = "radCredentialsNoInfo"; + this.radCredentialsNoInfo.Size = new System.Drawing.Size(91, 17); + this.radCredentialsNoInfo.TabIndex = 1; + this.radCredentialsNoInfo.TabStop = true; + this.radCredentialsNoInfo.Text = "no information"; + this.radCredentialsNoInfo.UseVisualStyleBackColor = true; + // + //radCredentialsWindows + // + this.radCredentialsWindows.AutoSize = true; + this.radCredentialsWindows.Location = new System.Drawing.Point(16, 50); + this.radCredentialsWindows.Name = "radCredentialsWindows"; + this.radCredentialsWindows.Size = new System.Drawing.Size(227, 17); + this.radCredentialsWindows.TabIndex = 2; + this.radCredentialsWindows.Text = "my current credentials (windows logon info)"; + this.radCredentialsWindows.UseVisualStyleBackColor = true; + // + //txtCredentialsDomain + // + this.txtCredentialsDomain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtCredentialsDomain.Enabled = false; + this.txtCredentialsDomain.Location = new System.Drawing.Point(140, 147); + this.txtCredentialsDomain.Name = "txtCredentialsDomain"; + this.txtCredentialsDomain.Size = new System.Drawing.Size(150, 20); + this.txtCredentialsDomain.TabIndex = 9; + // + //lblCredentialsUsername + // + this.lblCredentialsUsername.Enabled = false; + this.lblCredentialsUsername.Location = new System.Drawing.Point(37, 95); + this.lblCredentialsUsername.Name = "lblCredentialsUsername"; + this.lblCredentialsUsername.Size = new System.Drawing.Size(97, 13); + this.lblCredentialsUsername.TabIndex = 4; + this.lblCredentialsUsername.Text = "Username:"; + this.lblCredentialsUsername.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //txtCredentialsPassword + // + this.txtCredentialsPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtCredentialsPassword.Enabled = false; + this.txtCredentialsPassword.Location = new System.Drawing.Point(140, 120); + this.txtCredentialsPassword.Name = "txtCredentialsPassword"; + this.txtCredentialsPassword.Size = new System.Drawing.Size(150, 20); + this.txtCredentialsPassword.TabIndex = 7; + this.txtCredentialsPassword.UseSystemPasswordChar = true; + // + //lblCredentialsPassword + // + this.lblCredentialsPassword.Enabled = false; + this.lblCredentialsPassword.Location = new System.Drawing.Point(34, 123); + this.lblCredentialsPassword.Name = "lblCredentialsPassword"; + this.lblCredentialsPassword.Size = new System.Drawing.Size(100, 13); + this.lblCredentialsPassword.TabIndex = 6; + this.lblCredentialsPassword.Text = "Password:"; + this.lblCredentialsPassword.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //txtCredentialsUsername + // + this.txtCredentialsUsername.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtCredentialsUsername.Enabled = false; + this.txtCredentialsUsername.Location = new System.Drawing.Point(140, 93); + this.txtCredentialsUsername.Name = "txtCredentialsUsername"; + this.txtCredentialsUsername.Size = new System.Drawing.Size(150, 20); + this.txtCredentialsUsername.TabIndex = 5; + // + //lblCredentialsDomain + // + this.lblCredentialsDomain.Enabled = false; + this.lblCredentialsDomain.Location = new System.Drawing.Point(34, 150); + this.lblCredentialsDomain.Name = "lblCredentialsDomain"; + this.lblCredentialsDomain.Size = new System.Drawing.Size(100, 13); + this.lblCredentialsDomain.TabIndex = 8; + this.lblCredentialsDomain.Text = "Domain:"; + this.lblCredentialsDomain.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //chkSingleClickOnOpenedConnectionSwitchesToIt + // + this.chkSingleClickOnOpenedConnectionSwitchesToIt.AutoSize = true; + this.chkSingleClickOnOpenedConnectionSwitchesToIt.Location = new System.Drawing.Point(3, 23); + this.chkSingleClickOnOpenedConnectionSwitchesToIt.Name = "chkSingleClickOnOpenedConnectionSwitchesToIt"; + this.chkSingleClickOnOpenedConnectionSwitchesToIt.Size = new System.Drawing.Size(254, 17); + this.chkSingleClickOnOpenedConnectionSwitchesToIt.TabIndex = 8; + this.chkSingleClickOnOpenedConnectionSwitchesToIt.Text = "Single click on opened connection switches to it"; + this.chkSingleClickOnOpenedConnectionSwitchesToIt.UseVisualStyleBackColor = true; + // + //pnlAutoSave + // + this.pnlAutoSave.Controls.Add(this.lblAutoSave1); + this.pnlAutoSave.Controls.Add(this.numAutoSave); + this.pnlAutoSave.Controls.Add(this.lblAutoSave2); + this.pnlAutoSave.Location = new System.Drawing.Point(3, 104); + this.pnlAutoSave.Name = "pnlAutoSave"; + this.pnlAutoSave.Size = new System.Drawing.Size(596, 29); + this.pnlAutoSave.TabIndex = 11; + // + //lblAutoSave1 + // + this.lblAutoSave1.Location = new System.Drawing.Point(6, 9); + this.lblAutoSave1.Name = "lblAutoSave1"; + this.lblAutoSave1.Size = new System.Drawing.Size(288, 13); + this.lblAutoSave1.TabIndex = 0; + this.lblAutoSave1.Text = "Auto Save every:"; + this.lblAutoSave1.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //numAutoSave + // + this.numAutoSave.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.numAutoSave.Location = new System.Drawing.Point(300, 7); + this.numAutoSave.Maximum = new decimal(new int[] {9999, 0, 0, 0}); + this.numAutoSave.Name = "numAutoSave"; + this.numAutoSave.Size = new System.Drawing.Size(53, 20); + this.numAutoSave.TabIndex = 1; + // + //lblAutoSave2 + // + this.lblAutoSave2.AutoSize = true; + this.lblAutoSave2.Location = new System.Drawing.Point(359, 9); + this.lblAutoSave2.Name = "lblAutoSave2"; + this.lblAutoSave2.Size = new System.Drawing.Size(135, 13); + this.lblAutoSave2.TabIndex = 2; + this.lblAutoSave2.Text = "Minutes (0 means disabled)"; + // + //pnlConfirmCloseConnection + // + this.pnlConfirmCloseConnection.Controls.Add(this.lblClosingConnections); + this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnAll); + this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnMultiple); + this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnExit); + this.pnlConfirmCloseConnection.Controls.Add(this.radCloseWarnNever); + this.pnlConfirmCloseConnection.Location = new System.Drawing.Point(3, 320); + this.pnlConfirmCloseConnection.Name = "pnlConfirmCloseConnection"; + this.pnlConfirmCloseConnection.Size = new System.Drawing.Size(596, 137); + this.pnlConfirmCloseConnection.TabIndex = 13; + // + //lblClosingConnections + // + this.lblClosingConnections.AutoSize = true; + this.lblClosingConnections.Location = new System.Drawing.Point(3, 9); + this.lblClosingConnections.Name = "lblClosingConnections"; + this.lblClosingConnections.Size = new System.Drawing.Size(136, 13); + this.lblClosingConnections.TabIndex = 0; + this.lblClosingConnections.Text = "When closing connections:"; + // + //radCloseWarnAll + // + this.radCloseWarnAll.AutoSize = true; + this.radCloseWarnAll.Location = new System.Drawing.Point(16, 31); + this.radCloseWarnAll.Name = "radCloseWarnAll"; + this.radCloseWarnAll.Size = new System.Drawing.Size(194, 17); + this.radCloseWarnAll.TabIndex = 1; + this.radCloseWarnAll.TabStop = true; + this.radCloseWarnAll.Text = "Warn me when closing connections"; + this.radCloseWarnAll.UseVisualStyleBackColor = true; + // + //radCloseWarnMultiple + // + this.radCloseWarnMultiple.AutoSize = true; + this.radCloseWarnMultiple.Location = new System.Drawing.Point(16, 54); + this.radCloseWarnMultiple.Name = "radCloseWarnMultiple"; + this.radCloseWarnMultiple.Size = new System.Drawing.Size(254, 17); + this.radCloseWarnMultiple.TabIndex = 2; + this.radCloseWarnMultiple.TabStop = true; + this.radCloseWarnMultiple.Text = "Warn me only when closing multiple connections"; + this.radCloseWarnMultiple.UseVisualStyleBackColor = true; + // + //radCloseWarnExit + // + this.radCloseWarnExit.AutoSize = true; + this.radCloseWarnExit.Location = new System.Drawing.Point(16, 77); + this.radCloseWarnExit.Name = "radCloseWarnExit"; + this.radCloseWarnExit.Size = new System.Drawing.Size(216, 17); + this.radCloseWarnExit.TabIndex = 3; + this.radCloseWarnExit.TabStop = true; + this.radCloseWarnExit.Text = "Warn me only when exiting mRemoteNG"; + this.radCloseWarnExit.UseVisualStyleBackColor = true; + // + //radCloseWarnNever + // + this.radCloseWarnNever.AutoSize = true; + this.radCloseWarnNever.Location = new System.Drawing.Point(16, 100); + this.radCloseWarnNever.Name = "radCloseWarnNever"; + this.radCloseWarnNever.Size = new System.Drawing.Size(226, 17); + this.radCloseWarnNever.TabIndex = 4; + this.radCloseWarnNever.TabStop = true; + this.radCloseWarnNever.Text = "Do not warn me when closing connections"; + this.radCloseWarnNever.UseVisualStyleBackColor = true; + // + //ConnectionsPage + // + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.pnlRdpReconnectionCount); + this.Controls.Add(this.chkSingleClickOnConnectionOpensIt); + this.Controls.Add(this.chkHostnameLikeDisplayName); + this.Controls.Add(this.pnlDefaultCredentials); + this.Controls.Add(this.chkSingleClickOnOpenedConnectionSwitchesToIt); + this.Controls.Add(this.pnlAutoSave); + this.Controls.Add(this.pnlConfirmCloseConnection); + this.Name = "ConnectionsPage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + this.pnlRdpReconnectionCount.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize) this.numRdpReconnectionCount).EndInit(); + this.pnlDefaultCredentials.ResumeLayout(false); + this.pnlDefaultCredentials.PerformLayout(); + this.pnlAutoSave.ResumeLayout(false); + this.pnlAutoSave.PerformLayout(); + ((System.ComponentModel.ISupportInitialize) this.numAutoSave).EndInit(); + this.pnlConfirmCloseConnection.ResumeLayout(false); + this.pnlConfirmCloseConnection.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + internal System.Windows.Forms.Panel pnlRdpReconnectionCount; + internal System.Windows.Forms.Label lblRdpReconnectionCount; + internal System.Windows.Forms.NumericUpDown numRdpReconnectionCount; + internal System.Windows.Forms.CheckBox chkSingleClickOnConnectionOpensIt; + internal System.Windows.Forms.CheckBox chkHostnameLikeDisplayName; + internal System.Windows.Forms.Panel pnlDefaultCredentials; + internal System.Windows.Forms.RadioButton radCredentialsCustom; + internal System.Windows.Forms.Label lblDefaultCredentials; + internal System.Windows.Forms.RadioButton radCredentialsNoInfo; + internal System.Windows.Forms.RadioButton radCredentialsWindows; + internal System.Windows.Forms.TextBox txtCredentialsDomain; + internal System.Windows.Forms.Label lblCredentialsUsername; + internal System.Windows.Forms.TextBox txtCredentialsPassword; + internal System.Windows.Forms.Label lblCredentialsPassword; + internal System.Windows.Forms.TextBox txtCredentialsUsername; + internal System.Windows.Forms.Label lblCredentialsDomain; + internal System.Windows.Forms.CheckBox chkSingleClickOnOpenedConnectionSwitchesToIt; + internal System.Windows.Forms.Panel pnlAutoSave; + internal System.Windows.Forms.Label lblAutoSave1; + internal System.Windows.Forms.NumericUpDown numAutoSave; + internal System.Windows.Forms.Label lblAutoSave2; + internal System.Windows.Forms.Panel pnlConfirmCloseConnection; + internal System.Windows.Forms.Label lblClosingConnections; + internal System.Windows.Forms.RadioButton radCloseWarnAll; + internal System.Windows.Forms.RadioButton radCloseWarnMultiple; + internal System.Windows.Forms.RadioButton radCloseWarnExit; + internal System.Windows.Forms.RadioButton radCloseWarnNever; + + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.cs new file mode 100644 index 000000000..375d59458 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.cs @@ -0,0 +1,179 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using mRemoteNG.My; +using mRemoteNG.Config; +using mRemoteNG.App; +using mRemoteNG.Security; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class ConnectionsPage + { + public ConnectionsPage() + { + InitializeComponent(); + } + public override string PageName + { + get + { + return Language.strConnections; + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + chkSingleClickOnConnectionOpensIt.Text = Language.strSingleClickOnConnectionOpensIt; + chkSingleClickOnOpenedConnectionSwitchesToIt.Text = Language.strSingleClickOnOpenConnectionSwitchesToIt; + chkHostnameLikeDisplayName.Text = Language.strSetHostnameLikeDisplayName; + + lblRdpReconnectionCount.Text = Language.strRdpReconnectCount; + + lblAutoSave1.Text = Language.strAutoSaveEvery; + lblAutoSave2.Text = Language.strAutoSaveMins; + + lblDefaultCredentials.Text = Language.strEmptyUsernamePasswordDomainFields; + radCredentialsNoInfo.Text = Language.strNoInformation; + radCredentialsWindows.Text = Language.strMyCurrentWindowsCreds; + radCredentialsCustom.Text = Language.strTheFollowing; + lblCredentialsUsername.Text = Language.strLabelUsername; + lblCredentialsPassword.Text = Language.strLabelPassword; + lblCredentialsDomain.Text = Language.strLabelDomain; + + lblClosingConnections.Text = Language.strLabelClosingConnections; + radCloseWarnAll.Text = Language.strRadioCloseWarnAll; + radCloseWarnMultiple.Text = Language.strRadioCloseWarnMultiple; + radCloseWarnExit.Text = Language.strRadioCloseWarnExit; + radCloseWarnNever.Text = Language.strRadioCloseWarnNever; + } + + public override void LoadSettings() + { + base.SaveSettings(); + + chkSingleClickOnConnectionOpensIt.Checked = System.Convert.ToBoolean(My.Settings.Default.SingleClickOnConnectionOpensIt); + chkSingleClickOnOpenedConnectionSwitchesToIt.Checked = System.Convert.ToBoolean(My.Settings.Default.SingleClickSwitchesToOpenConnection); + chkHostnameLikeDisplayName.Checked = System.Convert.ToBoolean(My.Settings.Default.SetHostnameLikeDisplayName); + + numRdpReconnectionCount.Value = System.Convert.ToDecimal(My.Settings.Default.RdpReconnectionCount); + + numAutoSave.Value = System.Convert.ToDecimal(My.Settings.Default.AutoSaveEveryMinutes); + + // ReSharper disable once StringLiteralTypo + if ((string) My.Settings.Default.EmptyCredentials == "noinfo") + { + radCredentialsNoInfo.Checked = true; + } + else if ((string) My.Settings.Default.EmptyCredentials == "windows") + { + radCredentialsWindows.Checked = true; + } + else if ((string) My.Settings.Default.EmptyCredentials == "custom") + { + radCredentialsCustom.Checked = true; + } + + txtCredentialsUsername.Text = System.Convert.ToString(My.Settings.Default.DefaultUsername); + txtCredentialsPassword.Text = Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.DefaultPassword), App.Info.General.EncryptionKey); + txtCredentialsDomain.Text = System.Convert.ToString(My.Settings.Default.DefaultDomain); + + if (My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.Never) + { + radCloseWarnNever.Checked = true; + } + else if (My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.Exit) + { + radCloseWarnExit.Checked = true; + } + else if (My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.Multiple) + { + radCloseWarnMultiple.Checked = true; + } + else + { + radCloseWarnAll.Checked = true; + } + } + + public override void SaveSettings() + { + base.SaveSettings(); + + My.Settings.Default.SingleClickOnConnectionOpensIt = chkSingleClickOnConnectionOpensIt.Checked; + My.Settings.Default.SingleClickSwitchesToOpenConnection = chkSingleClickOnOpenedConnectionSwitchesToIt.Checked; + My.Settings.Default.SetHostnameLikeDisplayName = chkHostnameLikeDisplayName.Checked; + + My.Settings.Default.RdpReconnectionCount = (int)numRdpReconnectionCount.Value; + + My.Settings.Default.AutoSaveEveryMinutes = (int)numAutoSave.Value; + if (My.Settings.Default.AutoSaveEveryMinutes > 0) + { + frmMain.Default.tmrAutoSave.Interval = System.Convert.ToInt32(My.Settings.Default.AutoSaveEveryMinutes * 60000); + frmMain.Default.tmrAutoSave.Enabled = true; + } + else + { + frmMain.Default.tmrAutoSave.Enabled = false; + } + + if (radCredentialsNoInfo.Checked) + { + // ReSharper disable once StringLiteralTypo + My.Settings.Default.EmptyCredentials = "noinfo"; + } + else if (radCredentialsWindows.Checked) + { + My.Settings.Default.EmptyCredentials = "windows"; + } + else if (radCredentialsCustom.Checked) + { + My.Settings.Default.EmptyCredentials = "custom"; + } + + My.Settings.Default.DefaultUsername = txtCredentialsUsername.Text; + My.Settings.Default.DefaultPassword = Crypt.Encrypt(txtCredentialsPassword.Text, App.Info.General.EncryptionKey); + My.Settings.Default.DefaultDomain = txtCredentialsDomain.Text; + + if (radCloseWarnAll.Checked) + { + My.Settings.Default.ConfirmCloseConnection = (int)ConfirmClose.All; + } + if (radCloseWarnMultiple.Checked) + { + My.Settings.Default.ConfirmCloseConnection = (int)ConfirmClose.Multiple; + } + if (radCloseWarnExit.Checked) + { + My.Settings.Default.ConfirmCloseConnection = (int)ConfirmClose.Exit; + } + if (radCloseWarnNever.Checked) + { + My.Settings.Default.ConfirmCloseConnection = (int)ConfirmClose.Never; + } + } + + public void radCredentialsCustom_CheckedChanged(object sender, EventArgs e) + { + lblCredentialsUsername.Enabled = radCredentialsCustom.Checked; + lblCredentialsPassword.Enabled = radCredentialsCustom.Checked; + lblCredentialsDomain.Enabled = radCredentialsCustom.Checked; + txtCredentialsUsername.Enabled = radCredentialsCustom.Checked; + txtCredentialsPassword.Enabled = radCredentialsCustom.Checked; + txtCredentialsDomain.Enabled = radCredentialsCustom.Checked; + } + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/ConnectionsPage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/ConnectionsPage.resx diff --git a/mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.Designer.cs similarity index 99% rename from mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.Designer.cs rename to mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.Designer.cs index 5a2e0a203..b5df53ae5 100644 --- a/mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.Designer.cs +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.Designer.cs @@ -12,8 +12,8 @@ using System.Windows.Forms; namespace mRemoteNG.Forms.OptionsPages { - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class KeyboardPage : OptionsPage + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class KeyboardPage : OptionsPage { //UserControl overrides dispose to clean up the component list. diff --git a/mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.cs similarity index 96% rename from mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.cs rename to mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.cs index bd136a35e..a43a791f9 100644 --- a/mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.cs +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.cs @@ -45,7 +45,7 @@ namespace mRemoteNG.Forms.OptionsPages _previousTabListViewItem = new ListViewItem(Language.strOptionsKeyboardCommandsPreviousTab, _tabsListViewGroup); _nextTabListViewItem = new ListViewItem(Language.strOptionsKeyboardCommandsNextTab, _tabsListViewGroup); - _keyboardShortcutMap = KeyboardShortcuts.Map.Clone(); + _keyboardShortcutMap = (mRemoteNG.Config.KeyboardShortcutMap)KeyboardShortcuts.Map.Clone(); lvKeyboardCommands.Groups.Add(_tabsListViewGroup); lvKeyboardCommands.Items.Add(_previousTabListViewItem); @@ -136,7 +136,7 @@ namespace mRemoteNG.Forms.OptionsPages { continue; } - if (shortcutKey == 0) + if (shortcutKey.KeyCode == 0) { lstKeyboardShortcuts.SelectedItem = item; return ; @@ -169,7 +169,7 @@ namespace mRemoteNG.Forms.OptionsPages public void btnResetAllKeyboardShortcuts_Click(System.Object sender, EventArgs e) { - _keyboardShortcutMap = KeyboardShortcuts.DefaultMap.Clone(); + _keyboardShortcutMap = (mRemoteNG.Config.KeyboardShortcutMap)KeyboardShortcuts.DefaultMap.Clone(); lvKeyboardCommands_SelectedIndexChanged(this, new EventArgs()); } @@ -234,6 +234,7 @@ namespace mRemoteNG.Forms.OptionsPages { return ShortcutCommand.NextTab; } + return ShortcutCommand.None; } private void EnableKeyboardShortcutControls(bool enable = true) diff --git a/mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/KeyboardPage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/KeyboardPage.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/OptionsPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/OptionsPage.cs new file mode 100644 index 000000000..bbe50d2f7 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/OptionsPage.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using System.ComponentModel; +using mRemoteNG.App; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public class OptionsPage : UserControl + { + public OptionsPage() + { + //InitializeComponent(); + } + + #region Public Properties + [Browsable(false)]public virtual string PageName {get; set;} + + public virtual Icon PageIcon {get; set;} + #endregion + + #region Public Methods + public virtual void ApplyLanguage() + { + + } + + public virtual void LoadSettings() + { + + } + + public virtual void SaveSettings() + { + + } + + public virtual void RevertSettings() + { + + } + #endregion + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.Designer.cs new file mode 100644 index 000000000..a4b70e499 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.Designer.cs @@ -0,0 +1,208 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class SqlServerPage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SqlServerPage)); + this.lblSQLDatabaseName = new System.Windows.Forms.Label(); + this.txtSQLDatabaseName = new System.Windows.Forms.TextBox(); + this.lblExperimental = new System.Windows.Forms.Label(); + this.chkUseSQLServer = new System.Windows.Forms.CheckBox(); + this.chkUseSQLServer.CheckedChanged += new System.EventHandler(this.chkUseSQLServer_CheckedChanged); + this.lblSQLUsername = new System.Windows.Forms.Label(); + this.txtSQLPassword = new System.Windows.Forms.TextBox(); + this.lblSQLInfo = new System.Windows.Forms.Label(); + this.lblSQLServer = new System.Windows.Forms.Label(); + this.txtSQLUsername = new System.Windows.Forms.TextBox(); + this.txtSQLServer = new System.Windows.Forms.TextBox(); + this.lblSQLPassword = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + //lblSQLDatabaseName + // + this.lblSQLDatabaseName.Enabled = false; + this.lblSQLDatabaseName.Location = new System.Drawing.Point(23, 132); + this.lblSQLDatabaseName.Name = "lblSQLDatabaseName"; + this.lblSQLDatabaseName.Size = new System.Drawing.Size(111, 13); + this.lblSQLDatabaseName.TabIndex = 16; + this.lblSQLDatabaseName.Text = "Database:"; + this.lblSQLDatabaseName.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //txtSQLDatabaseName + // + this.txtSQLDatabaseName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtSQLDatabaseName.Enabled = false; + this.txtSQLDatabaseName.Location = new System.Drawing.Point(140, 130); + this.txtSQLDatabaseName.Name = "txtSQLDatabaseName"; + this.txtSQLDatabaseName.Size = new System.Drawing.Size(153, 20); + this.txtSQLDatabaseName.TabIndex = 17; + // + //lblExperimental + // + this.lblExperimental.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.lblExperimental.Font = new System.Drawing.Font("Segoe UI", (float) (12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World); + this.lblExperimental.ForeColor = System.Drawing.Color.FromArgb(System.Convert.ToInt32(System.Convert.ToByte(192)), System.Convert.ToInt32(System.Convert.ToByte(0)), System.Convert.ToInt32(System.Convert.ToByte(0))); + this.lblExperimental.Location = new System.Drawing.Point(3, 0); + this.lblExperimental.Name = "lblExperimental"; + this.lblExperimental.Size = new System.Drawing.Size(596, 25); + this.lblExperimental.TabIndex = 11; + this.lblExperimental.Text = "EXPERIMENTAL"; + this.lblExperimental.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + //chkUseSQLServer + // + this.chkUseSQLServer.AutoSize = true; + this.chkUseSQLServer.Location = new System.Drawing.Point(3, 76); + this.chkUseSQLServer.Name = "chkUseSQLServer"; + this.chkUseSQLServer.Size = new System.Drawing.Size(234, 17); + this.chkUseSQLServer.TabIndex = 13; + this.chkUseSQLServer.Text = "Use SQL Server to load && save connections"; + this.chkUseSQLServer.UseVisualStyleBackColor = true; + // + //lblSQLUsername + // + this.lblSQLUsername.Enabled = false; + this.lblSQLUsername.Location = new System.Drawing.Point(23, 158); + this.lblSQLUsername.Name = "lblSQLUsername"; + this.lblSQLUsername.Size = new System.Drawing.Size(111, 13); + this.lblSQLUsername.TabIndex = 18; + this.lblSQLUsername.Text = "Username:"; + this.lblSQLUsername.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //txtSQLPassword + // + this.txtSQLPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtSQLPassword.Enabled = false; + this.txtSQLPassword.Location = new System.Drawing.Point(140, 182); + this.txtSQLPassword.Name = "txtSQLPassword"; + this.txtSQLPassword.Size = new System.Drawing.Size(153, 20); + this.txtSQLPassword.TabIndex = 21; + this.txtSQLPassword.UseSystemPasswordChar = true; + // + //lblSQLInfo + // + this.lblSQLInfo.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.lblSQLInfo.Font = new System.Drawing.Font("Segoe UI", (float) (12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World); + this.lblSQLInfo.ForeColor = System.Drawing.Color.FromArgb(System.Convert.ToInt32(System.Convert.ToByte(192)), System.Convert.ToInt32(System.Convert.ToByte(0)), System.Convert.ToInt32(System.Convert.ToByte(0))); + this.lblSQLInfo.Location = new System.Drawing.Point(3, 25); + this.lblSQLInfo.Name = "lblSQLInfo"; + this.lblSQLInfo.Size = new System.Drawing.Size(596, 25); + this.lblSQLInfo.TabIndex = 12; + this.lblSQLInfo.Text = "Please see Help - Getting started - SQL Configuration for more Info!"; + this.lblSQLInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + //lblSQLServer + // + this.lblSQLServer.Enabled = false; + this.lblSQLServer.Location = new System.Drawing.Point(23, 106); + this.lblSQLServer.Name = "lblSQLServer"; + this.lblSQLServer.Size = new System.Drawing.Size(111, 13); + this.lblSQLServer.TabIndex = 14; + this.lblSQLServer.Text = "SQL Server:"; + this.lblSQLServer.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //txtSQLUsername + // + this.txtSQLUsername.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtSQLUsername.Enabled = false; + this.txtSQLUsername.Location = new System.Drawing.Point(140, 156); + this.txtSQLUsername.Name = "txtSQLUsername"; + this.txtSQLUsername.Size = new System.Drawing.Size(153, 20); + this.txtSQLUsername.TabIndex = 19; + // + //txtSQLServer + // + this.txtSQLServer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtSQLServer.Enabled = false; + this.txtSQLServer.Location = new System.Drawing.Point(140, 103); + this.txtSQLServer.Name = "txtSQLServer"; + this.txtSQLServer.Size = new System.Drawing.Size(153, 20); + this.txtSQLServer.TabIndex = 15; + // + //lblSQLPassword + // + this.lblSQLPassword.Enabled = false; + this.lblSQLPassword.Location = new System.Drawing.Point(23, 184); + this.lblSQLPassword.Name = "lblSQLPassword"; + this.lblSQLPassword.Size = new System.Drawing.Size(111, 13); + this.lblSQLPassword.TabIndex = 20; + this.lblSQLPassword.Text = "Password:"; + this.lblSQLPassword.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + //SqlServerPage + // + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.lblSQLDatabaseName); + this.Controls.Add(this.txtSQLDatabaseName); + this.Controls.Add(this.lblExperimental); + this.Controls.Add(this.chkUseSQLServer); + this.Controls.Add(this.lblSQLUsername); + this.Controls.Add(this.txtSQLPassword); + this.Controls.Add(this.lblSQLInfo); + this.Controls.Add(this.lblSQLServer); + this.Controls.Add(this.txtSQLUsername); + this.Controls.Add(this.txtSQLServer); + this.Controls.Add(this.lblSQLPassword); + this.Name = "SqlServerPage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + this.ResumeLayout(false); + this.PerformLayout(); + + } + internal System.Windows.Forms.Label lblSQLDatabaseName; + internal System.Windows.Forms.TextBox txtSQLDatabaseName; + internal System.Windows.Forms.Label lblExperimental; + internal System.Windows.Forms.CheckBox chkUseSQLServer; + internal System.Windows.Forms.Label lblSQLUsername; + internal System.Windows.Forms.TextBox txtSQLPassword; + internal System.Windows.Forms.Label lblSQLInfo; + internal System.Windows.Forms.Label lblSQLServer; + internal System.Windows.Forms.TextBox txtSQLUsername; + internal System.Windows.Forms.TextBox txtSQLServer; + internal System.Windows.Forms.Label lblSQLPassword; + + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.cs new file mode 100644 index 000000000..814eb2550 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.cs @@ -0,0 +1,90 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using mRemoteNG.My; +using mRemoteNG.App; +using mRemoteNG.Security; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class SqlServerPage + { + public SqlServerPage() + { + InitializeComponent(); + } + public override string PageName + { + get + { + return Language.strSQLServer.TrimEnd(':'); + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + lblExperimental.Text = Language.strExperimental.ToUpper(); + lblSQLInfo.Text = Language.strSQLInfo; + + chkUseSQLServer.Text = Language.strUseSQLServer; + lblSQLServer.Text = Language.strLabelHostname; + lblSQLDatabaseName.Text = Language.strLabelSQLServerDatabaseName; + lblSQLUsername.Text = Language.strLabelUsername; + lblSQLPassword.Text = Language.strLabelPassword; + } + + public override void LoadSettings() + { + base.SaveSettings(); + + chkUseSQLServer.Checked = System.Convert.ToBoolean(My.Settings.Default.UseSQLServer); + txtSQLServer.Text = System.Convert.ToString(My.Settings.Default.SQLHost); + txtSQLDatabaseName.Text = System.Convert.ToString(My.Settings.Default.SQLDatabaseName); + txtSQLUsername.Text = System.Convert.ToString(My.Settings.Default.SQLUser); + txtSQLPassword.Text = Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.SQLPass), App.Info.General.EncryptionKey); + } + + public override void SaveSettings() + { + base.SaveSettings(); + + My.Settings.Default.UseSQLServer = chkUseSQLServer.Checked; + My.Settings.Default.SQLHost = txtSQLServer.Text; + My.Settings.Default.SQLDatabaseName = txtSQLDatabaseName.Text; + My.Settings.Default.SQLUser = txtSQLUsername.Text; + My.Settings.Default.SQLPass = Crypt.Encrypt(txtSQLPassword.Text, App.Info.General.EncryptionKey); + + Runtime.Startup.DestroySQLUpdateHandlerAndStopTimer(); + frmMain.Default.UsingSqlServer = System.Convert.ToBoolean(My.Settings.Default.UseSQLServer); + if (My.Settings.Default.UseSQLServer) + { + Runtime.Startup.CreateSQLUpdateHandlerAndStartTimer(); + } + } + + public void chkUseSQLServer_CheckedChanged(object sender, EventArgs e) + { + lblSQLServer.Enabled = chkUseSQLServer.Checked; + lblSQLDatabaseName.Enabled = chkUseSQLServer.Checked; + lblSQLUsername.Enabled = chkUseSQLServer.Checked; + lblSQLPassword.Enabled = chkUseSQLServer.Checked; + txtSQLServer.Enabled = chkUseSQLServer.Checked; + txtSQLDatabaseName.Enabled = chkUseSQLServer.Checked; + txtSQLUsername.Enabled = chkUseSQLServer.Checked; + txtSQLPassword.Enabled = chkUseSQLServer.Checked; + } + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/SqlServerPage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/SqlServerPage.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.Designer.cs new file mode 100644 index 000000000..a52d276d5 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.Designer.cs @@ -0,0 +1,112 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class StartupExitPage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StartupExitPage)); + this.chkReconnectOnStart = new System.Windows.Forms.CheckBox(); + base.Load += new System.EventHandler(StartupExitPage_Load); + this.chkSaveConsOnExit = new System.Windows.Forms.CheckBox(); + this.chkSingleInstance = new System.Windows.Forms.CheckBox(); + this.chkProperInstallationOfComponentsAtStartup = new System.Windows.Forms.CheckBox(); + this.SuspendLayout(); + // + //chkReconnectOnStart + // + this.chkReconnectOnStart.AutoSize = true; + this.chkReconnectOnStart.Location = new System.Drawing.Point(3, 24); + this.chkReconnectOnStart.Name = "chkReconnectOnStart"; + this.chkReconnectOnStart.Size = new System.Drawing.Size(273, 17); + this.chkReconnectOnStart.TabIndex = 7; + this.chkReconnectOnStart.Text = "Reconnect to previously opened sessions on startup"; + this.chkReconnectOnStart.UseVisualStyleBackColor = true; + // + //chkSaveConsOnExit + // + this.chkSaveConsOnExit.AutoSize = true; + this.chkSaveConsOnExit.Location = new System.Drawing.Point(3, 0); + this.chkSaveConsOnExit.Name = "chkSaveConsOnExit"; + this.chkSaveConsOnExit.Size = new System.Drawing.Size(146, 17); + this.chkSaveConsOnExit.TabIndex = 6; + this.chkSaveConsOnExit.Text = "Save connections on exit"; + this.chkSaveConsOnExit.UseVisualStyleBackColor = true; + // + //chkSingleInstance + // + this.chkSingleInstance.AutoSize = true; + this.chkSingleInstance.Location = new System.Drawing.Point(3, 48); + this.chkSingleInstance.Name = "chkSingleInstance"; + this.chkSingleInstance.Size = new System.Drawing.Size(366, 17); + this.chkSingleInstance.TabIndex = 8; + this.chkSingleInstance.Text = "Allow only a single instance of the application (mRemote restart required)"; + this.chkSingleInstance.UseVisualStyleBackColor = true; + // + //chkProperInstallationOfComponentsAtStartup + // + this.chkProperInstallationOfComponentsAtStartup.AutoSize = true; + this.chkProperInstallationOfComponentsAtStartup.Location = new System.Drawing.Point(3, 72); + this.chkProperInstallationOfComponentsAtStartup.Name = "chkProperInstallationOfComponentsAtStartup"; + this.chkProperInstallationOfComponentsAtStartup.Size = new System.Drawing.Size(262, 17); + this.chkProperInstallationOfComponentsAtStartup.TabIndex = 9; + this.chkProperInstallationOfComponentsAtStartup.Text = "Check proper installation of components at startup"; + this.chkProperInstallationOfComponentsAtStartup.UseVisualStyleBackColor = true; + // + //StartupExitPage + // + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.chkReconnectOnStart); + this.Controls.Add(this.chkSaveConsOnExit); + this.Controls.Add(this.chkSingleInstance); + this.Controls.Add(this.chkProperInstallationOfComponentsAtStartup); + this.Name = "StartupExitPage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + this.ResumeLayout(false); + this.PerformLayout(); + + } + internal System.Windows.Forms.CheckBox chkReconnectOnStart; + internal System.Windows.Forms.CheckBox chkSaveConsOnExit; + internal System.Windows.Forms.CheckBox chkSingleInstance; + internal System.Windows.Forms.CheckBox chkProperInstallationOfComponentsAtStartup; + + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.cs new file mode 100644 index 000000000..56f986fc0 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.cs @@ -0,0 +1,61 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using mRemoteNG.My; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class StartupExitPage + { + public StartupExitPage() + { + InitializeComponent(); + } + public override string PageName + { + get + { + return Language.strStartupExit; + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + chkSaveConsOnExit.Text = Language.strSaveConsOnExit; + chkReconnectOnStart.Text = Language.strReconnectAtStartup; + chkSingleInstance.Text = Language.strAllowOnlySingleInstance; + chkProperInstallationOfComponentsAtStartup.Text = Language.strCheckProperInstallationOfComponentsAtStartup; + } + + public override void SaveSettings() + { + base.SaveSettings(); + + My.Settings.Default.SaveConsOnExit = chkSaveConsOnExit.Checked; + My.Settings.Default.OpenConsFromLastSession = chkReconnectOnStart.Checked; + My.Settings.Default.SingleInstance = chkSingleInstance.Checked; + My.Settings.Default.StartupComponentsCheck = chkProperInstallationOfComponentsAtStartup.Checked; + } + + public void StartupExitPage_Load(System.Object sender, EventArgs e) + { + chkSaveConsOnExit.Checked = My.Settings.Default.SaveConsOnExit; + chkReconnectOnStart.Checked = My.Settings.Default.OpenConsFromLastSession; + chkSingleInstance.Checked = My.Settings.Default.SingleInstance; + chkProperInstallationOfComponentsAtStartup.Checked = My.Settings.Default.StartupComponentsCheck; + } + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/StartupExitPage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/StartupExitPage.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.Designer.cs new file mode 100644 index 000000000..8b64e451d --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.Designer.cs @@ -0,0 +1,218 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class TabsPanelsPage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TabsPanelsPage)); + this.chkAlwaysShowPanelTabs = new System.Windows.Forms.CheckBox(); + this.chkIdentifyQuickConnectTabs = new System.Windows.Forms.CheckBox(); + this.chkUseOnlyErrorsAndInfosPanel = new System.Windows.Forms.CheckBox(); + this.chkUseOnlyErrorsAndInfosPanel.CheckedChanged += new System.EventHandler(this.chkUseOnlyErrorsAndInfosPanel_CheckedChanged); + this.chkOpenNewTabRightOfSelected = new System.Windows.Forms.CheckBox(); + this.lblSwitchToErrorsAndInfos = new System.Windows.Forms.Label(); + this.chkAlwaysShowPanelSelectionDlg = new System.Windows.Forms.CheckBox(); + this.chkMCInformation = new System.Windows.Forms.CheckBox(); + this.chkShowLogonInfoOnTabs = new System.Windows.Forms.CheckBox(); + this.chkMCErrors = new System.Windows.Forms.CheckBox(); + this.chkDoubleClickClosesTab = new System.Windows.Forms.CheckBox(); + this.chkMCWarnings = new System.Windows.Forms.CheckBox(); + this.chkShowProtocolOnTabs = new System.Windows.Forms.CheckBox(); + this.SuspendLayout(); + // + //chkAlwaysShowPanelTabs + // + this.chkAlwaysShowPanelTabs.AutoSize = true; + this.chkAlwaysShowPanelTabs.Location = new System.Drawing.Point(3, 0); + this.chkAlwaysShowPanelTabs.Name = "chkAlwaysShowPanelTabs"; + this.chkAlwaysShowPanelTabs.Size = new System.Drawing.Size(139, 17); + this.chkAlwaysShowPanelTabs.TabIndex = 12; + this.chkAlwaysShowPanelTabs.Text = "Always show panel tabs"; + this.chkAlwaysShowPanelTabs.UseVisualStyleBackColor = true; + // + //chkIdentifyQuickConnectTabs + // + this.chkIdentifyQuickConnectTabs.AutoSize = true; + this.chkIdentifyQuickConnectTabs.Location = new System.Drawing.Point(3, 92); + this.chkIdentifyQuickConnectTabs.Name = "chkIdentifyQuickConnectTabs"; + this.chkIdentifyQuickConnectTabs.Size = new System.Drawing.Size(293, 17); + this.chkIdentifyQuickConnectTabs.TabIndex = 16; + this.chkIdentifyQuickConnectTabs.Text = global::mRemoteNG.My.Language.strIdentifyQuickConnectTabs; + this.chkIdentifyQuickConnectTabs.UseVisualStyleBackColor = true; + // + //chkUseOnlyErrorsAndInfosPanel + // + this.chkUseOnlyErrorsAndInfosPanel.AutoSize = true; + this.chkUseOnlyErrorsAndInfosPanel.Location = new System.Drawing.Point(3, 185); + this.chkUseOnlyErrorsAndInfosPanel.Name = "chkUseOnlyErrorsAndInfosPanel"; + this.chkUseOnlyErrorsAndInfosPanel.Size = new System.Drawing.Size(278, 17); + this.chkUseOnlyErrorsAndInfosPanel.TabIndex = 19; + this.chkUseOnlyErrorsAndInfosPanel.Text = "Use only Notifications panel (no messagebox popups)"; + this.chkUseOnlyErrorsAndInfosPanel.UseVisualStyleBackColor = true; + // + //chkOpenNewTabRightOfSelected + // + this.chkOpenNewTabRightOfSelected.AutoSize = true; + this.chkOpenNewTabRightOfSelected.Location = new System.Drawing.Point(3, 23); + this.chkOpenNewTabRightOfSelected.Name = "chkOpenNewTabRightOfSelected"; + this.chkOpenNewTabRightOfSelected.Size = new System.Drawing.Size(280, 17); + this.chkOpenNewTabRightOfSelected.TabIndex = 13; + this.chkOpenNewTabRightOfSelected.Text = "Open new tab to the right of the currently selected tab"; + this.chkOpenNewTabRightOfSelected.UseVisualStyleBackColor = true; + // + //lblSwitchToErrorsAndInfos + // + this.lblSwitchToErrorsAndInfos.AutoSize = true; + this.lblSwitchToErrorsAndInfos.Location = new System.Drawing.Point(3, 210); + this.lblSwitchToErrorsAndInfos.Name = "lblSwitchToErrorsAndInfos"; + this.lblSwitchToErrorsAndInfos.Size = new System.Drawing.Size(159, 13); + this.lblSwitchToErrorsAndInfos.TabIndex = 20; + this.lblSwitchToErrorsAndInfos.Text = "Switch to Notifications panel on:"; + // + //chkAlwaysShowPanelSelectionDlg + // + this.chkAlwaysShowPanelSelectionDlg.AutoSize = true; + this.chkAlwaysShowPanelSelectionDlg.Location = new System.Drawing.Point(3, 138); + this.chkAlwaysShowPanelSelectionDlg.Name = "chkAlwaysShowPanelSelectionDlg"; + this.chkAlwaysShowPanelSelectionDlg.Size = new System.Drawing.Size(317, 17); + this.chkAlwaysShowPanelSelectionDlg.TabIndex = 18; + this.chkAlwaysShowPanelSelectionDlg.Text = "Always show panel selection dialog when opening connectins"; + this.chkAlwaysShowPanelSelectionDlg.UseVisualStyleBackColor = true; + // + //chkMCInformation + // + this.chkMCInformation.AutoSize = true; + this.chkMCInformation.Enabled = false; + this.chkMCInformation.Location = new System.Drawing.Point(19, 230); + this.chkMCInformation.Name = "chkMCInformation"; + this.chkMCInformation.Size = new System.Drawing.Size(83, 17); + this.chkMCInformation.TabIndex = 21; + this.chkMCInformation.Text = "Informations"; + this.chkMCInformation.UseVisualStyleBackColor = true; + // + //chkShowLogonInfoOnTabs + // + this.chkShowLogonInfoOnTabs.AutoSize = true; + this.chkShowLogonInfoOnTabs.Location = new System.Drawing.Point(3, 46); + this.chkShowLogonInfoOnTabs.Name = "chkShowLogonInfoOnTabs"; + this.chkShowLogonInfoOnTabs.Size = new System.Drawing.Size(203, 17); + this.chkShowLogonInfoOnTabs.TabIndex = 14; + this.chkShowLogonInfoOnTabs.Text = "Show logon information on tab names"; + this.chkShowLogonInfoOnTabs.UseVisualStyleBackColor = true; + // + //chkMCErrors + // + this.chkMCErrors.AutoSize = true; + this.chkMCErrors.Enabled = false; + this.chkMCErrors.Location = new System.Drawing.Point(19, 276); + this.chkMCErrors.Name = "chkMCErrors"; + this.chkMCErrors.Size = new System.Drawing.Size(53, 17); + this.chkMCErrors.TabIndex = 23; + this.chkMCErrors.Text = "Errors"; + this.chkMCErrors.UseVisualStyleBackColor = true; + // + //chkDoubleClickClosesTab + // + this.chkDoubleClickClosesTab.AutoSize = true; + this.chkDoubleClickClosesTab.Location = new System.Drawing.Point(3, 115); + this.chkDoubleClickClosesTab.Name = "chkDoubleClickClosesTab"; + this.chkDoubleClickClosesTab.Size = new System.Drawing.Size(159, 17); + this.chkDoubleClickClosesTab.TabIndex = 17; + this.chkDoubleClickClosesTab.Text = "Double click on tab closes it"; + this.chkDoubleClickClosesTab.UseVisualStyleBackColor = true; + // + //chkMCWarnings + // + this.chkMCWarnings.AutoSize = true; + this.chkMCWarnings.Enabled = false; + this.chkMCWarnings.Location = new System.Drawing.Point(19, 253); + this.chkMCWarnings.Name = "chkMCWarnings"; + this.chkMCWarnings.Size = new System.Drawing.Size(71, 17); + this.chkMCWarnings.TabIndex = 22; + this.chkMCWarnings.Text = "Warnings"; + this.chkMCWarnings.UseVisualStyleBackColor = true; + // + //chkShowProtocolOnTabs + // + this.chkShowProtocolOnTabs.AutoSize = true; + this.chkShowProtocolOnTabs.Location = new System.Drawing.Point(3, 69); + this.chkShowProtocolOnTabs.Name = "chkShowProtocolOnTabs"; + this.chkShowProtocolOnTabs.Size = new System.Drawing.Size(166, 17); + this.chkShowProtocolOnTabs.TabIndex = 15; + this.chkShowProtocolOnTabs.Text = "Show protocols on tab names"; + this.chkShowProtocolOnTabs.UseVisualStyleBackColor = true; + // + //TabsPanelsPage + // + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.chkAlwaysShowPanelTabs); + this.Controls.Add(this.chkIdentifyQuickConnectTabs); + this.Controls.Add(this.chkUseOnlyErrorsAndInfosPanel); + this.Controls.Add(this.chkOpenNewTabRightOfSelected); + this.Controls.Add(this.lblSwitchToErrorsAndInfos); + this.Controls.Add(this.chkAlwaysShowPanelSelectionDlg); + this.Controls.Add(this.chkMCInformation); + this.Controls.Add(this.chkShowLogonInfoOnTabs); + this.Controls.Add(this.chkMCErrors); + this.Controls.Add(this.chkDoubleClickClosesTab); + this.Controls.Add(this.chkMCWarnings); + this.Controls.Add(this.chkShowProtocolOnTabs); + this.Name = "TabsPanelsPage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + this.ResumeLayout(false); + this.PerformLayout(); + + } + internal System.Windows.Forms.CheckBox chkAlwaysShowPanelTabs; + internal System.Windows.Forms.CheckBox chkIdentifyQuickConnectTabs; + internal System.Windows.Forms.CheckBox chkUseOnlyErrorsAndInfosPanel; + internal System.Windows.Forms.CheckBox chkOpenNewTabRightOfSelected; + internal System.Windows.Forms.Label lblSwitchToErrorsAndInfos; + internal System.Windows.Forms.CheckBox chkAlwaysShowPanelSelectionDlg; + internal System.Windows.Forms.CheckBox chkMCInformation; + internal System.Windows.Forms.CheckBox chkShowLogonInfoOnTabs; + internal System.Windows.Forms.CheckBox chkMCErrors; + internal System.Windows.Forms.CheckBox chkDoubleClickClosesTab; + internal System.Windows.Forms.CheckBox chkMCWarnings; + internal System.Windows.Forms.CheckBox chkShowProtocolOnTabs; + + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.cs new file mode 100644 index 000000000..05304cfc9 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.cs @@ -0,0 +1,97 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using mRemoteNG.My; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class TabsPanelsPage + { + public TabsPanelsPage() + { + InitializeComponent(); + } +public override string PageName + { + get + { + return Language.strTabsAndPanels.Replace("&&", "&"); + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + chkAlwaysShowPanelTabs.Text = Language.strAlwaysShowPanelTabs; + chkOpenNewTabRightOfSelected.Text = Language.strOpenNewTabRight; + chkShowLogonInfoOnTabs.Text = Language.strShowLogonInfoOnTabs; + chkShowProtocolOnTabs.Text = Language.strShowProtocolOnTabs; + chkIdentifyQuickConnectTabs.Text = Language.strIdentifyQuickConnectTabs; + chkDoubleClickClosesTab.Text = Language.strDoubleClickTabClosesIt; + chkAlwaysShowPanelSelectionDlg.Text = Language.strAlwaysShowPanelSelection; + + chkUseOnlyErrorsAndInfosPanel.Text = Language.strUseOnlyErrorsAndInfosPanel; + lblSwitchToErrorsAndInfos.Text = Language.strSwitchToErrorsAndInfos; + chkMCInformation.Text = Language.strInformations; + chkMCWarnings.Text = Language.strWarnings; + chkMCErrors.Text = Language.strErrors; + } + + public override void LoadSettings() + { + base.SaveSettings(); + + chkAlwaysShowPanelTabs.Checked = My.Settings.Default.AlwaysShowPanelTabs; + chkOpenNewTabRightOfSelected.Checked = My.Settings.Default.OpenTabsRightOfSelected; + chkShowLogonInfoOnTabs.Checked = My.Settings.Default.ShowLogonInfoOnTabs; + chkShowProtocolOnTabs.Checked = My.Settings.Default.ShowProtocolOnTabs; + chkIdentifyQuickConnectTabs.Checked = My.Settings.Default.IdentifyQuickConnectTabs; + chkDoubleClickClosesTab.Checked = My.Settings.Default.DoubleClickOnTabClosesIt; + chkAlwaysShowPanelSelectionDlg.Checked = My.Settings.Default.AlwaysShowPanelSelectionDlg; + + chkUseOnlyErrorsAndInfosPanel.Checked = My.Settings.Default.ShowNoMessageBoxes; + chkMCInformation.Checked = My.Settings.Default.SwitchToMCOnInformation; + chkMCWarnings.Checked = My.Settings.Default.SwitchToMCOnWarning; + chkMCErrors.Checked = My.Settings.Default.SwitchToMCOnError; + } + + public override void SaveSettings() + { + base.SaveSettings(); + + My.Settings.Default.AlwaysShowPanelTabs = chkAlwaysShowPanelTabs.Checked; + frmMain.Default.ShowHidePanelTabs(); + + My.Settings.Default.OpenTabsRightOfSelected = chkOpenNewTabRightOfSelected.Checked; + My.Settings.Default.ShowLogonInfoOnTabs = chkShowLogonInfoOnTabs.Checked; + My.Settings.Default.ShowProtocolOnTabs = chkShowProtocolOnTabs.Checked; + My.Settings.Default.IdentifyQuickConnectTabs = chkIdentifyQuickConnectTabs.Checked; + My.Settings.Default.DoubleClickOnTabClosesIt = chkDoubleClickClosesTab.Checked; + My.Settings.Default.AlwaysShowPanelSelectionDlg = chkAlwaysShowPanelSelectionDlg.Checked; + + My.Settings.Default.ShowNoMessageBoxes = chkUseOnlyErrorsAndInfosPanel.Checked; + My.Settings.Default.SwitchToMCOnInformation = chkMCInformation.Checked; + My.Settings.Default.SwitchToMCOnWarning = chkMCWarnings.Checked; + My.Settings.Default.SwitchToMCOnError = chkMCErrors.Checked; + } + + public void chkUseOnlyErrorsAndInfosPanel_CheckedChanged(object sender, EventArgs e) + { + chkMCInformation.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked; + chkMCWarnings.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked; + chkMCErrors.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked; + } + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/TabsPanelsPage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/TabsPanelsPage.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.Designer.cs new file mode 100644 index 000000000..52db2e277 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.Designer.cs @@ -0,0 +1,111 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class ThemePage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ThemePage)); + this.btnThemeDelete = new System.Windows.Forms.Button(); + this.btnThemeDelete.Click += new System.EventHandler(this.btnThemeDelete_Click); + this.btnThemeNew = new System.Windows.Forms.Button(); + this.btnThemeNew.Click += new System.EventHandler(this.btnThemeNew_Click); + this.cboTheme = new System.Windows.Forms.ComboBox(); + this.cboTheme.DropDown += new System.EventHandler(this.cboTheme_DropDown); + this.cboTheme.SelectionChangeCommitted += new System.EventHandler(this.cboTheme_SelectionChangeCommitted); + this.ThemePropertyGrid = new System.Windows.Forms.PropertyGrid(); + this.SuspendLayout(); + // + //btnThemeDelete + // + this.btnThemeDelete.Location = new System.Drawing.Point(535, 0); + this.btnThemeDelete.Name = "btnThemeDelete"; + this.btnThemeDelete.Size = new System.Drawing.Size(75, 23); + this.btnThemeDelete.TabIndex = 6; + this.btnThemeDelete.Text = "&Delete"; + this.btnThemeDelete.UseVisualStyleBackColor = true; + // + //btnThemeNew + // + this.btnThemeNew.Location = new System.Drawing.Point(454, 0); + this.btnThemeNew.Name = "btnThemeNew"; + this.btnThemeNew.Size = new System.Drawing.Size(75, 23); + this.btnThemeNew.TabIndex = 5; + this.btnThemeNew.Text = "&New"; + this.btnThemeNew.UseVisualStyleBackColor = true; + // + //cboTheme + // + this.cboTheme.FormattingEnabled = true; + this.cboTheme.Location = new System.Drawing.Point(3, 1); + this.cboTheme.Name = "cboTheme"; + this.cboTheme.Size = new System.Drawing.Size(445, 21); + this.cboTheme.TabIndex = 4; + // + //ThemePropertyGrid + // + this.ThemePropertyGrid.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.ThemePropertyGrid.Location = new System.Drawing.Point(3, 29); + this.ThemePropertyGrid.Name = "ThemePropertyGrid"; + this.ThemePropertyGrid.Size = new System.Drawing.Size(607, 460); + this.ThemePropertyGrid.TabIndex = 7; + this.ThemePropertyGrid.UseCompatibleTextRendering = true; + // + //ThemePage + // + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.btnThemeDelete); + this.Controls.Add(this.btnThemeNew); + this.Controls.Add(this.cboTheme); + this.Controls.Add(this.ThemePropertyGrid); + this.Name = "ThemePage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + this.ResumeLayout(false); + + } + internal System.Windows.Forms.Button btnThemeDelete; + internal System.Windows.Forms.Button btnThemeNew; + internal System.Windows.Forms.ComboBox cboTheme; + internal System.Windows.Forms.PropertyGrid ThemePropertyGrid; + + } +} diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.cs new file mode 100644 index 000000000..a9483ed33 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.cs @@ -0,0 +1,140 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using System.ComponentModel; +using mRemoteNG.My; +using mRemoteNG.Themes; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class ThemePage + { + public ThemePage() + { + InitializeComponent(); + } + public override string PageName + { + get + { + return Language.strOptionsTabTheme; + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + btnThemeDelete.Text = Language.strOptionsThemeButtonDelete; + btnThemeNew.Text = Language.strOptionsThemeButtonNew; + } + + public override void LoadSettings() + { + base.SaveSettings(); + + _themeList = new BindingList(ThemeManager.LoadThemes()); + cboTheme.DataSource = _themeList; + cboTheme.SelectedItem = ThemeManager.ActiveTheme; + cboTheme_SelectionChangeCommitted(this, new EventArgs()); + + ThemePropertyGrid.PropertySort = PropertySort.Categorized; + + _originalTheme = ThemeManager.ActiveTheme; + } + + public override void SaveSettings() + { + base.SaveSettings(); + + ThemeManager.SaveThemes(_themeList); + My.Settings.Default.ThemeName = ThemeManager.ActiveTheme.Name; + } + + public override void RevertSettings() + { + ThemeManager.ActiveTheme = _originalTheme; + } + + #region Private Fields + private BindingList _themeList; + private ThemeInfo _originalTheme; + #endregion + + #region Private Methods + #region Event Handlers + public void cboTheme_DropDown(object sender, EventArgs e) + { + if (ThemeManager.ActiveTheme == ThemeManager.DefaultTheme) + { + return ; + } + ThemeManager.ActiveTheme.Name = cboTheme.Text; + } + + public void cboTheme_SelectionChangeCommitted(object sender, EventArgs e) + { + if (cboTheme.SelectedItem == null) + { + cboTheme.SelectedItem = ThemeManager.DefaultTheme; + } + + if (cboTheme.SelectedItem == ThemeManager.DefaultTheme) + { + cboTheme.DropDownStyle = ComboBoxStyle.DropDownList; + btnThemeDelete.Enabled = false; + ThemePropertyGrid.Enabled = false; + } + else + { + cboTheme.DropDownStyle = ComboBoxStyle.DropDown; + btnThemeDelete.Enabled = true; + ThemePropertyGrid.Enabled = true; + } + + ThemeManager.ActiveTheme = (ThemeInfo)cboTheme.SelectedItem; + ThemePropertyGrid.SelectedObject = ThemeManager.ActiveTheme; + ThemePropertyGrid.Refresh(); + } + + public void btnThemeNew_Click(object sender, EventArgs e) + { + ThemeInfo newTheme = (ThemeInfo)ThemeManager.ActiveTheme.Clone(); + newTheme.Name = Language.strUnnamedTheme; + + _themeList.Add(newTheme); + + cboTheme.SelectedItem = newTheme; + cboTheme_SelectionChangeCommitted(this, new EventArgs()); + + cboTheme.Focus(); + } + + public void btnThemeDelete_Click(object sender, EventArgs e) + { + ThemeInfo theme = (ThemeInfo)cboTheme.SelectedItem; + if (theme == null) + { + return ; + } + + _themeList.Remove(theme); + + cboTheme.SelectedItem = ThemeManager.DefaultTheme; + cboTheme_SelectionChangeCommitted(this, new EventArgs()); + } + #endregion + #endregion + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/ThemePage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/ThemePage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/ThemePage.resx diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.Designer.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.Designer.cs new file mode 100644 index 000000000..6539d4b0c --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.Designer.cs @@ -0,0 +1,302 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + +namespace mRemoteNG.Forms.OptionsPages +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class UpdatesPage : OptionsPage + { + + //UserControl overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UpdatesPage)); + this.lblUpdatesExplanation = new System.Windows.Forms.Label(); + this.pnlUpdateCheck = new System.Windows.Forms.Panel(); + this.btnUpdateCheckNow = new System.Windows.Forms.Button(); + this.btnUpdateCheckNow.Click += new System.EventHandler(this.btnUpdateCheckNow_Click); + this.chkCheckForUpdatesOnStartup = new System.Windows.Forms.CheckBox(); + this.chkCheckForUpdatesOnStartup.CheckedChanged += new System.EventHandler(this.chkCheckForUpdatesOnStartup_CheckedChanged); + this.cboUpdateCheckFrequency = new System.Windows.Forms.ComboBox(); + this.pnlProxy = new System.Windows.Forms.Panel(); + this.pnlProxyBasic = new System.Windows.Forms.Panel(); + this.lblProxyAddress = new System.Windows.Forms.Label(); + this.txtProxyAddress = new System.Windows.Forms.TextBox(); + this.lblProxyPort = new System.Windows.Forms.Label(); + this.numProxyPort = new System.Windows.Forms.NumericUpDown(); + this.chkUseProxyForAutomaticUpdates = new System.Windows.Forms.CheckBox(); + this.chkUseProxyForAutomaticUpdates.CheckedChanged += new System.EventHandler(this.chkUseProxyForAutomaticUpdates_CheckedChanged); + this.chkUseProxyAuthentication = new System.Windows.Forms.CheckBox(); + this.chkUseProxyAuthentication.CheckedChanged += new System.EventHandler(this.chkUseProxyAuthentication_CheckedChanged); + this.pnlProxyAuthentication = new System.Windows.Forms.Panel(); + this.lblProxyUsername = new System.Windows.Forms.Label(); + this.txtProxyUsername = new System.Windows.Forms.TextBox(); + this.lblProxyPassword = new System.Windows.Forms.Label(); + this.txtProxyPassword = new System.Windows.Forms.TextBox(); + this.btnTestProxy = new System.Windows.Forms.Button(); + this.btnTestProxy.Click += new System.EventHandler(this.btnTestProxy_Click); + this.pnlUpdateCheck.SuspendLayout(); + this.pnlProxy.SuspendLayout(); + this.pnlProxyBasic.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize) this.numProxyPort).BeginInit(); + this.pnlProxyAuthentication.SuspendLayout(); + this.SuspendLayout(); + // + //lblUpdatesExplanation + // + this.lblUpdatesExplanation.Location = new System.Drawing.Point(3, 0); + this.lblUpdatesExplanation.Name = "lblUpdatesExplanation"; + this.lblUpdatesExplanation.Size = new System.Drawing.Size(536, 40); + this.lblUpdatesExplanation.TabIndex = 3; + this.lblUpdatesExplanation.Text = "mRemoteNG can periodically connect to the mRemoteNG website to check for updates " + + "and product announcements."; + // + //pnlUpdateCheck + // + this.pnlUpdateCheck.Controls.Add(this.btnUpdateCheckNow); + this.pnlUpdateCheck.Controls.Add(this.chkCheckForUpdatesOnStartup); + this.pnlUpdateCheck.Controls.Add(this.cboUpdateCheckFrequency); + this.pnlUpdateCheck.Location = new System.Drawing.Point(0, 48); + this.pnlUpdateCheck.Name = "pnlUpdateCheck"; + this.pnlUpdateCheck.Size = new System.Drawing.Size(610, 120); + this.pnlUpdateCheck.TabIndex = 4; + // + //btnUpdateCheckNow + // + this.btnUpdateCheckNow.Location = new System.Drawing.Point(3, 80); + this.btnUpdateCheckNow.Name = "btnUpdateCheckNow"; + this.btnUpdateCheckNow.Size = new System.Drawing.Size(120, 32); + this.btnUpdateCheckNow.TabIndex = 2; + this.btnUpdateCheckNow.Text = "Check Now"; + this.btnUpdateCheckNow.UseVisualStyleBackColor = true; + // + //chkCheckForUpdatesOnStartup + // + this.chkCheckForUpdatesOnStartup.AutoSize = true; + this.chkCheckForUpdatesOnStartup.Location = new System.Drawing.Point(3, 8); + this.chkCheckForUpdatesOnStartup.Name = "chkCheckForUpdatesOnStartup"; + this.chkCheckForUpdatesOnStartup.Size = new System.Drawing.Size(213, 17); + this.chkCheckForUpdatesOnStartup.TabIndex = 0; + this.chkCheckForUpdatesOnStartup.Text = "Check for updates and announcements"; + this.chkCheckForUpdatesOnStartup.UseVisualStyleBackColor = true; + // + //cboUpdateCheckFrequency + // + this.cboUpdateCheckFrequency.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboUpdateCheckFrequency.FormattingEnabled = true; + this.cboUpdateCheckFrequency.Location = new System.Drawing.Point(48, 40); + this.cboUpdateCheckFrequency.Name = "cboUpdateCheckFrequency"; + this.cboUpdateCheckFrequency.Size = new System.Drawing.Size(128, 21); + this.cboUpdateCheckFrequency.TabIndex = 1; + // + //pnlProxy + // + this.pnlProxy.Controls.Add(this.pnlProxyBasic); + this.pnlProxy.Controls.Add(this.chkUseProxyForAutomaticUpdates); + this.pnlProxy.Controls.Add(this.chkUseProxyAuthentication); + this.pnlProxy.Controls.Add(this.pnlProxyAuthentication); + this.pnlProxy.Controls.Add(this.btnTestProxy); + this.pnlProxy.Location = new System.Drawing.Point(0, 200); + this.pnlProxy.Name = "pnlProxy"; + this.pnlProxy.Size = new System.Drawing.Size(610, 224); + this.pnlProxy.TabIndex = 5; + // + //pnlProxyBasic + // + this.pnlProxyBasic.Controls.Add(this.lblProxyAddress); + this.pnlProxyBasic.Controls.Add(this.txtProxyAddress); + this.pnlProxyBasic.Controls.Add(this.lblProxyPort); + this.pnlProxyBasic.Controls.Add(this.numProxyPort); + this.pnlProxyBasic.Enabled = false; + this.pnlProxyBasic.Location = new System.Drawing.Point(3, 32); + this.pnlProxyBasic.Name = "pnlProxyBasic"; + this.pnlProxyBasic.Size = new System.Drawing.Size(604, 40); + this.pnlProxyBasic.TabIndex = 1; + // + //lblProxyAddress + // + this.lblProxyAddress.Location = new System.Drawing.Point(8, 4); + this.lblProxyAddress.Name = "lblProxyAddress"; + this.lblProxyAddress.Size = new System.Drawing.Size(96, 24); + this.lblProxyAddress.TabIndex = 0; + this.lblProxyAddress.Text = "Address:"; + this.lblProxyAddress.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + //txtProxyAddress + // + this.txtProxyAddress.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtProxyAddress.Location = new System.Drawing.Point(104, 8); + this.txtProxyAddress.Name = "txtProxyAddress"; + this.txtProxyAddress.Size = new System.Drawing.Size(240, 20); + this.txtProxyAddress.TabIndex = 1; + // + //lblProxyPort + // + this.lblProxyPort.Location = new System.Drawing.Point(350, 5); + this.lblProxyPort.Name = "lblProxyPort"; + this.lblProxyPort.Size = new System.Drawing.Size(64, 23); + this.lblProxyPort.TabIndex = 2; + this.lblProxyPort.Text = "Port:"; + this.lblProxyPort.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + //numProxyPort + // + this.numProxyPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.numProxyPort.Location = new System.Drawing.Point(420, 8); + this.numProxyPort.Maximum = new decimal(new int[] {65535, 0, 0, 0}); + this.numProxyPort.Minimum = new decimal(new int[] {1, 0, 0, 0}); + this.numProxyPort.Name = "numProxyPort"; + this.numProxyPort.Size = new System.Drawing.Size(64, 20); + this.numProxyPort.TabIndex = 3; + this.numProxyPort.Value = new decimal(new int[] {80, 0, 0, 0}); + // + //chkUseProxyForAutomaticUpdates + // + this.chkUseProxyForAutomaticUpdates.AutoSize = true; + this.chkUseProxyForAutomaticUpdates.Location = new System.Drawing.Point(3, 8); + this.chkUseProxyForAutomaticUpdates.Name = "chkUseProxyForAutomaticUpdates"; + this.chkUseProxyForAutomaticUpdates.Size = new System.Drawing.Size(168, 17); + this.chkUseProxyForAutomaticUpdates.TabIndex = 0; + this.chkUseProxyForAutomaticUpdates.Text = "Use a proxy server to connect"; + this.chkUseProxyForAutomaticUpdates.UseVisualStyleBackColor = true; + // + //chkUseProxyAuthentication + // + this.chkUseProxyAuthentication.AutoSize = true; + this.chkUseProxyAuthentication.Enabled = false; + this.chkUseProxyAuthentication.Location = new System.Drawing.Point(27, 80); + this.chkUseProxyAuthentication.Name = "chkUseProxyAuthentication"; + this.chkUseProxyAuthentication.Size = new System.Drawing.Size(216, 17); + this.chkUseProxyAuthentication.TabIndex = 2; + this.chkUseProxyAuthentication.Text = "This proxy server requires authentication"; + this.chkUseProxyAuthentication.UseVisualStyleBackColor = true; + // + //pnlProxyAuthentication + // + this.pnlProxyAuthentication.Controls.Add(this.lblProxyUsername); + this.pnlProxyAuthentication.Controls.Add(this.txtProxyUsername); + this.pnlProxyAuthentication.Controls.Add(this.lblProxyPassword); + this.pnlProxyAuthentication.Controls.Add(this.txtProxyPassword); + this.pnlProxyAuthentication.Enabled = false; + this.pnlProxyAuthentication.Location = new System.Drawing.Point(3, 104); + this.pnlProxyAuthentication.Name = "pnlProxyAuthentication"; + this.pnlProxyAuthentication.Size = new System.Drawing.Size(604, 72); + this.pnlProxyAuthentication.TabIndex = 3; + // + //lblProxyUsername + // + this.lblProxyUsername.Location = new System.Drawing.Point(8, 4); + this.lblProxyUsername.Name = "lblProxyUsername"; + this.lblProxyUsername.Size = new System.Drawing.Size(96, 24); + this.lblProxyUsername.TabIndex = 0; + this.lblProxyUsername.Text = "Username:"; + this.lblProxyUsername.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + //txtProxyUsername + // + this.txtProxyUsername.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtProxyUsername.Location = new System.Drawing.Point(104, 8); + this.txtProxyUsername.Name = "txtProxyUsername"; + this.txtProxyUsername.Size = new System.Drawing.Size(240, 20); + this.txtProxyUsername.TabIndex = 1; + // + //lblProxyPassword + // + this.lblProxyPassword.Location = new System.Drawing.Point(8, 36); + this.lblProxyPassword.Name = "lblProxyPassword"; + this.lblProxyPassword.Size = new System.Drawing.Size(96, 24); + this.lblProxyPassword.TabIndex = 2; + this.lblProxyPassword.Text = "Password:"; + this.lblProxyPassword.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + //txtProxyPassword + // + this.txtProxyPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtProxyPassword.Location = new System.Drawing.Point(104, 40); + this.txtProxyPassword.Name = "txtProxyPassword"; + this.txtProxyPassword.Size = new System.Drawing.Size(240, 20); + this.txtProxyPassword.TabIndex = 3; + this.txtProxyPassword.UseSystemPasswordChar = true; + // + //btnTestProxy + // + this.btnTestProxy.Location = new System.Drawing.Point(3, 184); + this.btnTestProxy.Name = "btnTestProxy"; + this.btnTestProxy.Size = new System.Drawing.Size(120, 32); + this.btnTestProxy.TabIndex = 4; + this.btnTestProxy.Text = "Test Proxy"; + this.btnTestProxy.UseVisualStyleBackColor = true; + // + //UpdatesPage + // + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.lblUpdatesExplanation); + this.Controls.Add(this.pnlUpdateCheck); + this.Controls.Add(this.pnlProxy); + this.Name = "UpdatesPage"; + this.PageIcon = (System.Drawing.Icon) (resources.GetObject("$this.PageIcon")); + this.Size = new System.Drawing.Size(610, 489); + this.pnlUpdateCheck.ResumeLayout(false); + this.pnlUpdateCheck.PerformLayout(); + this.pnlProxy.ResumeLayout(false); + this.pnlProxy.PerformLayout(); + this.pnlProxyBasic.ResumeLayout(false); + this.pnlProxyBasic.PerformLayout(); + ((System.ComponentModel.ISupportInitialize) this.numProxyPort).EndInit(); + this.pnlProxyAuthentication.ResumeLayout(false); + this.pnlProxyAuthentication.PerformLayout(); + this.ResumeLayout(false); + + } + internal System.Windows.Forms.Label lblUpdatesExplanation; + internal System.Windows.Forms.Panel pnlUpdateCheck; + internal System.Windows.Forms.Button btnUpdateCheckNow; + internal System.Windows.Forms.CheckBox chkCheckForUpdatesOnStartup; + internal System.Windows.Forms.ComboBox cboUpdateCheckFrequency; + internal System.Windows.Forms.Panel pnlProxy; + internal System.Windows.Forms.Panel pnlProxyBasic; + internal System.Windows.Forms.Label lblProxyAddress; + internal System.Windows.Forms.TextBox txtProxyAddress; + internal System.Windows.Forms.Label lblProxyPort; + internal System.Windows.Forms.NumericUpDown numProxyPort; + internal System.Windows.Forms.CheckBox chkUseProxyForAutomaticUpdates; + internal System.Windows.Forms.CheckBox chkUseProxyAuthentication; + internal System.Windows.Forms.Panel pnlProxyAuthentication; + internal System.Windows.Forms.Label lblProxyUsername; + internal System.Windows.Forms.TextBox txtProxyUsername; + internal System.Windows.Forms.Label lblProxyPassword; + internal System.Windows.Forms.TextBox txtProxyPassword; + internal System.Windows.Forms.Button btnTestProxy; + + } +} \ No newline at end of file diff --git a/mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.cs b/mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.cs new file mode 100644 index 000000000..d9cf5ec80 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.cs @@ -0,0 +1,257 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using System.ComponentModel; +using mRemoteNG.My; +using mRemoteNG.App; +using mRemoteNG.Security; +using mRemoteNG.Tools; +using mRemoteNG.UI.Window; +using PSTaskDialog; + + +namespace mRemoteNG.Forms.OptionsPages +{ + public partial class UpdatesPage + { + public UpdatesPage() + { + InitializeComponent(); + } + #region Public Methods + public override string PageName + { + get + { + return Language.strTabUpdates; + } + set + { + } + } + + public override void ApplyLanguage() + { + base.ApplyLanguage(); + + #if !PORTABLE + lblUpdatesExplanation.Text = Language.strUpdateCheck; + #else + lblUpdatesExplanation.Text = Language.strUpdateCheckPortableEdition; + #endif + + chkCheckForUpdatesOnStartup.Text = Language.strCheckForUpdatesOnStartup; + btnUpdateCheckNow.Text = Language.strCheckNow; + + chkUseProxyForAutomaticUpdates.Text = Language.strCheckboxUpdateUseProxy; + lblProxyAddress.Text = Language.strLabelAddress; + lblProxyPort.Text = Language.strLabelPort; + + chkUseProxyAuthentication.Text = Language.strCheckboxProxyAuthentication; + lblProxyUsername.Text = Language.strLabelUsername; + lblProxyPassword.Text = Language.strLabelPassword; + + btnTestProxy.Text = Language.strButtonTestProxy; + } + + public override void LoadSettings() + { + base.SaveSettings(); + + chkCheckForUpdatesOnStartup.Checked = System.Convert.ToBoolean(My.Settings.Default.CheckForUpdatesOnStartup); + cboUpdateCheckFrequency.Enabled = chkCheckForUpdatesOnStartup.Checked; + cboUpdateCheckFrequency.Items.Clear(); + int nDaily = cboUpdateCheckFrequency.Items.Add(Language.strUpdateFrequencyDaily); + int nWeekly = cboUpdateCheckFrequency.Items.Add(Language.strUpdateFrequencyWeekly); + int nMonthly = cboUpdateCheckFrequency.Items.Add(Language.strUpdateFrequencyMonthly); + if (My.Settings.Default.CheckForUpdatesFrequencyDays < 1) + { + chkCheckForUpdatesOnStartup.Checked = false; + cboUpdateCheckFrequency.SelectedIndex = nDaily; + } // Daily + else if ((int) My.Settings.Default.CheckForUpdatesFrequencyDays == 1) + { + cboUpdateCheckFrequency.SelectedIndex = nDaily; + } // Weekly + else if ((int) My.Settings.Default.CheckForUpdatesFrequencyDays == 7) + { + cboUpdateCheckFrequency.SelectedIndex = nWeekly; + } // Monthly + else if ((int) My.Settings.Default.CheckForUpdatesFrequencyDays == 31) + { + cboUpdateCheckFrequency.SelectedIndex = nMonthly; + } + else + { + int nCustom = cboUpdateCheckFrequency.Items.Add(string.Format(Language.strUpdateFrequencyCustom, My.Settings.Default.CheckForUpdatesFrequencyDays)); + cboUpdateCheckFrequency.SelectedIndex = nCustom; + } + + chkUseProxyForAutomaticUpdates.Checked = System.Convert.ToBoolean(My.Settings.Default.UpdateUseProxy); + pnlProxyBasic.Enabled = System.Convert.ToBoolean(My.Settings.Default.UpdateUseProxy); + txtProxyAddress.Text = System.Convert.ToString(My.Settings.Default.UpdateProxyAddress); + numProxyPort.Value = System.Convert.ToDecimal(My.Settings.Default.UpdateProxyPort); + + chkUseProxyAuthentication.Checked = System.Convert.ToBoolean(My.Settings.Default.UpdateProxyUseAuthentication); + pnlProxyAuthentication.Enabled = System.Convert.ToBoolean(My.Settings.Default.UpdateProxyUseAuthentication); + txtProxyUsername.Text = System.Convert.ToString(My.Settings.Default.UpdateProxyAuthUser); + txtProxyPassword.Text = Crypt.Decrypt(System.Convert.ToString(My.Settings.Default.UpdateProxyAuthPass), App.Info.General.EncryptionKey); + + btnTestProxy.Enabled = System.Convert.ToBoolean(My.Settings.Default.UpdateUseProxy); + + #if PORTABLE + foreach (Control Control in Controls) + { + if (Control != lblUpdatesExplanation) + { + Control.Visible = false; + } + } + #endif + } + + public override void SaveSettings() + { + base.SaveSettings(); + + My.Settings.Default.CheckForUpdatesOnStartup = chkCheckForUpdatesOnStartup.Checked; + if (cboUpdateCheckFrequency.SelectedItem.ToString() == Language.strUpdateFrequencyDaily) + { + My.Settings.Default.CheckForUpdatesFrequencyDays = 1; + } + else if (cboUpdateCheckFrequency.SelectedItem.ToString() == Language.strUpdateFrequencyWeekly) + { + My.Settings.Default.CheckForUpdatesFrequencyDays = 7; + } + else if (cboUpdateCheckFrequency.SelectedItem.ToString() == Language.strUpdateFrequencyMonthly) + { + My.Settings.Default.CheckForUpdatesFrequencyDays = 31; + } + + My.Settings.Default.UpdateUseProxy = chkUseProxyForAutomaticUpdates.Checked; + My.Settings.Default.UpdateProxyAddress = txtProxyAddress.Text; + My.Settings.Default.UpdateProxyPort = (int)numProxyPort.Value; + + My.Settings.Default.UpdateProxyUseAuthentication = chkUseProxyAuthentication.Checked; + My.Settings.Default.UpdateProxyAuthUser = txtProxyUsername.Text; + My.Settings.Default.UpdateProxyAuthPass = Crypt.Encrypt(txtProxyPassword.Text, App.Info.General.EncryptionKey); + } + #endregion + + #region Private Fields + private App.Update _appUpdate; + #endregion + + #region Private Methods + #region Event Handlers + public void chkCheckForUpdatesOnStartup_CheckedChanged(object sender, EventArgs e) + { + cboUpdateCheckFrequency.Enabled = chkCheckForUpdatesOnStartup.Checked; + } + + public void btnUpdateCheckNow_Click(object sender, EventArgs e) + { + Runtime.Windows.Show(UI.Window.Type.Update); + } + + public void chkUseProxyForAutomaticUpdates_CheckedChanged(object sender, EventArgs e) + { + pnlProxyBasic.Enabled = chkUseProxyForAutomaticUpdates.Checked; + btnTestProxy.Enabled = chkUseProxyForAutomaticUpdates.Checked; + + if (chkUseProxyForAutomaticUpdates.Checked) + { + chkUseProxyAuthentication.Enabled = true; + + if (chkUseProxyAuthentication.Checked) + { + pnlProxyAuthentication.Enabled = true; + } + } + else + { + chkUseProxyAuthentication.Enabled = false; + pnlProxyAuthentication.Enabled = false; + } + } + + public void btnTestProxy_Click(object sender, EventArgs e) + { + if (_appUpdate != null) + { + if (_appUpdate.IsGetUpdateInfoRunning) + { + return ; + } + } + + _appUpdate = new App.Update(); + //_appUpdate.Load += _appUpdate.Update_Load; + _appUpdate.SetProxySettings(chkUseProxyForAutomaticUpdates.Checked, txtProxyAddress.Text, (int) numProxyPort.Value, chkUseProxyAuthentication.Checked, txtProxyUsername.Text, txtProxyPassword.Text); + + btnTestProxy.Enabled = false; + btnTestProxy.Text = Language.strOptionsProxyTesting; + + _appUpdate.GetUpdateInfoCompletedEvent += GetUpdateInfoCompleted; + + _appUpdate.GetUpdateInfoAsync(); + } + + public void chkUseProxyAuthentication_CheckedChanged(object sender, EventArgs e) + { + if (chkUseProxyForAutomaticUpdates.Checked) + { + if (chkUseProxyAuthentication.Checked) + { + pnlProxyAuthentication.Enabled = true; + } + else + { + pnlProxyAuthentication.Enabled = false; + } + } + } + #endregion + + private void GetUpdateInfoCompleted(object sender, AsyncCompletedEventArgs e) + { + if (InvokeRequired) + { + AsyncCompletedEventHandler myDelegate = new AsyncCompletedEventHandler(GetUpdateInfoCompleted); + Invoke(myDelegate, new object[] {sender, e}); + return ; + } + + try + { + _appUpdate.GetUpdateInfoCompletedEvent -= GetUpdateInfoCompleted; + + btnTestProxy.Enabled = true; + btnTestProxy.Text = Language.strButtonTestProxy; + + if (e.Cancelled) + { + return ; + } + if (e.Error != null) + { + throw (e.Error); + } + + cTaskDialog.ShowCommandBox(this, System.Convert.ToString(Application.ProductName), Language.strProxyTestSucceeded, "", Language.strButtonOK, false); + } + catch (Exception ex) + { + cTaskDialog.ShowCommandBox(this, System.Convert.ToString(Application.ProductName), Language.strProxyTestFailed, Misc.GetExceptionMessageRecursive(ex), "", "", "", Language.strButtonOK, false, eSysIcons.Error, (PSTaskDialog.eSysIcons) 0); + } + } + #endregion + } +} diff --git a/mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.resx b/mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.resx similarity index 100% rename from mRemoteV1/CS/Forms/OptionsPages/UpdatesPage.resx rename to mRemoteV1/CS/UI/Forms/OptionsPages/UpdatesPage.resx diff --git a/mRemoteV1/CS/UI/Forms/PasswordForm.Designer.cs b/mRemoteV1/CS/UI/Forms/PasswordForm.Designer.cs new file mode 100644 index 000000000..85b5b4317 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/PasswordForm.Designer.cs @@ -0,0 +1,183 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; + + +namespace mRemoteNG.Forms +{ + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public + partial class PasswordForm : System.Windows.Forms.Form + { + + //Form overrides dispose to clean up the component list. + [System.Diagnostics.DebuggerNonUserCode()] + protected override void Dispose(bool disposing) + { + try + { + if (disposing && components != null) + { + components.Dispose(); + } + } + finally + { + base.Dispose(disposing); + } + } + + //Required by the Windows Form Designer + private System.ComponentModel.Container components = null; + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()] + private void InitializeComponent() + { + this.lblPassword = new System.Windows.Forms.Label(); + this.Load += new System.EventHandler(frmPassword_Load); + this.lblVerify = new System.Windows.Forms.Label(); + this.btnOK = new System.Windows.Forms.Button(); + this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + this.btnCancel = new System.Windows.Forms.Button(); + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + this.lblStatus = new System.Windows.Forms.Label(); + this.pbLock = new System.Windows.Forms.PictureBox(); + this.txtVerify = new mRemoteNG.Controls.TextBox(); + this.txtVerify.TextChanged += new System.EventHandler(this.txtPassword_TextChanged); + this.txtPassword = new mRemoteNG.Controls.TextBox(); + this.txtPassword.TextChanged += new System.EventHandler(this.txtPassword_TextChanged); + ((System.ComponentModel.ISupportInitialize) this.pbLock).BeginInit(); + this.SuspendLayout(); + // + //lblPassword + // + this.lblPassword.AutoSize = true; + this.lblPassword.Location = new System.Drawing.Point(82, 12); + this.lblPassword.Name = "lblPassword"; + this.lblPassword.Size = new System.Drawing.Size(56, 13); + this.lblPassword.TabIndex = 1; + this.lblPassword.Text = "Password:"; + // + //lblVerify + // + this.lblVerify.AutoSize = true; + this.lblVerify.Location = new System.Drawing.Point(82, 51); + this.lblVerify.Name = "lblVerify"; + this.lblVerify.Size = new System.Drawing.Size(36, 13); + this.lblVerify.TabIndex = 3; + this.lblVerify.Text = "Verify:"; + // + //btnOK + // + this.btnOK.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); + this.btnOK.Location = new System.Drawing.Point(291, 119); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(75, 23); + this.btnOK.TabIndex = 7; + this.btnOK.Text = mRemoteNG.My.Language.strButtonOK; + this.btnOK.UseVisualStyleBackColor = true; + // + //btnCancel + // + this.btnCancel.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); + this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.btnCancel.Location = new System.Drawing.Point(210, 119); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.TabIndex = 6; + this.btnCancel.Text = global::mRemoteNG.My.Language.strButtonCancel; + this.btnCancel.UseVisualStyleBackColor = true; + // + //lblStatus + // + this.lblStatus.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.lblStatus.ForeColor = System.Drawing.Color.Red; + this.lblStatus.Location = new System.Drawing.Point(85, 90); + this.lblStatus.Name = "lblStatus"; + this.lblStatus.Size = new System.Drawing.Size(281, 13); + this.lblStatus.TabIndex = 5; + this.lblStatus.Text = "Status"; + this.lblStatus.TextAlign = System.Drawing.ContentAlignment.TopRight; + this.lblStatus.Visible = false; + // + //pbLock + // + this.pbLock.Image = My.Resources.Lock; + this.pbLock.Location = new System.Drawing.Point(12, 12); + this.pbLock.Name = "pbLock"; + this.pbLock.Size = new System.Drawing.Size(64, 64); + this.pbLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pbLock.TabIndex = 7; + this.pbLock.TabStop = false; + // + //txtVerify + // + this.txtVerify.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.txtVerify.Location = new System.Drawing.Point(85, 67); + this.txtVerify.Name = "txtVerify"; + this.txtVerify.SelectAllOnFocus = true; + this.txtVerify.Size = new System.Drawing.Size(281, 20); + this.txtVerify.TabIndex = 4; + this.txtVerify.UseSystemPasswordChar = true; + // + //txtPassword + // + this.txtPassword.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.txtPassword.Location = new System.Drawing.Point(85, 28); + this.txtPassword.Name = "txtPassword"; + this.txtPassword.SelectAllOnFocus = true; + this.txtPassword.Size = new System.Drawing.Size(281, 20); + this.txtPassword.TabIndex = 2; + this.txtPassword.UseSystemPasswordChar = true; + // + //frmPassword + // + this.AcceptButton = this.btnOK; + this.AutoScaleDimensions = new System.Drawing.SizeF((float) (6.0F), (float) (13.0F)); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.btnCancel; + this.ClientSize = new System.Drawing.Size(378, 154); + this.ControlBox = false; + this.Controls.Add(this.pbLock); + this.Controls.Add(this.txtVerify); + this.Controls.Add(this.txtPassword); + this.Controls.Add(this.lblStatus); + this.Controls.Add(this.lblVerify); + this.Controls.Add(this.lblPassword); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOK); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "PasswordForm"; + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Password"; + ((System.ComponentModel.ISupportInitialize) this.pbLock).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + private Controls.TextBox txtPassword; + private Controls.TextBox txtVerify; + private System.Windows.Forms.Label lblPassword; + private System.Windows.Forms.Label lblVerify; + private System.Windows.Forms.Button btnOK; + private System.Windows.Forms.Button btnCancel; + private System.Windows.Forms.Label lblStatus; + private System.Windows.Forms.PictureBox pbLock; + } +} diff --git a/mRemoteV1/CS/UI/Forms/PasswordForm.cs b/mRemoteV1/CS/UI/Forms/PasswordForm.cs new file mode 100644 index 000000000..c2773b286 --- /dev/null +++ b/mRemoteV1/CS/UI/Forms/PasswordForm.cs @@ -0,0 +1,155 @@ +using System.Collections.Generic; +using System; +using AxWFICALib; +using System.Drawing; +using System.Diagnostics; +using System.Data; +using AxMSTSCLib; +using Microsoft.VisualBasic; +using System.Collections; +using System.Windows.Forms; +using mRemoteNG.My; + + +namespace mRemoteNG.Forms +{ + public partial class PasswordForm + { + #region Public Properties + private bool _Verify = true; + public bool Verify + { + get + { + return _Verify; + } + set + { + _Verify = value; + } + } + + public string Password + { + get + { + if (Verify) + { + return txtVerify.Text; + } + else + { + return txtPassword.Text; + } + } + } + #endregion + + #region Constructors + public PasswordForm(string passwordName = null, bool verify = true) + { + // This call is required by the designer. + InitializeComponent(); + + // Add any initialization after the InitializeComponent() call. + _passwordName = passwordName; + this.Verify = verify; + } + #endregion + + #region Event Handlers + public void frmPassword_Load(object sender, EventArgs e) + { + ApplyLanguage(); + + if (!Verify) + { + Height = Height - (txtVerify.Top - txtPassword.Top); + lblVerify.Visible = false; + txtVerify.Visible = false; + } + } + + public void btnCancel_Click(System.Object sender, EventArgs e) + { + DialogResult = DialogResult.Cancel; + } + + public void btnOK_Click(System.Object sender, EventArgs e) + { + if (Verify) + { + if (VerifyPassword()) + { + DialogResult = DialogResult.OK; + } + } + else + { + DialogResult = DialogResult.OK; + } + } + + public void txtPassword_TextChanged(System.Object sender, EventArgs e) + { + HideStatus(); + } + #endregion + + #region Private Fields + private string _passwordName; + #endregion + + #region Private Methods + private void ApplyLanguage() + { + if (string.IsNullOrEmpty(_passwordName)) + { + Text = Language.strTitlePassword; + } + else + { + Text = string.Format(Language.strTitlePasswordWithName, _passwordName); + } + + lblPassword.Text = Language.strLabelPassword; + lblVerify.Text = Language.strLabelVerify; + + btnCancel.Text = Language.strButtonCancel; + btnOK.Text = Language.strButtonOK; + } + + private bool VerifyPassword() + { + if (txtPassword.Text.Length >= 3) + { + if (txtPassword.Text == txtVerify.Text) + { + return true; + } + else + { + ShowStatus(Language.strPasswordStatusMustMatch); + return false; + } + } + else + { + ShowStatus(Language.strPasswordStatusTooShort); + return false; + } + } + + private void ShowStatus(string status) + { + lblStatus.Visible = true; + lblStatus.Text = status; + } + + private void HideStatus() + { + lblStatus.Visible = false; + } + #endregion + } +} diff --git a/mRemoteV1/CS/Forms/PasswordForm.resx b/mRemoteV1/CS/UI/Forms/PasswordForm.resx similarity index 100% rename from mRemoteV1/CS/Forms/PasswordForm.resx rename to mRemoteV1/CS/UI/Forms/PasswordForm.resx diff --git a/mRemoteV1/CS/Forms/frmChoosePanel.Designer.cs b/mRemoteV1/CS/UI/Forms/frmChoosePanel.Designer.cs similarity index 94% rename from mRemoteV1/CS/Forms/frmChoosePanel.Designer.cs rename to mRemoteV1/CS/UI/Forms/frmChoosePanel.Designer.cs index 8fdbf58d0..023c218aa 100644 --- a/mRemoteV1/CS/Forms/frmChoosePanel.Designer.cs +++ b/mRemoteV1/CS/UI/Forms/frmChoosePanel.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,15 +8,13 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG { - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class frmChoosePanel : System.Windows.Forms.Form + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class frmChoosePanel : System.Windows.Forms.Form { - //Form overrides dispose to clean up the component list. [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) { @@ -84,7 +81,7 @@ namespace mRemoteNG //btnNew // this.btnNew.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnNew.Image = global::My.Resources.Resources.Panel_Add; + this.btnNew.Image = My.Resources.Panel_Add; this.btnNew.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnNew.Location = new System.Drawing.Point(10, 44); this.btnNew.Name = "btnNew"; @@ -118,7 +115,7 @@ namespace mRemoteNG this.Controls.Add(this.btnOK); this.Controls.Add(this.cbPanels); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Icon = global::My.Resources.Resources.Panels_Icon; + this.Icon = My.Resources.Panels_Icon; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "frmChoosePanel"; diff --git a/mRemoteV1/CS/Forms/frmChoosePanel.cs b/mRemoteV1/CS/UI/Forms/frmChoosePanel.cs similarity index 87% rename from mRemoteV1/CS/Forms/frmChoosePanel.cs rename to mRemoteV1/CS/UI/Forms/frmChoosePanel.cs index a1940b4f1..e6fd1dc9b 100644 --- a/mRemoteV1/CS/Forms/frmChoosePanel.cs +++ b/mRemoteV1/CS/UI/Forms/frmChoosePanel.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,9 +8,7 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports - -//using mRemoteNG.App.Runtime; +using mRemoteNG.App; namespace mRemoteNG { @@ -21,7 +18,7 @@ namespace mRemoteNG { InitializeComponent(); } -public string Panel + public string Panel { get { @@ -53,9 +50,9 @@ public string Panel { cbPanels.Items.Clear(); - for (int i = 0; i <= WindowList.Count - 1; i++) + for (int i = 0; i <= Runtime.WindowList.Count - 1; i++) { - cbPanels.Items.Add(WindowList[i].Text.Replace("&&", "&")); + cbPanels.Items.Add(Runtime.WindowList[i].Text.Replace("&&", "&")); } if (cbPanels.Items.Count > 0) @@ -77,7 +74,7 @@ public string Panel if (!string.IsNullOrEmpty(pnlName)) { - AddPanel(pnlName); + Runtime.AddPanel(pnlName); AddAvailablePanels(); cbPanels.SelectedItem = pnlName; cbPanels.Focus(); diff --git a/mRemoteV1/CS/Forms/frmChoosePanel.resx b/mRemoteV1/CS/UI/Forms/frmChoosePanel.resx similarity index 100% rename from mRemoteV1/CS/Forms/frmChoosePanel.resx rename to mRemoteV1/CS/UI/Forms/frmChoosePanel.resx diff --git a/mRemoteV1/CS/Forms/frmMain.Designer.cs b/mRemoteV1/CS/UI/Forms/frmMain.Designer.cs similarity index 91% rename from mRemoteV1/CS/Forms/frmMain.Designer.cs rename to mRemoteV1/CS/UI/Forms/frmMain.Designer.cs index 4fd5a78da..9694f743b 100644 --- a/mRemoteV1/CS/Forms/frmMain.Designer.cs +++ b/mRemoteV1/CS/UI/Forms/frmMain.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,17 +8,17 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG { - [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public - partial class frmMain : System.Windows.Forms.Form + [global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()] + public partial class frmMain : System.Windows.Forms.Form { //Form overrides dispose to clean up the component list. - [System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing) + [System.Diagnostics.DebuggerNonUserCode()] + protected override void Dispose(bool disposing) { try { @@ -40,7 +39,8 @@ namespace mRemoteNG //NOTE: The following procedure is required by the Windows Form Designer //It can be modified using the Windows Form Designer. //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent() + [System.Diagnostics.DebuggerStepThrough()] + private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.Load += new System.EventHandler(frmMain_Load); @@ -71,38 +71,38 @@ namespace mRemoteNG this.mMenFile = new System.Windows.Forms.ToolStripMenuItem(); this.mMenFile.DropDownOpening += new System.EventHandler(this.mMenFile_DropDownOpening); this.mMenFileNewConnection = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileNewConnection.Click += new System.EventHandler(this.mMenFileNewConnection_Click); + this.mMenFileNewConnection.Click += new System.EventHandler(mMenFileNewConnection_Click); this.mMenFileNewFolder = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileNewFolder.Click += new System.EventHandler(this.mMenFileNewFolder_Click); + this.mMenFileNewFolder.Click += new System.EventHandler(mMenFileNewFolder_Click); this.mMenFileSep1 = new System.Windows.Forms.ToolStripSeparator(); this.mMenFileNew = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileNew.Click += new System.EventHandler(this.mMenFileNew_Click); + this.mMenFileNew.Click += new System.EventHandler(mMenFileNew_Click); this.mMenFileLoad = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileLoad.Click += new System.EventHandler(this.mMenFileLoad_Click); + this.mMenFileLoad.Click += new System.EventHandler(mMenFileLoad_Click); this.mMenFileSave = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileSave.Click += new System.EventHandler(this.mMenFileSave_Click); + this.mMenFileSave.Click += new System.EventHandler(mMenFileSave_Click); this.mMenFileSaveAs = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileSaveAs.Click += new System.EventHandler(this.mMenFileSaveAs_Click); + this.mMenFileSaveAs.Click += new System.EventHandler(mMenFileSaveAs_Click); this.mMenFileSep2 = new System.Windows.Forms.ToolStripSeparator(); this.mMenFileImport = new System.Windows.Forms.ToolStripMenuItem(); this.mMenFileImportFromFile = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileImportFromFile.Click += new System.EventHandler(this.mMenFileImportFromFile_Click); + this.mMenFileImportFromFile.Click += new System.EventHandler(mMenFileImportFromFile_Click); this.mMenFileImportFromActiveDirectory = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileImportFromActiveDirectory.Click += new System.EventHandler(this.mMenFileImportFromActiveDirectory_Click); + this.mMenFileImportFromActiveDirectory.Click += new System.EventHandler(mMenFileImportFromActiveDirectory_Click); this.mMenFileImportFromPortScan = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileImportFromPortScan.Click += new System.EventHandler(this.mMenFileImportFromPortScan_Click); + this.mMenFileImportFromPortScan.Click += new System.EventHandler(mMenFileImportFromPortScan_Click); this.mMenFileExport = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileExport.Click += new System.EventHandler(this.mMenFileExport_Click); + this.mMenFileExport.Click += new System.EventHandler(mMenFileExport_Click); this.mMenFileSep3 = new System.Windows.Forms.ToolStripSeparator(); this.mMenFileDelete = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileDelete.Click += new System.EventHandler(this.mMenFileDelete_Click); + this.mMenFileDelete.Click += new System.EventHandler(mMenFileDelete_Click); this.mMenFileRename = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileRename.Click += new System.EventHandler(this.mMenFileRename_Click); + this.mMenFileRename.Click += new System.EventHandler(mMenFileRename_Click); this.mMenFileDuplicate = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileDuplicate.Click += new System.EventHandler(this.mMenFileDuplicate_Click); + this.mMenFileDuplicate.Click += new System.EventHandler(mMenFileDuplicate_Click); this.mMenFileSep4 = new System.Windows.Forms.ToolStripSeparator(); this.mMenFileExit = new System.Windows.Forms.ToolStripMenuItem(); - this.mMenFileExit.Click += new System.EventHandler(this.mMenFileExit_Click); + this.mMenFileExit.Click += new System.EventHandler(mMenFileExit_Click); this.mMenView = new System.Windows.Forms.ToolStripMenuItem(); this.mMenView.DropDownOpening += new System.EventHandler(this.mMenView_DropDownOpening); this.mMenViewAddConnectionPanel = new System.Windows.Forms.ToolStripMenuItem(); @@ -290,7 +290,7 @@ namespace mRemoteNG // //mMenFileNewConnection // - this.mMenFileNewConnection.Image = global::My.Resources.Resources.Connection_Add; + this.mMenFileNewConnection.Image = My.Resources.Connection_Add; this.mMenFileNewConnection.Name = "mMenFileNewConnection"; this.mMenFileNewConnection.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N); this.mMenFileNewConnection.Size = new System.Drawing.Size(281, 22); @@ -298,7 +298,7 @@ namespace mRemoteNG // //mMenFileNewFolder // - this.mMenFileNewFolder.Image = global::My.Resources.Resources.Folder_Add; + this.mMenFileNewFolder.Image = My.Resources.Folder_Add; this.mMenFileNewFolder.Name = "mMenFileNewFolder"; this.mMenFileNewFolder.ShortcutKeys = (System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.N); @@ -312,14 +312,14 @@ namespace mRemoteNG // //mMenFileNew // - this.mMenFileNew.Image = global::My.Resources.Resources.Connections_New; + this.mMenFileNew.Image = My.Resources.Connections_New; this.mMenFileNew.Name = "mMenFileNew"; this.mMenFileNew.Size = new System.Drawing.Size(281, 22); this.mMenFileNew.Text = "New Connection File"; // //mMenFileLoad // - this.mMenFileLoad.Image = global::My.Resources.Resources.Connections_Load; + this.mMenFileLoad.Image = My.Resources.Connections_Load; this.mMenFileLoad.Name = "mMenFileLoad"; this.mMenFileLoad.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O); this.mMenFileLoad.Size = new System.Drawing.Size(281, 22); @@ -327,7 +327,7 @@ namespace mRemoteNG // //mMenFileSave // - this.mMenFileSave.Image = global::My.Resources.Resources.Connections_Save; + this.mMenFileSave.Image = My.Resources.Connections_Save; this.mMenFileSave.Name = "mMenFileSave"; this.mMenFileSave.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S); this.mMenFileSave.Size = new System.Drawing.Size(281, 22); @@ -335,7 +335,7 @@ namespace mRemoteNG // //mMenFileSaveAs // - this.mMenFileSaveAs.Image = global::My.Resources.Resources.Connections_SaveAs; + this.mMenFileSaveAs.Image = My.Resources.Connections_SaveAs; this.mMenFileSaveAs.Name = "mMenFileSaveAs"; this.mMenFileSaveAs.ShortcutKeys = (System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.S); @@ -385,21 +385,21 @@ namespace mRemoteNG // //mMenFileDelete // - this.mMenFileDelete.Image = global::My.Resources.Resources.Delete; + this.mMenFileDelete.Image = My.Resources.Delete; this.mMenFileDelete.Name = "mMenFileDelete"; this.mMenFileDelete.Size = new System.Drawing.Size(281, 22); this.mMenFileDelete.Text = "Delete..."; // //mMenFileRename // - this.mMenFileRename.Image = global::My.Resources.Resources.Rename; + this.mMenFileRename.Image = My.Resources.Rename; this.mMenFileRename.Name = "mMenFileRename"; this.mMenFileRename.Size = new System.Drawing.Size(281, 22); this.mMenFileRename.Text = "Rename"; // //mMenFileDuplicate // - this.mMenFileDuplicate.Image = global::My.Resources.Resources.page_copy; + this.mMenFileDuplicate.Image = My.Resources.page_copy; this.mMenFileDuplicate.Name = "mMenFileDuplicate"; this.mMenFileDuplicate.Size = new System.Drawing.Size(281, 22); this.mMenFileDuplicate.Text = "Duplicate"; @@ -411,7 +411,7 @@ namespace mRemoteNG // //mMenFileExit // - this.mMenFileExit.Image = global::My.Resources.Resources.Quit; + this.mMenFileExit.Image = My.Resources.Quit; this.mMenFileExit.Name = "mMenFileExit"; this.mMenFileExit.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4); this.mMenFileExit.Size = new System.Drawing.Size(281, 22); @@ -426,14 +426,14 @@ namespace mRemoteNG // //mMenViewAddConnectionPanel // - this.mMenViewAddConnectionPanel.Image = global::My.Resources.Resources.Panel_Add; + this.mMenViewAddConnectionPanel.Image = My.Resources.Panel_Add; this.mMenViewAddConnectionPanel.Name = "mMenViewAddConnectionPanel"; this.mMenViewAddConnectionPanel.Size = new System.Drawing.Size(228, 22); this.mMenViewAddConnectionPanel.Text = "Add Connection Panel"; // //mMenViewConnectionPanels // - this.mMenViewConnectionPanels.Image = global::My.Resources.Resources.Panels; + this.mMenViewConnectionPanels.Image = My.Resources.Panels; this.mMenViewConnectionPanels.Name = "mMenViewConnectionPanels"; this.mMenViewConnectionPanels.Size = new System.Drawing.Size(228, 22); this.mMenViewConnectionPanels.Text = "Connection Panels"; @@ -447,7 +447,7 @@ namespace mRemoteNG // this.mMenViewConnections.Checked = true; this.mMenViewConnections.CheckState = System.Windows.Forms.CheckState.Checked; - this.mMenViewConnections.Image = global::My.Resources.Resources.Root; + this.mMenViewConnections.Image = My.Resources.Root; this.mMenViewConnections.Name = "mMenViewConnections"; this.mMenViewConnections.Size = new System.Drawing.Size(228, 22); this.mMenViewConnections.Text = "Connections"; @@ -456,7 +456,7 @@ namespace mRemoteNG // this.mMenViewConfig.Checked = true; this.mMenViewConfig.CheckState = System.Windows.Forms.CheckState.Checked; - this.mMenViewConfig.Image = global::My.Resources.Resources.cog; + this.mMenViewConfig.Image = My.Resources.cog; this.mMenViewConfig.Name = "mMenViewConfig"; this.mMenViewConfig.Size = new System.Drawing.Size(228, 22); this.mMenViewConfig.Text = "Config"; @@ -474,7 +474,7 @@ namespace mRemoteNG // this.mMenViewErrorsAndInfos.Checked = true; this.mMenViewErrorsAndInfos.CheckState = System.Windows.Forms.CheckState.Checked; - this.mMenViewErrorsAndInfos.Image = global::My.Resources.Resources.ErrorsAndInfos; + this.mMenViewErrorsAndInfos.Image = My.Resources.ErrorsAndInfos; this.mMenViewErrorsAndInfos.Name = "mMenViewErrorsAndInfos"; this.mMenViewErrorsAndInfos.Size = new System.Drawing.Size(228, 22); this.mMenViewErrorsAndInfos.Text = "Errors and Infos"; @@ -494,14 +494,14 @@ namespace mRemoteNG //mMenViewJumpTo // this.mMenViewJumpTo.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.mMenViewJumpToConnectionsConfig, this.mMenViewJumpToSessionsScreenshots, this.mMenViewJumpToErrorsInfos}); - this.mMenViewJumpTo.Image = global::My.Resources.Resources.JumpTo; + this.mMenViewJumpTo.Image = My.Resources.JumpTo; this.mMenViewJumpTo.Name = "mMenViewJumpTo"; this.mMenViewJumpTo.Size = new System.Drawing.Size(228, 22); this.mMenViewJumpTo.Text = "Jump To"; // //mMenViewJumpToConnectionsConfig // - this.mMenViewJumpToConnectionsConfig.Image = global::My.Resources.Resources.Root; + this.mMenViewJumpToConnectionsConfig.Image = My.Resources.Root; this.mMenViewJumpToConnectionsConfig.Name = "mMenViewJumpToConnectionsConfig"; this.mMenViewJumpToConnectionsConfig.ShortcutKeys = (System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Alt) | System.Windows.Forms.Keys.C); @@ -510,7 +510,7 @@ namespace mRemoteNG // //mMenViewJumpToSessionsScreenshots // - this.mMenViewJumpToSessionsScreenshots.Image = global::My.Resources.Resources.Sessions; + this.mMenViewJumpToSessionsScreenshots.Image = My.Resources.Sessions; this.mMenViewJumpToSessionsScreenshots.Name = "mMenViewJumpToSessionsScreenshots"; this.mMenViewJumpToSessionsScreenshots.ShortcutKeys = (System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Alt) | System.Windows.Forms.Keys.S); @@ -519,7 +519,7 @@ namespace mRemoteNG // //mMenViewJumpToErrorsInfos // - this.mMenViewJumpToErrorsInfos.Image = global::My.Resources.Resources.InformationSmall; + this.mMenViewJumpToErrorsInfos.Image = My.Resources.InformationSmall; this.mMenViewJumpToErrorsInfos.Name = "mMenViewJumpToErrorsInfos"; this.mMenViewJumpToErrorsInfos.ShortcutKeys = (System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Alt) | System.Windows.Forms.Keys.E); @@ -528,7 +528,7 @@ namespace mRemoteNG // //mMenViewResetLayout // - this.mMenViewResetLayout.Image = global::My.Resources.Resources.application_side_tree; + this.mMenViewResetLayout.Image = My.Resources.application_side_tree; this.mMenViewResetLayout.Name = "mMenViewResetLayout"; this.mMenViewResetLayout.Size = new System.Drawing.Size(228, 22); this.mMenViewResetLayout.Text = "Reset Layout"; @@ -540,14 +540,14 @@ namespace mRemoteNG // //mMenViewQuickConnectToolbar // - this.mMenViewQuickConnectToolbar.Image = global::My.Resources.Resources.Play_Quick; + this.mMenViewQuickConnectToolbar.Image = My.Resources.Play_Quick; this.mMenViewQuickConnectToolbar.Name = "mMenViewQuickConnectToolbar"; this.mMenViewQuickConnectToolbar.Size = new System.Drawing.Size(228, 22); this.mMenViewQuickConnectToolbar.Text = "Quick Connect Toolbar"; // //mMenViewExtAppsToolbar // - this.mMenViewExtAppsToolbar.Image = global::My.Resources.Resources.ExtApp; + this.mMenViewExtAppsToolbar.Image = My.Resources.ExtApp; this.mMenViewExtAppsToolbar.Name = "mMenViewExtAppsToolbar"; this.mMenViewExtAppsToolbar.Size = new System.Drawing.Size(228, 22); this.mMenViewExtAppsToolbar.Text = "External Applications Toolbar"; @@ -559,7 +559,7 @@ namespace mRemoteNG // //mMenViewFullscreen // - this.mMenViewFullscreen.Image = global::My.Resources.Resources.arrow_out; + this.mMenViewFullscreen.Image = My.Resources.arrow_out; this.mMenViewFullscreen.Name = "mMenViewFullscreen"; this.mMenViewFullscreen.ShortcutKeys = System.Windows.Forms.Keys.F11; this.mMenViewFullscreen.Size = new System.Drawing.Size(228, 22); @@ -574,14 +574,14 @@ namespace mRemoteNG // //mMenToolsSSHTransfer // - this.mMenToolsSSHTransfer.Image = global::My.Resources.Resources.SSHTransfer; + this.mMenToolsSSHTransfer.Image = My.Resources.SSHTransfer; this.mMenToolsSSHTransfer.Name = "mMenToolsSSHTransfer"; this.mMenToolsSSHTransfer.Size = new System.Drawing.Size(184, 22); this.mMenToolsSSHTransfer.Text = "SSH File Transfer"; // //mMenToolsUVNCSC // - this.mMenToolsUVNCSC.Image = global::My.Resources.Resources.UVNC_SC; + this.mMenToolsUVNCSC.Image = My.Resources.UVNC_SC; this.mMenToolsUVNCSC.Name = "mMenToolsUVNCSC"; this.mMenToolsUVNCSC.Size = new System.Drawing.Size(184, 22); this.mMenToolsUVNCSC.Text = "UltraVNC SingleClick"; @@ -589,14 +589,14 @@ namespace mRemoteNG // //mMenToolsExternalApps // - this.mMenToolsExternalApps.Image = global::My.Resources.Resources.ExtApp; + this.mMenToolsExternalApps.Image = My.Resources.ExtApp; this.mMenToolsExternalApps.Name = "mMenToolsExternalApps"; this.mMenToolsExternalApps.Size = new System.Drawing.Size(184, 22); this.mMenToolsExternalApps.Text = "External Applications"; // //mMenToolsPortScan // - this.mMenToolsPortScan.Image = global::My.Resources.Resources.PortScan; + this.mMenToolsPortScan.Image = My.Resources.PortScan; this.mMenToolsPortScan.Name = "mMenToolsPortScan"; this.mMenToolsPortScan.Size = new System.Drawing.Size(184, 22); this.mMenToolsPortScan.Text = "Port Scan"; @@ -608,7 +608,7 @@ namespace mRemoteNG // //mMenToolsComponentsCheck // - this.mMenToolsComponentsCheck.Image = global::My.Resources.Resources.cog_error; + this.mMenToolsComponentsCheck.Image = My.Resources.cog_error; this.mMenToolsComponentsCheck.Name = "mMenToolsComponentsCheck"; this.mMenToolsComponentsCheck.Size = new System.Drawing.Size(184, 22); this.mMenToolsComponentsCheck.Text = "Components Check"; @@ -650,21 +650,21 @@ namespace mRemoteNG // //mMenInfoDonate // - this.mMenInfoDonate.Image = global::My.Resources.Resources.Donate; + this.mMenInfoDonate.Image = My.Resources.Donate; this.mMenInfoDonate.Name = "mMenInfoDonate"; this.mMenInfoDonate.Size = new System.Drawing.Size(190, 22); this.mMenInfoDonate.Text = "Donate"; // //mMenInfoForum // - this.mMenInfoForum.Image = global::My.Resources.Resources.user_comment; + this.mMenInfoForum.Image = My.Resources.user_comment; this.mMenInfoForum.Name = "mMenInfoForum"; this.mMenInfoForum.Size = new System.Drawing.Size(190, 22); this.mMenInfoForum.Text = "Support Forum"; // //mMenInfoBugReport // - this.mMenInfoBugReport.Image = global::My.Resources.Resources.Bug; + this.mMenInfoBugReport.Image = My.Resources.Bug; this.mMenInfoBugReport.Name = "mMenInfoBugReport"; this.mMenInfoBugReport.Size = new System.Drawing.Size(190, 22); this.mMenInfoBugReport.Text = "Report a Bug"; @@ -676,14 +676,14 @@ namespace mRemoteNG // //mMenInfoAnnouncements // - this.mMenInfoAnnouncements.Image = global::My.Resources.Resources.News; + this.mMenInfoAnnouncements.Image = My.Resources.News; this.mMenInfoAnnouncements.Name = "mMenInfoAnnouncements"; this.mMenInfoAnnouncements.Size = new System.Drawing.Size(190, 22); this.mMenInfoAnnouncements.Text = "Announcements"; // //mMenToolsUpdate // - this.mMenToolsUpdate.Image = global::My.Resources.Resources.Update; + this.mMenToolsUpdate.Image = My.Resources.Update; this.mMenToolsUpdate.Name = "mMenToolsUpdate"; this.mMenToolsUpdate.Size = new System.Drawing.Size(190, 22); this.mMenToolsUpdate.Text = "Check for Updates"; @@ -695,7 +695,7 @@ namespace mRemoteNG // //mMenInfoAbout // - this.mMenInfoAbout.Image = global::My.Resources.Resources.mRemote; + this.mMenInfoAbout.Image = My.Resources.mRemote; this.mMenInfoAbout.Name = "mMenInfoAbout"; this.mMenInfoAbout.Size = new System.Drawing.Size(190, 22); this.mMenInfoAbout.Text = "About mRemoteNG"; @@ -767,7 +767,7 @@ namespace mRemoteNG //btnQuickConnect // this.btnQuickConnect.DropDown = this.mnuQuickConnectProtocol; - this.btnQuickConnect.Image = global::My.Resources.Resources.Play_Quick; + this.btnQuickConnect.Image = My.Resources.Play_Quick; this.btnQuickConnect.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnQuickConnect.Margin = new System.Windows.Forms.Padding(0, 1, 3, 2); this.btnQuickConnect.Name = "btnQuickConnect"; @@ -786,7 +786,7 @@ namespace mRemoteNG // this.btnConnections.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnConnections.DropDown = this.mnuConnections; - this.btnConnections.Image = global::My.Resources.Resources.Root; + this.btnConnections.Image = My.Resources.Root; this.btnConnections.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btnConnections.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnConnections.Name = "btnConnections"; @@ -836,7 +836,7 @@ namespace mRemoteNG // //ToolStripButton1 // - this.ToolStripButton1.Image = global::My.Resources.Resources.Play; + this.ToolStripButton1.Image = My.Resources.Play; this.ToolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.ToolStripButton1.Name = "ToolStripButton1"; this.ToolStripButton1.Size = new System.Drawing.Size(72, 22); @@ -844,7 +844,7 @@ namespace mRemoteNG // //ToolStripButton2 // - this.ToolStripButton2.Image = global::My.Resources.Resources.Screenshot; + this.ToolStripButton2.Image = My.Resources.Screenshot; this.ToolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.ToolStripButton2.Name = "ToolStripButton2"; this.ToolStripButton2.Size = new System.Drawing.Size(85, 22); @@ -852,7 +852,7 @@ namespace mRemoteNG // //ToolStripButton3 // - this.ToolStripButton3.Image = global::My.Resources.Resources.Refresh; + this.ToolStripButton3.Image = My.Resources.Refresh; this.ToolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta; this.ToolStripButton3.Name = "ToolStripButton3"; this.ToolStripButton3.Size = new System.Drawing.Size(66, 22); @@ -862,7 +862,7 @@ namespace mRemoteNG // this.ToolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.ToolStripSplitButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.ToolStripMenuItem1, this.ToolStripMenuItem2}); - this.ToolStripSplitButton1.Image = global::My.Resources.Resources.Keyboard; + this.ToolStripSplitButton1.Image = My.Resources.Keyboard; this.ToolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.ToolStripSplitButton1.Name = "ToolStripSplitButton1"; this.ToolStripSplitButton1.Size = new System.Drawing.Size(29, 22); @@ -890,7 +890,7 @@ namespace mRemoteNG this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(842, 523); this.Controls.Add(this.tsContainer); - this.Icon = global::My.Resources.Resources.mRemote_Icon; + this.Icon = My.Resources.mRemote_Icon; this.MainMenuStrip = this.msMain; this.Name = "frmMain"; this.Opacity = 0.0D; diff --git a/mRemoteV1/CS/Forms/frmMain.cs b/mRemoteV1/CS/UI/Forms/frmMain.cs similarity index 79% rename from mRemoteV1/CS/Forms/frmMain.cs rename to mRemoteV1/CS/UI/Forms/frmMain.cs index e1fe88857..745ba9347 100644 --- a/mRemoteV1/CS/Forms/frmMain.cs +++ b/mRemoteV1/CS/UI/Forms/frmMain.cs @@ -28,7 +28,7 @@ namespace mRemoteNG public frmMain() { // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. - _showFullPathInTitle = System.Convert.ToBoolean(My.Settings.Default.ShowCompleteConsPathInTitle); + _showFullPathInTitle = System.Convert.ToBoolean(Settings.Default.ShowCompleteConsPathInTitle); InitializeComponent(); @@ -183,11 +183,9 @@ namespace mRemoteNG #region Startup & Shutdown public void frmMain_Load(object sender, System.EventArgs e) { - MainForm = this; - - Startup.CheckCompatibility(); - - Startup.CreateLogger(); + Runtime.MainForm = this; + Runtime.Startup.CheckCompatibility(); + Runtime.Startup.CreateLogger(); // Create gui config load and save objects Config.Settings.Load SettingsLoad = new Config.Settings.Load(this); @@ -196,46 +194,35 @@ namespace mRemoteNG SettingsLoad.Load_Renamed(); Debug.Print("---------------------------" + Constants.vbNewLine + "[START] - " + System.Convert.ToString(DateTime.Now)); - - Startup.ParseCommandLineArgs(); - + Runtime.Startup.ParseCommandLineArgs(); ApplyLanguage(); PopulateQuickConnectProtocolMenu(); - ThemeManager.ThemeChanged += ApplyThemes; ApplyThemes(); - - fpChainedWindowHandle = SetClipboardViewer(this.Handle); - - Runtime.MessageCollector = new Messages.Collector(Windows.errorsForm); - - WindowList = new UI.Window.List(); - + fpChainedWindowHandle = Native.SetClipboardViewer(this.Handle); + Runtime.MessageCollector = new Messages.Collector(Runtime.Windows.errorsForm); + Runtime.WindowList = new UI.Window.List(); Tools.IeBrowserEmulation.Register(); - - Startup.GetConnectionIcons(); - Windows.treePanel.Focus(); - - Tree.Node.TreeView = Windows.treeForm.tvConnections; - - if (My.Settings.Default.FirstStart && !My.Settings.Default.LoadConsFromCustomLocation && !System.IO.File.Exists(GetStartupConnectionFileName())) + Runtime.Startup.GetConnectionIcons(); + Runtime.Windows.treePanel.Focus(); + Tree.Node.TreeView = Runtime.Windows.treeForm.tvConnections; + + if (My.Settings.Default.FirstStart && !My.Settings.Default.LoadConsFromCustomLocation && !System.IO.File.Exists(Runtime.GetStartupConnectionFileName())) { - NewConnections(GetStartupConnectionFileName()); + Runtime.NewConnections(Runtime.GetStartupConnectionFileName()); } //LoadCredentials() - LoadConnections(); - if (!IsConnectionsFileLoaded) + Runtime.LoadConnections(); + if (!Runtime.IsConnectionsFileLoaded) { System.Windows.Forms.Application.Exit(); return ; } - Config.Putty.Sessions.StartWatcher(); - if (My.Settings.Default.StartupComponentsCheck) { - Windows.Show(UI.Window.Type.ComponentsCheck); + Runtime.Windows.Show(UI.Window.Type.ComponentsCheck); } #if PORTABLE @@ -243,8 +230,8 @@ namespace mRemoteNG mMenToolsUpdate.Visible = false; mMenInfoSep2.Visible = false; #endif - - Startup.CreateSQLUpdateHandlerAndStartTimer(); + + Runtime.Startup.CreateSQLUpdateHandlerAndStartTimer(); AddSysMenuItems(); Microsoft.Win32.SystemEvents.DisplaySettingsChanged += DisplayChanged; @@ -263,11 +250,11 @@ namespace mRemoteNG mMenFileLoad.Text = My.Language.strMenuOpenConnectionFile; mMenFileSave.Text = My.Language.strMenuSaveConnectionFile; mMenFileSaveAs.Text = My.Language.strMenuSaveConnectionFileAs; - mMenFileImport.Text = Language.strImportMenuItem; - mMenFileImportFromFile.Text = Language.strImportFromFileMenuItem; - mMenFileImportFromActiveDirectory.Text = Language.strImportAD; - mMenFileImportFromPortScan.Text = Language.strImportPortScan; - mMenFileExport.Text = Language.strExportToFileMenuItem; + mMenFileImport.Text = My.Language.strImportMenuItem; + mMenFileImportFromFile.Text = My.Language.strImportFromFileMenuItem; + mMenFileImportFromActiveDirectory.Text = My.Language.strImportAD; + mMenFileImportFromPortScan.Text = My.Language.strImportPortScan; + mMenFileExport.Text = My.Language.strExportToFileMenuItem; mMenFileExit.Text = My.Language.strMenuExit; mMenView.Text = My.Language.strMenuView; @@ -398,11 +385,11 @@ namespace mRemoteNG public void frmMain_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) { - if (!(WindowList == null || WindowList.Count == 0)) + if (!(Runtime.WindowList == null || Runtime.WindowList.Count == 0)) { UI.Window.Connection connectionWindow = default(UI.Window.Connection); int openConnections = 0; - foreach (UI.Window.Base window in WindowList) + foreach (UI.Window.Base window in Runtime.WindowList) { connectionWindow = window as UI.Window.Connection; if (connectionWindow != null) @@ -410,10 +397,10 @@ namespace mRemoteNG openConnections = openConnections + connectionWindow.TabController.TabPages.Count; } } - - if (openConnections > 0 && (My.Settings.Default.ConfirmCloseConnection == ConfirmClose.All | (My.Settings.Default.ConfirmCloseConnection == ConfirmClose.Multiple & openConnections > 1) || My.Settings.Default.ConfirmCloseConnection == ConfirmClose.Exit)) + + if (openConnections > 0 && (My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.All | (My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.Multiple & openConnections > 1) || My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.Exit)) { - DialogResult result = cTaskDialog.MessageBox(this, (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName, My.Language.strConfirmExitMainInstruction, "", "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.YesNo, eSysIcons.Question, null); + DialogResult result = cTaskDialog.MessageBox(this, (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName, My.Language.strConfirmExitMainInstruction, "", "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.YesNo, eSysIcons.Question, eSysIcons.Question); if (cTaskDialog.VerificationChecked) { My.Settings.Default.ConfirmCloseConnection--; @@ -425,20 +412,20 @@ namespace mRemoteNG } } } - - Shutdown.Cleanup(); + + Runtime.Shutdown.Cleanup(); _isClosing = true; - - if (WindowList != null) + + if (Runtime.WindowList != null) { - foreach (UI.Window.Base window in WindowList) + foreach (UI.Window.Base window in Runtime.WindowList) { window.Close(); } } - - Shutdown.StartUpdate(); + + Runtime.Shutdown.StartUpdate(); Debug.Print("[END] - " + System.Convert.ToString(DateTime.Now)); } @@ -448,10 +435,10 @@ namespace mRemoteNG public void tmrAutoSave_Tick(System.Object sender, System.EventArgs e) { Runtime.MessageCollector.AddMessage(Messages.MessageClass.InformationMsg, "Doing AutoSave", true); - App.Runtime.SaveConnections(); + Runtime.SaveConnections(); } #endregion - + #region Ext Apps Toolbar public void cMenToolbarShowText_Click(System.Object sender, System.EventArgs e) { @@ -469,9 +456,9 @@ namespace mRemoteNG tsExternalTools.Items.Clear(); ToolStripButton button = default(ToolStripButton); - foreach (Tools.ExternalTool tool in ExternalTools) + foreach (Tools.ExternalTool tool in Runtime.ExternalTools) { - button = tsExternalTools.Items.Add(tool.DisplayName, tool.Image, tsExtAppEntry_Click); + button = (System.Windows.Forms.ToolStripButton)tsExternalTools.Items.Add(tool.DisplayName, tool.Image, tsExtAppEntry_Click); if (cMenToolbarShowText.Checked == true) { @@ -500,11 +487,11 @@ namespace mRemoteNG private void tsExtAppEntry_Click(System.Object sender, System.EventArgs e) { - Tools.ExternalTool extA = sender.Tag; + Tools.ExternalTool extA = (Tools.ExternalTool)((Control)sender).Tag; if (Tree.Node.GetNodeType(Tree.Node.SelectedNode) == Tree.Node.Type.Connection | Tree.Node.GetNodeType(Tree.Node.SelectedNode) == Tree.Node.Type.PuttySession) { - extA.Start(Tree.Node.SelectedNode.Tag); + extA.Start((Connection.Info)Tree.Node.SelectedNode.Tag); } else { @@ -600,14 +587,14 @@ namespace mRemoteNG static public void mMenFileNewConnection_Click(System.Object sender, EventArgs e) { - Windows.treeForm.AddConnection(); - SaveConnectionsBG(); + Runtime.Windows.treeForm.AddConnection(); + Runtime.SaveConnectionsBG(); } static public void mMenFileNewFolder_Click(System.Object sender, EventArgs e) { - Windows.treeForm.AddFolder(); - SaveConnectionsBG(); + Runtime.Windows.treeForm.AddFolder(); + Runtime.SaveConnectionsBG(); } static public void mMenFileNew_Click(System.Object sender, EventArgs e) @@ -617,100 +604,99 @@ namespace mRemoteNG { return ; } - - NewConnections(saveFileDialog.FileName); + + Runtime.NewConnections(saveFileDialog.FileName); } static public void mMenFileLoad_Click(System.Object sender, EventArgs e) { - if (IsConnectionsFileLoaded) + if (Runtime.IsConnectionsFileLoaded) { switch (Interaction.MsgBox(Language.strSaveConnectionsFileBeforeOpeningAnother, (Microsoft.VisualBasic.MsgBoxStyle) (MsgBoxStyle.YesNoCancel | MsgBoxStyle.Question), null)) { case MsgBoxResult.Yes: - SaveConnections(); + Runtime.SaveConnections(); break; case MsgBoxResult.Cancel: return ; } } - - LoadConnections(true); + + Runtime.LoadConnections(true); } static public void mMenFileSave_Click(System.Object sender, EventArgs e) { - SaveConnections(); + Runtime.SaveConnections(); } static public void mMenFileSaveAs_Click(System.Object sender, EventArgs e) { - SaveConnectionsAs(); + Runtime.SaveConnectionsAs(); } static public void mMenFileDelete_Click(System.Object sender, EventArgs e) { Tree.Node.DeleteSelectedNode(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void mMenFileRename_Click(System.Object sender, EventArgs e) { Tree.Node.StartRenameSelectedNode(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void mMenFileDuplicate_Click(System.Object sender, EventArgs e) { Tree.Node.CloneNode(Tree.Node.SelectedNode); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void mMenFileImportFromFile_Click(System.Object sender, EventArgs e) { - Import.ImportFromFile(Windows.treeForm.tvConnections.Nodes[0], Windows.treeForm.tvConnections.SelectedNode); + Import.ImportFromFile(Runtime.Windows.treeForm.tvConnections.Nodes[0], Runtime.Windows.treeForm.tvConnections.SelectedNode); } static public void mMenFileImportFromActiveDirectory_Click(System.Object sender, EventArgs e) { - Windows.Show(UI.Window.Type.ActiveDirectoryImport); + Runtime.Windows.Show(UI.Window.Type.ActiveDirectoryImport); } static public void mMenFileImportFromPortScan_Click(System.Object sender, EventArgs e) { - Windows.Show(UI.Window.Type.PortScan, true); + Runtime.Windows.Show(UI.Window.Type.PortScan, true); } static public void mMenFileExport_Click(System.Object sender, EventArgs e) { - Export.ExportToFile(Windows.treeForm.tvConnections.Nodes[0], Windows.treeForm.tvConnections.SelectedNode); + Export.ExportToFile(Runtime.Windows.treeForm.tvConnections.Nodes[0], Runtime.Windows.treeForm.tvConnections.SelectedNode); } static public void mMenFileExit_Click(System.Object sender, EventArgs e) { - Shutdown.Quit(); + Runtime.Shutdown.Quit(); } #endregion #region View public void mMenView_DropDownOpening(object sender, System.EventArgs e) { - this.mMenViewConnections.Checked = !Windows.treeForm.IsHidden; - this.mMenViewConfig.Checked = !Windows.configForm.IsHidden; - this.mMenViewErrorsAndInfos.Checked = !Windows.errorsForm.IsHidden; - this.mMenViewSessions.Checked = !Windows.sessionsForm.IsHidden; - this.mMenViewScreenshotManager.Checked = !Windows.screenshotForm.IsHidden; + this.mMenViewConnections.Checked = !Runtime.Windows.treeForm.IsHidden; + this.mMenViewConfig.Checked = !Runtime.Windows.configForm.IsHidden; + this.mMenViewErrorsAndInfos.Checked = !Runtime.Windows.errorsForm.IsHidden; + this.mMenViewSessions.Checked = !Runtime.Windows.sessionsForm.IsHidden; + this.mMenViewScreenshotManager.Checked = !Runtime.Windows.screenshotForm.IsHidden; this.mMenViewExtAppsToolbar.Checked = tsExternalTools.Visible; this.mMenViewQuickConnectToolbar.Checked = tsQuickConnect.Visible; this.mMenViewConnectionPanels.DropDownItems.Clear(); - - for (int i = 0; i <= WindowList.Count - 1; i++) + + for (int i = 0; i <= Runtime.WindowList.Count - 1; i++) { - ToolStripMenuItem tItem = new ToolStripMenuItem(System.Convert.ToString(WindowList[i].Text), WindowList[i].Icon.ToBitmap, ConnectionPanelMenuItem_Click); - tItem.Tag = WindowList[i]; - + ToolStripMenuItem tItem = new ToolStripMenuItem(System.Convert.ToString(Runtime.WindowList[i].Text), Runtime.WindowList[i].Icon.ToBitmap(), ConnectionPanelMenuItem_Click); + tItem.Tag = Runtime.WindowList[i]; this.mMenViewConnectionPanels.DropDownItems.Add(tItem); } @@ -726,20 +712,20 @@ namespace mRemoteNG private void ConnectionPanelMenuItem_Click(object sender, System.EventArgs e) { - (sender.Tag as UI.Window.Base).Show(this.pnlDock); - (sender.Tag as UI.Window.Base).Focus(); + (((System.Windows.Forms.Control)sender).Tag as UI.Window.Base).Show(this.pnlDock); + (((System.Windows.Forms.Control)sender).Tag as UI.Window.Base).Focus(); } public void mMenViewSessions_Click(object sender, System.EventArgs e) { if (this.mMenViewSessions.Checked == false) { - Windows.sessionsPanel.Show(this.pnlDock); + Runtime.Windows.sessionsPanel.Show(this.pnlDock); this.mMenViewSessions.Checked = true; } else { - Windows.sessionsPanel.Hide(); + Runtime.Windows.sessionsPanel.Hide(); this.mMenViewSessions.Checked = false; } } @@ -748,12 +734,12 @@ namespace mRemoteNG { if (this.mMenViewConnections.Checked == false) { - Windows.treePanel.Show(this.pnlDock); + Runtime.Windows.treePanel.Show(this.pnlDock); this.mMenViewConnections.Checked = true; } else { - Windows.treePanel.Hide(); + Runtime.Windows.treePanel.Hide(); this.mMenViewConnections.Checked = false; } } @@ -762,12 +748,12 @@ namespace mRemoteNG { if (this.mMenViewConfig.Checked == false) { - Windows.configPanel.Show(this.pnlDock); + Runtime.Windows.configPanel.Show(this.pnlDock); this.mMenViewConfig.Checked = true; } else { - Windows.configPanel.Hide(); + Runtime.Windows.configPanel.Hide(); this.mMenViewConfig.Checked = false; } } @@ -776,12 +762,12 @@ namespace mRemoteNG { if (this.mMenViewErrorsAndInfos.Checked == false) { - Windows.errorsPanel.Show(this.pnlDock); + Runtime.Windows.errorsPanel.Show(this.pnlDock); this.mMenViewErrorsAndInfos.Checked = true; } else { - Windows.errorsPanel.Hide(); + Runtime.Windows.errorsPanel.Hide(); this.mMenViewErrorsAndInfos.Checked = false; } } @@ -790,43 +776,43 @@ namespace mRemoteNG { if (this.mMenViewScreenshotManager.Checked == false) { - Windows.screenshotPanel.Show(this.pnlDock); + Runtime.Windows.screenshotPanel.Show(this.pnlDock); this.mMenViewScreenshotManager.Checked = true; } else { - Windows.screenshotPanel.Hide(); + Runtime.Windows.screenshotPanel.Hide(); this.mMenViewScreenshotManager.Checked = false; } } public void mMenViewJumpToConnectionsConfig_Click(object sender, System.EventArgs e) { - if (pnlDock.ActiveContent == Windows.treePanel) + if (pnlDock.ActiveContent == Runtime.Windows.treePanel) { - Windows.configForm.Activate(); + Runtime.Windows.configForm.Activate(); } else { - Windows.treeForm.Activate(); + Runtime.Windows.treeForm.Activate(); } } public void mMenViewJumpToSessionsScreenshots_Click(object sender, System.EventArgs e) { - if (pnlDock.ActiveContent == Windows.sessionsPanel) + if (pnlDock.ActiveContent == Runtime.Windows.sessionsPanel) { - Windows.screenshotForm.Activate(); + Runtime.Windows.screenshotForm.Activate(); } else { - Windows.sessionsForm.Activate(); + Runtime.Windows.sessionsForm.Activate(); } } public void mMenViewJumpToErrorsInfos_Click(object sender, System.EventArgs e) { - Windows.errorsForm.Activate(); + Runtime.Windows.errorsForm.Activate(); } public void mMenViewResetLayout_Click(System.Object sender, System.EventArgs e) @@ -839,7 +825,7 @@ namespace mRemoteNG public void mMenViewAddConnectionPanel_Click(System.Object sender, System.EventArgs e) { - AddPanel(); + Runtime.AddPanel(); } public void mMenViewExtAppsToolbar_Click(System.Object sender, System.EventArgs e) @@ -921,7 +907,7 @@ namespace mRemoteNG try { mnuQuickConnectProtocol.Items.Clear(); - foreach (FieldInfo fieldInfo in typeof(Connection.Protocol.Protocols).GetFields) + foreach (FieldInfo fieldInfo in typeof(Connection.Protocol.Protocols).GetFields()) { if (!(fieldInfo.Name == "value__" || fieldInfo.Name == "IntApp")) { @@ -955,7 +941,7 @@ namespace mRemoteNG { try { - Connection.Info connectionInfo = CreateQuickConnect(cmbQuickConnect.Text.Trim(), Connection.Protocol.Converter.StringToProtocol(System.Convert.ToString(My.Settings.Default.QuickConnectProtocol))); + Connection.Info connectionInfo = Runtime.CreateQuickConnect(cmbQuickConnect.Text.Trim(), Connection.Protocol.Converter.StringToProtocol(System.Convert.ToString(My.Settings.Default.QuickConnectProtocol))); if (connectionInfo == null) { cmbQuickConnect.Focus(); @@ -964,7 +950,7 @@ namespace mRemoteNG cmbQuickConnect.Add(connectionInfo); - OpenConnection(connectionInfo, Connection.Info.Force.DoNotJump); + Runtime.OpenConnection(connectionInfo, Connection.Info.Force.DoNotJump); } catch (Exception ex) { @@ -1003,7 +989,7 @@ namespace mRemoteNG #region Info public void mMenInfoHelp_Click(System.Object sender, System.EventArgs e) { - App.Runtime.Windows.Show(UI.Window.Type.Help); + Runtime.Windows.Show(UI.Window.Type.Help); } public void mMenInfoForum_Click(System.Object sender, System.EventArgs e) @@ -1041,9 +1027,8 @@ namespace mRemoteNG #region Connections DropDown public void btnConnections_DropDownOpening(object sender, EventArgs e) { - btnConnections.DropDownItems.Clear(); - - foreach (TreeNode treeNode in Windows.treeForm.tvConnections.Nodes) + btnConnections.DropDownItems.Clear(); + foreach (TreeNode treeNode in Runtime.Windows.treeForm.tvConnections.Nodes) { AddNodeToMenu(treeNode.Nodes, btnConnections); } @@ -1061,7 +1046,7 @@ namespace mRemoteNG if (Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Container) { - menuItem.Image = global::My.Resources.Folder; + menuItem.Image = My.Resources.Folder; menuItem.Tag = treeNode.Tag; toolStripMenuItem.DropDownItems.Add(menuItem); @@ -1069,7 +1054,7 @@ namespace mRemoteNG } else if (Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.Connection | Tree.Node.GetNodeType(treeNode) == Tree.Node.Type.PuttySession) { - menuItem.Image = Windows.treeForm.imgListTree.Images[treeNode.ImageIndex]; + menuItem.Image = Runtime.Windows.treeForm.imgListTree.Images[treeNode.ImageIndex]; menuItem.Tag = treeNode.Tag; toolStripMenuItem.DropDownItems.Add(menuItem); @@ -1088,9 +1073,9 @@ namespace mRemoteNG { if (e.Button == MouseButtons.Left) { - if (sender.Tag is Connection.Info) + if (((System.Windows.Forms.Control)sender).Tag is Connection.Info) { - App.Runtime.OpenConnection(sender.Tag); + Runtime.OpenConnection((Connection.Info)((System.Windows.Forms.Control)sender).Tag); } } } @@ -1109,9 +1094,9 @@ namespace mRemoteNG { if (My.Settings.Default.MinimizeToTray) { - if (NotificationAreaIcon == null) + if (Runtime.NotificationAreaIcon == null) { - NotificationAreaIcon = new Tools.Controls.NotificationAreaIcon(); + Runtime.NotificationAreaIcon = new Tools.Controls.NotificationAreaIcon(); } Hide(); } @@ -1135,22 +1120,22 @@ namespace mRemoteNG { try { - if (m.Msg == WM_MOUSEACTIVATE) + if (m.Msg == Native.WM_MOUSEACTIVATE) { _inMouseActivate = true; } - else if (m.Msg == WM_ACTIVATEAPP) + else if (m.Msg == Native.WM_ACTIVATEAPP) { _inMouseActivate = false; } - else if (m.Msg == WM_ACTIVATE) + else if (m.Msg == Native.WM_ACTIVATE) { // Ingore this message if it wasn't triggered by a click - if (!(LOWORD(m.WParam) == WA_CLICKACTIVE)) + if (!(Native.LOWORD(m.WParam) == Native.WA_CLICKACTIVE)) { } - - Control control = FromChildHandle(WindowFromPoint(MousePosition)); + + Control control = FromChildHandle(Native.WindowFromPoint(MousePosition)); if (!(control == null)) { // Let TreeViews and ComboBoxes get focus but don't simulate a mouse event @@ -1164,7 +1149,7 @@ namespace mRemoteNG Point clientMousePosition = control.PointToClient(MousePosition); System.Int32 temp_wLow = clientMousePosition.X; System.Int32 temp_wHigh = clientMousePosition.Y; - SendMessage(control.Handle, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(ref temp_wLow, ref temp_wHigh)); + Native.SendMessage(control.Handle, Native.WM_LBUTTONDOWN, Native.MK_LBUTTON, Native.MAKELPARAM(ref temp_wLow, ref temp_wHigh)); clientMousePosition.X = temp_wLow; clientMousePosition.Y = temp_wHigh; @@ -1175,11 +1160,11 @@ namespace mRemoteNG // This handles activations from clicks that did not start a size/move operation ActivateConnection(); } - else if (m.Msg == WM_WINDOWPOSCHANGED) + else if (m.Msg == Native.WM_WINDOWPOSCHANGED) { // Ignore this message if the window wasn't activated - WINDOWPOS windowPos = Marshal.PtrToStructure(m.LParam, typeof(WINDOWPOS)); - if (!((windowPos.flags & SWP_NOACTIVATE) == 0)) + Native.WINDOWPOS windowPos = (Native.WINDOWPOS)Marshal.PtrToStructure(m.LParam, typeof(Native.WINDOWPOS)); + if (!((windowPos.flags & Native.SWP_NOACTIVATE) == 0)) { } @@ -1189,27 +1174,29 @@ namespace mRemoteNG ActivateConnection(); } } - else if (m.Msg == WM_SYSCOMMAND) + else if (m.Msg == Native.WM_SYSCOMMAND) { for (int i = 0; i <= SysMenSubItems.Length - 1; i++) { - if (SysMenSubItems[i] == m.WParam) + if (SysMenSubItems[i] == m.WParam.ToInt32()) { - Screens.SendFormToScreen(Screen.AllScreens[i]); + Runtime.Screens.SendFormToScreen(Screen.AllScreens[i]); break; } } } - else if (m.Msg == WM_DRAWCLIPBOARD) + else if (m.Msg == Native.WM_DRAWCLIPBOARD) { - SendMessage(fpChainedWindowHandle, m.Msg, m.LParam, m.WParam); - if (clipboardchangeEvent != null) - clipboardchangeEvent(); + Native.SendMessage(fpChainedWindowHandle, m.Msg, m.LParam.ToInt32(), m.WParam.ToInt32()); + if (clipboardchangeEvent != null) + { + clipboardchangeEvent(); + } } - else if (m.Msg == WM_CHANGECBCHAIN) + else if (m.Msg == Native.WM_CHANGECBCHAIN) { //Send to the next window - SendMessage(fpChainedWindowHandle, m.Msg, m.LParam, m.WParam); + Native.SendMessage(fpChainedWindowHandle, m.Msg, m.LParam.ToInt32(), m.WParam.ToInt32()); fpChainedWindowHandle = m.LParam; } else if (m.Msg == KeyboardHook.HookKeyMsg) @@ -1240,11 +1227,11 @@ namespace mRemoteNG { if (pnlDock.ActiveDocument is UI.Window.Connection) { - UI.Window.Connection cW = pnlDock.ActiveDocument; + UI.Window.Connection cW = (UI.Window.Connection)pnlDock.ActiveDocument; if (cW.TabController.SelectedTab != null) { Crownwood.Magic.Controls.TabPage tab = cW.TabController.SelectedTab; - Connection.InterfaceControl ifc = tab.Tag as Connection.InterfaceControl; + Connection.InterfaceControl ifc = (Connection.InterfaceControl)tab.Tag; ifc.Protocol.Focus(); (ifc.FindForm() as UI.Window.Connection).RefreshIC(); } @@ -1254,7 +1241,7 @@ namespace mRemoteNG public void pnlDock_ActiveDocumentChanged(object sender, EventArgs e) { ActivateConnection(); - UI.Window.Connection connectionWindow = pnlDock.ActiveDocument as UI.Window.Connection; + UI.Window.Connection connectionWindow = (UI.Window.Connection)pnlDock.ActiveDocument; if (connectionWindow != null) { connectionWindow.UpdateSelectedConnection(); @@ -1269,10 +1256,10 @@ namespace mRemoteNG return ; } - StringBuilder titleBuilder = new StringBuilder(System.Convert.ToInt32(Application.Info.ProductName)); + StringBuilder titleBuilder = new StringBuilder(System.Convert.ToInt32(Application.ProductName)); const string separator = " - "; - if (IsConnectionsFileLoaded) + if (Runtime.IsConnectionsFileLoaded) { if (UsingSqlServer) { @@ -1347,8 +1334,8 @@ namespace mRemoteNG { return ; } - - UI.Window.Connection connectionWindow = pnlDock.ActiveDocument; + + UI.Window.Connection connectionWindow = (UI.Window.Connection)pnlDock.ActiveDocument; Crownwood.Magic.Controls.TabControl tabController = connectionWindow.TabController; int newIndex = tabController.SelectedIndex + relativeIndex; @@ -1378,22 +1365,22 @@ namespace mRemoteNG private int[] SysMenSubItems = new int[51]; private static void ResetSysMenuItems() { - SystemMenu.Reset(); + Runtime.SystemMenu.Reset(); } private void AddSysMenuItems() { - SystemMenu = new Tools.SystemMenu(this.Handle); - IntPtr popMen = SystemMenu.CreatePopupMenuItem(); + Runtime.SystemMenu = new Tools.SystemMenu(this.Handle); + IntPtr popMen = Runtime.SystemMenu.CreatePopupMenuItem(); for (int i = 0; i <= Screen.AllScreens.Length - 1; i++) { SysMenSubItems[i] = 200 + i; - SystemMenu.AppendMenuItem(popMen, Tools.SystemMenu.Flags.MF_STRING, SysMenSubItems[i], My.Language.strScreen + " " + System.Convert.ToString(i + 1)); + Runtime.SystemMenu.AppendMenuItem(popMen, Tools.SystemMenu.Flags.MF_STRING, new IntPtr(SysMenSubItems[i]), My.Language.strScreen + " " + System.Convert.ToString(i + 1)); } - - SystemMenu.InsertMenuItem(SystemMenu.SystemMenuHandle, 0, Tools.SystemMenu.Flags.MF_POPUP | Tools.SystemMenu.Flags.MF_BYPOSITION, popMen, My.Language.strSendTo); - SystemMenu.InsertMenuItem(SystemMenu.SystemMenuHandle, 1, Tools.SystemMenu.Flags.MF_BYPOSITION | Tools.SystemMenu.Flags.MF_SEPARATOR, IntPtr.Zero, null); + + Runtime.SystemMenu.InsertMenuItem(Runtime.SystemMenu.SystemMenuHandle, 0, Tools.SystemMenu.Flags.MF_POPUP | Tools.SystemMenu.Flags.MF_BYPOSITION, popMen, My.Language.strSendTo); + Runtime.SystemMenu.InsertMenuItem(Runtime.SystemMenu.SystemMenuHandle, 1, Tools.SystemMenu.Flags.MF_BYPOSITION | Tools.SystemMenu.Flags.MF_SEPARATOR, IntPtr.Zero, null); } #endregion } diff --git a/mRemoteV1/CS/Forms/frmMain.resx b/mRemoteV1/CS/UI/Forms/frmMain.resx similarity index 100% rename from mRemoteV1/CS/Forms/frmMain.resx rename to mRemoteV1/CS/UI/Forms/frmMain.resx diff --git a/mRemoteV1/CS/UI/UI.Window.About.cs b/mRemoteV1/CS/UI/UI.Window.About.cs index 7ee98ff07..e37c8186b 100644 --- a/mRemoteV1/CS/UI/UI.Window.About.cs +++ b/mRemoteV1/CS/UI/UI.Window.About.cs @@ -85,7 +85,7 @@ namespace mRemoteNG.UI.Window // //pbLogo // - this.pbLogo.Image = global::My.Resources.Resources.Logo; + this.pbLogo.Image = My.Resources.Logo; this.pbLogo.Location = new System.Drawing.Point(8, 8); this.pbLogo.Name = "pbLogo"; this.pbLogo.Size = new System.Drawing.Size(492, 128); @@ -243,7 +243,7 @@ namespace mRemoteNG.UI.Window this.Controls.Add(this.pnlBottom); this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); this.ForeColor = System.Drawing.SystemColors.ControlText; - this.Icon = global::My.Resources.Resources.mRemote_Icon; + this.Icon = My.Resources.mRemote_Icon; this.MaximumSize = new System.Drawing.Size(20000, 10000); this.Name = "About"; this.TabText = "About"; diff --git a/mRemoteV1/CS/UI/UI.Window.ActiveDirectoryImport.Designer.cs b/mRemoteV1/CS/UI/UI.Window.ActiveDirectoryImport.Designer.cs index dc160da29..2efd1f311 100644 --- a/mRemoteV1/CS/UI/UI.Window.ActiveDirectoryImport.Designer.cs +++ b/mRemoteV1/CS/UI/UI.Window.ActiveDirectoryImport.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,104 +8,102 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.UI.Window { public partial class ActiveDirectoryImport : Base - { -#region Windows Form Designer generated code - - private void InitializeComponent() - { - this.btnImport = new System.Windows.Forms.Button(); - this.Load += new System.EventHandler(ADImport_Load); - this.btnImport.Click += new System.EventHandler(this.btnImport_Click); - this.txtDomain = new System.Windows.Forms.TextBox(); - this.txtDomain.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.txtDomain_PreviewKeyDown); - this.txtDomain.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtDomain_KeyDown); - this.lblDomain = new System.Windows.Forms.Label(); - this.btnChangeDomain = new System.Windows.Forms.Button(); - this.btnChangeDomain.Click += new System.EventHandler(this.btnChangeDomain_Click); - this.ActiveDirectoryTree = new ADTree.ADtree(); - this.ActiveDirectoryTree.ADPathChanged += new ADTree.ADtree.ADPathChangedEventHandler(this.ActiveDirectoryTree_ADPathChanged); - this.SuspendLayout(); - // - //btnImport - // - this.btnImport.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); - this.btnImport.Location = new System.Drawing.Point(443, 338); - this.btnImport.Name = "btnImport"; - this.btnImport.Size = new System.Drawing.Size(75, 23); - this.btnImport.TabIndex = 4; - this.btnImport.Text = "&Import"; - this.btnImport.UseVisualStyleBackColor = true; - // - //txtDomain - // - this.txtDomain.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.txtDomain.Location = new System.Drawing.Point(12, 25); - this.txtDomain.Name = "txtDomain"; - this.txtDomain.Size = new System.Drawing.Size(425, 20); - this.txtDomain.TabIndex = 1; - // - //lblDomain - // - this.lblDomain.AutoSize = true; - this.lblDomain.Location = new System.Drawing.Point(9, 9); - this.lblDomain.Name = "lblDomain"; - this.lblDomain.Size = new System.Drawing.Size(46, 13); - this.lblDomain.TabIndex = 0; - this.lblDomain.Text = "Domain:"; - // - //btnChangeDomain - // - this.btnChangeDomain.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); - this.btnChangeDomain.Location = new System.Drawing.Point(443, 23); - this.btnChangeDomain.Name = "btnChangeDomain"; - this.btnChangeDomain.Size = new System.Drawing.Size(75, 23); - this.btnChangeDomain.TabIndex = 2; - this.btnChangeDomain.Text = "Change"; - this.btnChangeDomain.UseVisualStyleBackColor = true; - // - //ActiveDirectoryTree - // - this.ActiveDirectoryTree.ADPath = null; - this.ActiveDirectoryTree.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.ActiveDirectoryTree.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.ActiveDirectoryTree.Location = new System.Drawing.Point(12, 52); - this.ActiveDirectoryTree.Name = "ActiveDirectoryTree"; - this.ActiveDirectoryTree.SelectedNode = null; - this.ActiveDirectoryTree.Size = new System.Drawing.Size(506, 280); - this.ActiveDirectoryTree.TabIndex = 3; - // - //ADImport - // - this.AcceptButton = this.btnImport; - this.ClientSize = new System.Drawing.Size(530, 373); - this.Controls.Add(this.ActiveDirectoryTree); - this.Controls.Add(this.lblDomain); - this.Controls.Add(this.txtDomain); - this.Controls.Add(this.btnChangeDomain); - this.Controls.Add(this.btnImport); - this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.Icon = global::My.Resources.Resources.ActiveDirectory_Icon; - this.Name = "ActiveDirectoryImport"; - this.TabText = "Active Directory Import"; - this.Text = "Active Directory Import"; - this.ResumeLayout(false); - this.PerformLayout(); + { + #region Windows Form Designer generated code + private void InitializeComponent() + { + this.btnImport = new System.Windows.Forms.Button(); + this.Load += new System.EventHandler(ADImport_Load); + this.btnImport.Click += new System.EventHandler(this.btnImport_Click); + this.txtDomain = new System.Windows.Forms.TextBox(); + this.txtDomain.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(mRemoteNG.UI.Window.ActiveDirectoryImport.txtDomain_PreviewKeyDown); + this.txtDomain.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtDomain_KeyDown); + this.lblDomain = new System.Windows.Forms.Label(); + this.btnChangeDomain = new System.Windows.Forms.Button(); + this.btnChangeDomain.Click += new System.EventHandler(this.btnChangeDomain_Click); + this.ActiveDirectoryTree = new ADTree.ADtree(); + this.ActiveDirectoryTree.ADPathChanged += new ADTree.ADtree.ADPathChangedEventHandler(this.ActiveDirectoryTree_ADPathChanged); + this.SuspendLayout(); + // + //btnImport + // + this.btnImport.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); + this.btnImport.Location = new System.Drawing.Point(443, 338); + this.btnImport.Name = "btnImport"; + this.btnImport.Size = new System.Drawing.Size(75, 23); + this.btnImport.TabIndex = 4; + this.btnImport.Text = "&Import"; + this.btnImport.UseVisualStyleBackColor = true; + // + //txtDomain + // + this.txtDomain.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.txtDomain.Location = new System.Drawing.Point(12, 25); + this.txtDomain.Name = "txtDomain"; + this.txtDomain.Size = new System.Drawing.Size(425, 20); + this.txtDomain.TabIndex = 1; + // + //lblDomain + // + this.lblDomain.AutoSize = true; + this.lblDomain.Location = new System.Drawing.Point(9, 9); + this.lblDomain.Name = "lblDomain"; + this.lblDomain.Size = new System.Drawing.Size(46, 13); + this.lblDomain.TabIndex = 0; + this.lblDomain.Text = "Domain:"; + // + //btnChangeDomain + // + this.btnChangeDomain.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); + this.btnChangeDomain.Location = new System.Drawing.Point(443, 23); + this.btnChangeDomain.Name = "btnChangeDomain"; + this.btnChangeDomain.Size = new System.Drawing.Size(75, 23); + this.btnChangeDomain.TabIndex = 2; + this.btnChangeDomain.Text = "Change"; + this.btnChangeDomain.UseVisualStyleBackColor = true; + // + //ActiveDirectoryTree + // + this.ActiveDirectoryTree.ADPath = null; + this.ActiveDirectoryTree.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.ActiveDirectoryTree.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.ActiveDirectoryTree.Location = new System.Drawing.Point(12, 52); + this.ActiveDirectoryTree.Name = "ActiveDirectoryTree"; + this.ActiveDirectoryTree.SelectedNode = null; + this.ActiveDirectoryTree.Size = new System.Drawing.Size(506, 280); + this.ActiveDirectoryTree.TabIndex = 3; + // + //ADImport + // + this.AcceptButton = this.btnImport; + this.ClientSize = new System.Drawing.Size(530, 373); + this.Controls.Add(this.ActiveDirectoryTree); + this.Controls.Add(this.lblDomain); + this.Controls.Add(this.txtDomain); + this.Controls.Add(this.btnChangeDomain); + this.Controls.Add(this.btnImport); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.Icon = My.Resources.ActiveDirectory_Icon; + this.Name = "ActiveDirectoryImport"; + this.TabText = "Active Directory Import"; + this.Text = "Active Directory Import"; + this.ResumeLayout(false); + this.PerformLayout(); - } - private System.Windows.Forms.Button btnImport; - private System.Windows.Forms.TextBox txtDomain; - private System.Windows.Forms.Label lblDomain; - private System.Windows.Forms.Button btnChangeDomain; - private ADTree.ADtree ActiveDirectoryTree; -#endregion - } + } + private System.Windows.Forms.Button btnImport; + private System.Windows.Forms.TextBox txtDomain; + private System.Windows.Forms.Label lblDomain; + private System.Windows.Forms.Button btnChangeDomain; + private ADTree.ADtree ActiveDirectoryTree; + #endregion + } } diff --git a/mRemoteV1/CS/UI/UI.Window.Announcement.Designer.cs b/mRemoteV1/CS/UI/UI.Window.Announcement.Designer.cs index bff9eff25..02660472d 100644 --- a/mRemoteV1/CS/UI/UI.Window.Announcement.Designer.cs +++ b/mRemoteV1/CS/UI/UI.Window.Announcement.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,50 +8,42 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports -namespace mRemoteNG +namespace mRemoteNG.UI.Window { - namespace Wi + public partial class Announcement { - namespace Window - { - public partial class Announcement - { -#region Windows Form Designer generated code - internal System.Windows.Forms.WebBrowser webBrowser; + #region Windows Form Designer generated code + internal System.Windows.Forms.WebBrowser webBrowser; - private void InitializeComponent() - { - this.webBrowser = new System.Windows.Forms.WebBrowser(); - this.Load += new System.EventHandler(Announcement_Load); - this.SuspendLayout(); - // - //webBrowser - // - this.webBrowser.Dock = System.Windows.Forms.DockStyle.Fill; - this.webBrowser.Location = new System.Drawing.Point(0, 0); - this.webBrowser.MinimumSize = new System.Drawing.Size(20, 20); - this.webBrowser.Name = "webBrowser"; - this.webBrowser.Size = new System.Drawing.Size(549, 474); - this.webBrowser.TabIndex = 0; - // - //Announcement - // - this.ClientSize = new System.Drawing.Size(549, 474); - this.Controls.Add(this.webBrowser); - this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.Icon = global::My.Resources.Resources.News_Icon; - this.Name = "Announcement"; - this.TabText = "Announcement"; - this.Text = "Announcement"; - this.ResumeLayout(false); + private void InitializeComponent() + { + this.webBrowser = new System.Windows.Forms.WebBrowser(); + this.Load += new System.EventHandler(Announcement_Load); + this.SuspendLayout(); + // + //webBrowser + // + this.webBrowser.Dock = System.Windows.Forms.DockStyle.Fill; + this.webBrowser.Location = new System.Drawing.Point(0, 0); + this.webBrowser.MinimumSize = new System.Drawing.Size(20, 20); + this.webBrowser.Name = "webBrowser"; + this.webBrowser.Size = new System.Drawing.Size(549, 474); + this.webBrowser.TabIndex = 0; + // + //Announcement + // + this.ClientSize = new System.Drawing.Size(549, 474); + this.Controls.Add(this.webBrowser); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.Icon = My.Resources.News_Icon; + this.Name = "Announcement"; + this.TabText = "Announcement"; + this.Text = "Announcement"; + this.ResumeLayout(false); - } -#endregion - } } + #endregion } - } diff --git a/mRemoteV1/CS/UI/UI.Window.ComponentsCheck.cs b/mRemoteV1/CS/UI/UI.Window.ComponentsCheck.cs index bf7b0ae15..65f617ecf 100644 --- a/mRemoteV1/CS/UI/UI.Window.ComponentsCheck.cs +++ b/mRemoteV1/CS/UI/UI.Window.ComponentsCheck.cs @@ -429,7 +429,7 @@ namespace mRemoteNG.UI.Window this.Controls.Add(this.pnlChecks); this.Controls.Add(this.chkAlwaysShow); this.Controls.Add(this.btnCheckAgain); - this.Icon = global::My.Resources.Resources.ComponentsCheck_Icon; + this.Icon = My.Resources.ComponentsCheck_Icon; this.Name = "ComponentsCheck"; this.TabText = "Components Check"; this.Text = "Components Check"; @@ -527,14 +527,14 @@ namespace mRemoteNG.UI.Window throw (new Exception(string.Format("Found RDC Client version {0} but version {1} or higher is required.", rdpClient.Version, mRemoteNG.Connection.Protocol.RDP.Versions.RDC60))); } - pbCheck1.Image = global::My.Resources.Good_Symbol; + pbCheck1.Image = My.Resources.Good_Symbol; lblCheck1.ForeColor = Color.DarkOliveGreen; lblCheck1.Text = "RDP (Remote Desktop) " + My.Language.strCcCheckSucceeded; txtCheck1.Text = string.Format(My.Language.strCcRDPOK, rdpClient.Version); } catch (Exception ex) { - pbCheck1.Image = global::My.Resources.Bad_Symbol; + pbCheck1.Image = My.Resources.Bad_Symbol; lblCheck1.ForeColor = Color.Firebrick; lblCheck1.Text = "RDP (Remote Desktop) " + My.Language.strCcCheckFailed; txtCheck1.Text = My.Language.strCcRDPFailed; @@ -562,14 +562,14 @@ namespace mRemoteNG.UI.Window System.Windows.Forms.Application.DoEvents(); } - pbCheck2.Image = global::My.Resources.Good_Symbol; + pbCheck2.Image = My.Resources.Good_Symbol; lblCheck2.ForeColor = Color.DarkOliveGreen; lblCheck2.Text = "VNC (Virtual Network Computing) " + My.Language.strCcCheckSucceeded; txtCheck2.Text = string.Format(My.Language.strCcVNCOK, VNC.ProductVersion); } catch (Exception) { - pbCheck2.Image = global::My.Resources.Bad_Symbol; + pbCheck2.Image = My.Resources.Bad_Symbol; lblCheck2.ForeColor = Color.Firebrick; lblCheck2.Text = "VNC (Virtual Network Computing) " + My.Language.strCcCheckFailed; txtCheck2.Text = My.Language.strCcVNCFailed; @@ -595,14 +595,14 @@ namespace mRemoteNG.UI.Window if (File.Exists(pPath)) { - pbCheck3.Image = global::My.Resources.Good_Symbol; + pbCheck3.Image = My.Resources.Good_Symbol; lblCheck3.ForeColor = Color.DarkOliveGreen; lblCheck3.Text = "PuTTY (SSH/Telnet/Rlogin/RAW) " + My.Language.strCcCheckSucceeded; txtCheck3.Text = My.Language.strCcPuttyOK; } else { - pbCheck3.Image = global::My.Resources.Bad_Symbol; + pbCheck3.Image = My.Resources.Bad_Symbol; lblCheck3.ForeColor = Color.Firebrick; lblCheck3.Text = "PuTTY (SSH/Telnet/Rlogin/RAW) " + My.Language.strCcCheckFailed; txtCheck3.Text = My.Language.strCcPuttyFailed; @@ -626,14 +626,14 @@ namespace mRemoteNG.UI.Window System.Windows.Forms.Application.DoEvents(); } - pbCheck4.Image = global::My.Resources.Good_Symbol; + pbCheck4.Image = My.Resources.Good_Symbol; lblCheck4.ForeColor = Color.DarkOliveGreen; lblCheck4.Text = "ICA (Citrix ICA) " + My.Language.strCcCheckSucceeded; txtCheck4.Text = string.Format(My.Language.strCcICAOK, ICA.Version); } catch (Exception ex) { - pbCheck4.Image = global::My.Resources.Bad_Symbol; + pbCheck4.Image = My.Resources.Bad_Symbol; lblCheck4.ForeColor = Color.Firebrick; lblCheck4.Text = "ICA (Citrix ICA) " + My.Language.strCcCheckFailed; txtCheck4.Text = My.Language.strCcICAFailed; @@ -669,14 +669,14 @@ namespace mRemoteNG.UI.Window if (GeckoBad == false) { - pbCheck5.Image = global::My.Resources.Good_Symbol; + pbCheck5.Image = My.Resources.Good_Symbol; lblCheck5.ForeColor = Color.DarkOliveGreen; lblCheck5.Text = "Gecko (Firefox) Rendering Engine (HTTP/S) " + My.Language.strCcCheckSucceeded; txtCheck5.Text = My.Language.strCcGeckoOK; } else { - pbCheck5.Image = global::My.Resources.Bad_Symbol; + pbCheck5.Image = My.Resources.Bad_Symbol; lblCheck5.ForeColor = Color.Firebrick; lblCheck5.Text = "Gecko (Firefox) Rendering Engine (HTTP/S) " + My.Language.strCcCheckFailed; txtCheck5.Text = My.Language.strCcGeckoFailed; @@ -692,14 +692,14 @@ namespace mRemoteNG.UI.Window { eol = new EOLWTSCOM.WTSCOM(); - pbCheck6.Image = global::My.Resources.Good_Symbol; + pbCheck6.Image = My.Resources.Good_Symbol; lblCheck6.ForeColor = Color.DarkOliveGreen; lblCheck6.Text = "(RDP) Sessions " + My.Language.strCcCheckSucceeded; txtCheck6.Text = My.Language.strCcEOLOK; } catch (Exception ex) { - pbCheck6.Image = global::My.Resources.Bad_Symbol; + pbCheck6.Image = My.Resources.Bad_Symbol; lblCheck6.ForeColor = Color.Firebrick; lblCheck6.Text = "(RDP) Sessions " + My.Language.strCcCheckFailed; txtCheck6.Text = My.Language.strCcEOLFailed; diff --git a/mRemoteV1/CS/UI/UI.Window.Config.cs b/mRemoteV1/CS/UI/UI.Window.Config.cs index e93b85f7d..65a882a8a 100644 --- a/mRemoteV1/CS/UI/UI.Window.Config.cs +++ b/mRemoteV1/CS/UI/UI.Window.Config.cs @@ -111,7 +111,7 @@ namespace mRemoteNG.UI.Window //btnShowInheritance // this.btnShowInheritance.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.btnShowInheritance.Image = global::My.Resources.Resources.Inheritance; + this.btnShowInheritance.Image = My.Resources.Inheritance; this.btnShowInheritance.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnShowInheritance.Name = "btnShowInheritance"; this.btnShowInheritance.Size = new System.Drawing.Size(23, 22); @@ -120,7 +120,7 @@ namespace mRemoteNG.UI.Window //btnShowDefaultInheritance // this.btnShowDefaultInheritance.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.btnShowDefaultInheritance.Image = global::My.Resources.Resources.Inheritance_Default; + this.btnShowDefaultInheritance.Image = My.Resources.Inheritance_Default; this.btnShowDefaultInheritance.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnShowDefaultInheritance.Name = "btnShowDefaultInheritance"; this.btnShowDefaultInheritance.Size = new System.Drawing.Size(23, 22); @@ -131,7 +131,7 @@ namespace mRemoteNG.UI.Window this.btnShowProperties.Checked = true; this.btnShowProperties.CheckState = System.Windows.Forms.CheckState.Checked; this.btnShowProperties.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.btnShowProperties.Image = global::My.Resources.Resources.Properties; + this.btnShowProperties.Image = My.Resources.Properties; this.btnShowProperties.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnShowProperties.Name = "btnShowProperties"; this.btnShowProperties.Size = new System.Drawing.Size(23, 22); @@ -140,7 +140,7 @@ namespace mRemoteNG.UI.Window //btnShowDefaultProperties // this.btnShowDefaultProperties.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.btnShowDefaultProperties.Image = global::My.Resources.Resources.Properties_Default; + this.btnShowDefaultProperties.Image = My.Resources.Properties_Default; this.btnShowDefaultProperties.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnShowDefaultProperties.Name = "btnShowDefaultProperties"; this.btnShowDefaultProperties.Size = new System.Drawing.Size(23, 22); @@ -159,7 +159,7 @@ namespace mRemoteNG.UI.Window // this.btnHostStatus.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.btnHostStatus.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.btnHostStatus.Image = global::My.Resources.Resources.HostStatus_Check; + this.btnHostStatus.Image = My.Resources.HostStatus_Check; this.btnHostStatus.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnHostStatus.Name = "btnHostStatus"; this.btnHostStatus.Size = new System.Drawing.Size(23, 22); @@ -177,7 +177,7 @@ namespace mRemoteNG.UI.Window this.Controls.Add(this.pGrid); this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); this.HideOnClose = true; - this.Icon = global::My.Resources.Resources.Config_Icon; + this.Icon = My.Resources.Config_Icon; this.Name = "Config"; this.TabText = "Config"; this.Text = "Config"; @@ -1800,14 +1800,14 @@ namespace mRemoteNG.UI.Window { if ((string) this.btnHostStatus.Tag == "checking") { - ShowStatusImage(global::My.Resources.HostStatus_On); + ShowStatusImage(My.Resources.HostStatus_On); } } else { if ((string) this.btnHostStatus.Tag == "checking") { - ShowStatusImage(global::My.Resources.HostStatus_Off); + ShowStatusImage(My.Resources.HostStatus_Off); } } } @@ -1815,7 +1815,7 @@ namespace mRemoteNG.UI.Window { if ((string) this.btnHostStatus.Tag == "checking") { - ShowStatusImage(global::My.Resources.HostStatus_Off); + ShowStatusImage(My.Resources.HostStatus_Off); } } } @@ -1839,7 +1839,7 @@ namespace mRemoteNG.UI.Window { try { - this.btnHostStatus.Image = global::My.Resources.HostStatus_Check; + this.btnHostStatus.Image = My.Resources.HostStatus_Check; // To check status, ConnectionInfo must be an mRemoteNG.Connection.Info that is not a container if (ConnectionInfo is mRemoteNG.Connection.Info) diff --git a/mRemoteV1/CS/UI/UI.Window.Connection.cs b/mRemoteV1/CS/UI/UI.Window.Connection.cs index 434697939..6bcf6999c 100644 --- a/mRemoteV1/CS/UI/UI.Window.Connection.cs +++ b/mRemoteV1/CS/UI/UI.Window.Connection.cs @@ -124,14 +124,14 @@ namespace mRemoteNG.UI.Window // //cmenTabFullscreen // - this.cmenTabFullscreen.Image = global::My.Resources.Resources.arrow_out; + this.cmenTabFullscreen.Image = My.Resources.arrow_out; this.cmenTabFullscreen.Name = "cmenTabFullscreen"; this.cmenTabFullscreen.Size = new System.Drawing.Size(201, 22); this.cmenTabFullscreen.Text = "Fullscreen (RDP)"; // //cmenTabSmartSize // - this.cmenTabSmartSize.Image = global::My.Resources.Resources.SmartSize; + this.cmenTabSmartSize.Image = My.Resources.SmartSize; this.cmenTabSmartSize.Name = "cmenTabSmartSize"; this.cmenTabSmartSize.Size = new System.Drawing.Size(201, 22); this.cmenTabSmartSize.Text = "SmartSize (RDP/VNC)"; @@ -149,14 +149,14 @@ namespace mRemoteNG.UI.Window // //cmenTabScreenshot // - this.cmenTabScreenshot.Image = global::My.Resources.Resources.Screenshot_Add; + this.cmenTabScreenshot.Image = My.Resources.Screenshot_Add; this.cmenTabScreenshot.Name = "cmenTabScreenshot"; this.cmenTabScreenshot.Size = new System.Drawing.Size(201, 22); this.cmenTabScreenshot.Text = "Screenshot"; // //cmenTabStartChat // - this.cmenTabStartChat.Image = global::My.Resources.Resources.Chat; + this.cmenTabStartChat.Image = My.Resources.Chat; this.cmenTabStartChat.Name = "cmenTabStartChat"; this.cmenTabStartChat.Size = new System.Drawing.Size(201, 22); this.cmenTabStartChat.Text = "Start Chat (VNC)"; @@ -164,14 +164,14 @@ namespace mRemoteNG.UI.Window // //cmenTabTransferFile // - this.cmenTabTransferFile.Image = global::My.Resources.Resources.SSHTransfer; + this.cmenTabTransferFile.Image = My.Resources.SSHTransfer; this.cmenTabTransferFile.Name = "cmenTabTransferFile"; this.cmenTabTransferFile.Size = new System.Drawing.Size(201, 22); this.cmenTabTransferFile.Text = "Transfer File (SSH)"; // //cmenTabRefreshScreen // - this.cmenTabRefreshScreen.Image = global::My.Resources.Resources.Refresh; + this.cmenTabRefreshScreen.Image = My.Resources.Refresh; this.cmenTabRefreshScreen.Name = "cmenTabRefreshScreen"; this.cmenTabRefreshScreen.Size = new System.Drawing.Size(201, 22); this.cmenTabRefreshScreen.Text = "Refresh Screen (VNC)"; @@ -179,7 +179,7 @@ namespace mRemoteNG.UI.Window //cmenTabSendSpecialKeys // this.cmenTabSendSpecialKeys.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.cmenTabSendSpecialKeysCtrlAltDel, this.cmenTabSendSpecialKeysCtrlEsc}); - this.cmenTabSendSpecialKeys.Image = global::My.Resources.Resources.Keyboard; + this.cmenTabSendSpecialKeys.Image = My.Resources.Keyboard; this.cmenTabSendSpecialKeys.Name = "cmenTabSendSpecialKeys"; this.cmenTabSendSpecialKeys.Size = new System.Drawing.Size(201, 22); this.cmenTabSendSpecialKeys.Text = "Send special Keys (VNC)"; @@ -210,7 +210,7 @@ namespace mRemoteNG.UI.Window // //cmenTabRenameTab // - this.cmenTabRenameTab.Image = global::My.Resources.Resources.Rename; + this.cmenTabRenameTab.Image = My.Resources.Rename; this.cmenTabRenameTab.Name = "cmenTabRenameTab"; this.cmenTabRenameTab.Size = new System.Drawing.Size(201, 22); this.cmenTabRenameTab.Text = "Rename Tab"; @@ -230,7 +230,7 @@ namespace mRemoteNG.UI.Window // //cmenTabDisconnect // - this.cmenTabDisconnect.Image = global::My.Resources.Resources.Pause; + this.cmenTabDisconnect.Image = My.Resources.Pause; this.cmenTabDisconnect.Name = "cmenTabDisconnect"; this.cmenTabDisconnect.Size = new System.Drawing.Size(201, 22); this.cmenTabDisconnect.Text = "Disconnect"; @@ -246,7 +246,7 @@ namespace mRemoteNG.UI.Window this.ClientSize = new System.Drawing.Size(632, 453); this.Controls.Add(this.TabController); this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.Icon = global::My.Resources.Resources.mRemote_Icon; + this.Icon = My.Resources.mRemote_Icon; this.Name = "Connection"; this.TabText = "UI.Window.Connection"; this.Text = "UI.Window.Connection"; @@ -424,10 +424,10 @@ namespace mRemoteNG.UI.Window private void Connection_FormClosing(object sender, FormClosingEventArgs e) { if (!frmMain.Default.IsClosing && - ((My.Settings.Default.ConfirmCloseConnection == ConfirmClose.All & TabController.TabPages.Count > 0) || - (My.Settings.Default.ConfirmCloseConnection == ConfirmClose.Multiple & TabController.TabPages.Count > 1))) + ((My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.All & TabController.TabPages.Count > 0) || + (My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.Multiple & TabController.TabPages.Count > 1))) { - DialogResult result = cTaskDialog.MessageBox(this, (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName, string.Format(My.Language.strConfirmCloseConnectionPanelMainInstruction, this.Text), "", "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.YesNo, eSysIcons.Question, null); + DialogResult result = cTaskDialog.MessageBox(this, (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName, string.Format(My.Language.strConfirmCloseConnectionPanelMainInstruction, this.Text), "", "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.YesNo, eSysIcons.Question, eSysIcons.Question); if (cTaskDialog.VerificationChecked) { My.Settings.Default.ConfirmCloseConnection--; @@ -445,7 +445,7 @@ namespace mRemoteNG.UI.Window { if (tabP.Tag != null) { - mRemoteNG.Connection.InterfaceControl interfaceControl = tabP.Tag; + mRemoteNG.Connection.InterfaceControl interfaceControl = (mRemoteNG.Connection.InterfaceControl)tabP.Tag; interfaceControl.Protocol.Close(); } } @@ -509,9 +509,9 @@ namespace mRemoteNG.UI.Window private void CloseConnectionTab() { Crownwood.Magic.Controls.TabPage selectedTab = TabController.SelectedTab; - if (My.Settings.Default.ConfirmCloseConnection == ConfirmClose.All) + if (My.Settings.Default.ConfirmCloseConnection == (int)ConfirmClose.All) { - DialogResult result = cTaskDialog.MessageBox(this, (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName, string.Format(My.Language.strConfirmCloseConnectionMainInstruction, selectedTab.Title), "", "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.YesNo, eSysIcons.Question, null); + DialogResult result = cTaskDialog.MessageBox(this, (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.ProductName, string.Format(My.Language.strConfirmCloseConnectionMainInstruction, selectedTab.Title), "", "", "", My.Language.strCheckboxDoNotShowThisMessageAgain, eTaskDialogButtons.YesNo, eSysIcons.Question, eSysIcons.Question); if (cTaskDialog.VerificationChecked) { My.Settings.Default.ConfirmCloseConnection--; @@ -526,7 +526,7 @@ namespace mRemoteNG.UI.Window { if (selectedTab.Tag != null) { - mRemoteNG.Connection.InterfaceControl interfaceControl = selectedTab.Tag; + mRemoteNG.Connection.InterfaceControl interfaceControl = (mRemoteNG.Connection.InterfaceControl)selectedTab.Tag; interfaceControl.Protocol.Close(); } else @@ -556,7 +556,7 @@ namespace mRemoteNG.UI.Window { if (e.Data.GetDataPresent("System.Windows.Forms.TreeNode", true)) { - App.Runtime.OpenConnection(e.Data.GetData("System.Windows.Forms.TreeNode", true).Tag, this, mRemoteNG.Connection.Info.Force.DoNotJump); + App.Runtime.OpenConnection((mRemoteNG.Connection.Info)((System.Windows.Forms.TreeNode)e.Data.GetData("System.Windows.Forms.TreeNode", true)).Tag, this, mRemoteNG.Connection.Info.Force.DoNotJump); } } @@ -584,8 +584,8 @@ namespace mRemoteNG.UI.Window { return; } - - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC == null) { @@ -594,7 +594,7 @@ namespace mRemoteNG.UI.Window if (IC.Info.Protocol == mRemoteNG.Connection.Protocol.Protocols.RDP) { - mRemoteNG.Connection.Protocol.RDP rdp = IC.Protocol; + mRemoteNG.Connection.Protocol.RDP rdp = (mRemoteNG.Connection.Protocol.RDP)IC.Protocol; cmenTabFullscreen.Enabled = true; cmenTabFullscreen.Checked = rdp.Fullscreen; @@ -617,8 +617,8 @@ namespace mRemoteNG.UI.Window this.cmenTabStartChat.Enabled = true; this.cmenTabRefreshScreen.Enabled = true; this.cmenTabTransferFile.Enabled = false; - - mRemoteNG.Connection.Protocol.VNC vnc = IC.Protocol; + + mRemoteNG.Connection.Protocol.VNC vnc = (mRemoteNG.Connection.Protocol.VNC)IC.Protocol; this.cmenTabSmartSize.Checked = vnc.SmartSize; this.cmenTabViewOnly.Checked = vnc.ViewOnly; } @@ -657,7 +657,7 @@ namespace mRemoteNG.UI.Window { cmenTab.Close(); Application.DoEvents(); - Windows.screenshotForm.AddScreenshot(Tools.Misc.TakeScreenshot(this)); + Runtime.Windows.screenshotForm.AddScreenshot(Tools.Misc.TakeScreenshot(this)); } private void cmenTabSmartSize_Click(System.Object sender, System.EventArgs e) @@ -712,7 +712,7 @@ namespace mRemoteNG.UI.Window private void cmenTabExternalAppsEntry_Click(object sender, System.EventArgs e) { - StartExternalApp(sender.Tag); + StartExternalApp((Tools.ExternalTool)((System.Windows.Forms.Control)sender).Tag); } private void cmenTabDisconnect_Click(System.Object sender, System.EventArgs e) @@ -740,16 +740,16 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Protocol is mRemoteNG.Connection.Protocol.RDP) { - mRemoteNG.Connection.Protocol.RDP rdp = IC.Protocol; + mRemoteNG.Connection.Protocol.RDP rdp = (mRemoteNG.Connection.Protocol.RDP)IC.Protocol; rdp.ToggleSmartSize(); } else if (IC.Protocol is mRemoteNG.Connection.Protocol.VNC) { - mRemoteNG.Connection.Protocol.VNC vnc = IC.Protocol; + mRemoteNG.Connection.Protocol.VNC vnc = (mRemoteNG.Connection.Protocol.VNC)IC.Protocol; vnc.ToggleSmartSize(); } } @@ -769,7 +769,7 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Info.Protocol == mRemoteNG.Connection.Protocol.Protocols.SSH1 | IC.Info.Protocol == mRemoteNG.Connection.Protocol.Protocols.SSH2) { @@ -792,17 +792,17 @@ namespace mRemoteNG.UI.Window { try { - - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; - - Windows.Show(Type.SSHTransfer); + + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; + + Runtime.Windows.Show(Type.SSHTransfer); mRemoteNG.Connection.Info conI = IC.Info; - - Windows.sshtransferForm.Hostname = conI.Hostname; - Windows.sshtransferForm.Username = conI.Username; - Windows.sshtransferForm.Password = conI.Password; - Windows.sshtransferForm.Port = System.Convert.ToString(conI.Port); + + Runtime.Windows.sshtransferForm.Hostname = conI.Hostname; + Runtime.Windows.sshtransferForm.Username = conI.Username; + Runtime.Windows.sshtransferForm.Password = conI.Password; + Runtime.Windows.sshtransferForm.Port = System.Convert.ToString(conI.Port); } catch (Exception ex) { @@ -814,8 +814,8 @@ namespace mRemoteNG.UI.Window { try { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; - mRemoteNG.Connection.Protocol.VNC vnc = IC.Protocol; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.Protocol.VNC vnc = (mRemoteNG.Connection.Protocol.VNC)IC.Protocol; vnc.StartFileTransfer(); } catch (Exception ex) @@ -832,13 +832,13 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Protocol is mRemoteNG.Connection.Protocol.VNC) { cmenTabViewOnly.Checked = !cmenTabViewOnly.Checked; - - mRemoteNG.Connection.Protocol.VNC vnc = IC.Protocol; + + mRemoteNG.Connection.Protocol.VNC vnc = (mRemoteNG.Connection.Protocol.VNC)IC.Protocol; vnc.ToggleViewOnly(); } } @@ -858,11 +858,11 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Protocol is mRemoteNG.Connection.Protocol.VNC) { - mRemoteNG.Connection.Protocol.VNC vnc = IC.Protocol; + mRemoteNG.Connection.Protocol.VNC vnc = (mRemoteNG.Connection.Protocol.VNC)IC.Protocol; vnc.StartChat(); } } @@ -882,11 +882,11 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Protocol is mRemoteNG.Connection.Protocol.VNC) { - mRemoteNG.Connection.Protocol.VNC vnc = IC.Protocol; + mRemoteNG.Connection.Protocol.VNC vnc = (mRemoteNG.Connection.Protocol.VNC)IC.Protocol; vnc.RefreshScreen(); } } @@ -906,11 +906,11 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Protocol is mRemoteNG.Connection.Protocol.VNC) { - mRemoteNG.Connection.Protocol.VNC vnc = IC.Protocol; + mRemoteNG.Connection.Protocol.VNC vnc = (mRemoteNG.Connection.Protocol.VNC)IC.Protocol; vnc.SendSpecialKeys(Keys); } } @@ -930,11 +930,11 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Protocol is mRemoteNG.Connection.Protocol.RDP) { - mRemoteNG.Connection.Protocol.RDP rdp = IC.Protocol; + mRemoteNG.Connection.Protocol.RDP rdp = (mRemoteNG.Connection.Protocol.RDP)IC.Protocol; rdp.ToggleFullscreen(); } } @@ -954,11 +954,11 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl objInterfaceControl = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl objInterfaceControl = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (objInterfaceControl.Protocol is mRemoteNG.Connection.Protocol.PuttyBase) { - mRemoteNG.Connection.Protocol.PuttyBase objPuttyBase = objInterfaceControl.Protocol; + mRemoteNG.Connection.Protocol.PuttyBase objPuttyBase = (mRemoteNG.Connection.Protocol.PuttyBase)objInterfaceControl.Protocol; objPuttyBase.ShowSettingsDialog(); } @@ -1006,7 +1006,7 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; ExtA.Start(IC.Info); } @@ -1027,7 +1027,7 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; IC.Protocol.Close(); } @@ -1047,7 +1047,7 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; App.Runtime.OpenConnection(IC.Info, mRemoteNG.Connection.Info.Force.DoNotJump); _ignoreChangeSelectedTabClick = false; @@ -1068,7 +1068,7 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; mRemoteNG.Connection.Info conI = IC.Info; IC.Protocol.Close(); @@ -1099,17 +1099,17 @@ namespace mRemoteNG.UI.Window Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "RenameTab (UI.Window.Connections) failed" + Constants.vbNewLine + ex.Message, true); } } -#endregion + #endregion -#region Protocols + #region Protocols public void Prot_Event_Closed(object sender) { - mRemoteNG.Connection.Protocol.Base Prot = sender; + mRemoteNG.Connection.Protocol.Base Prot = (mRemoteNG.Connection.Protocol.Base)sender; CloseTab((Crownwood.Magic.Controls.TabPage) Prot.InterfaceControl.Parent); } -#endregion + #endregion -#region Tabs + #region Tabs private delegate void CloseTabCB(Crownwood.Magic.Controls.TabPage TabToBeClosed); private void CloseTab(Crownwood.Magic.Controls.TabPage TabToBeClosed) { @@ -1187,7 +1187,7 @@ namespace mRemoteNG.UI.Window if (elapsedTicks > SystemInformation.DoubleClickTime || !_doubleClickRectangle.Contains(MousePosition)) { _firstClickTicks = currentTicks; - _doubleClickRectangle = new Rectangle(MousePosition.X - ((double) SystemInformation.DoubleClickSize.Width / 2), MousePosition.Y - ((double) SystemInformation.DoubleClickSize.Height / 2), SystemInformation.DoubleClickSize.Width, SystemInformation.DoubleClickSize.Height); + _doubleClickRectangle = new Rectangle(MousePosition.X - (SystemInformation.DoubleClickSize.Width / 2), MousePosition.Y - (SystemInformation.DoubleClickSize.Height / 2), SystemInformation.DoubleClickSize.Width, SystemInformation.DoubleClickSize.Height); FocusIC(); } else @@ -1219,7 +1219,7 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; IC.Protocol.Focus(); } } @@ -1238,7 +1238,7 @@ namespace mRemoteNG.UI.Window { if (this.TabController.SelectedTab.Tag is mRemoteNG.Connection.InterfaceControl) { - mRemoteNG.Connection.InterfaceControl IC = this.TabController.SelectedTab.Tag; + mRemoteNG.Connection.InterfaceControl IC = (mRemoteNG.Connection.InterfaceControl)this.TabController.SelectedTab.Tag; if (IC.Info.Protocol == mRemoteNG.Connection.Protocol.Protocols.VNC) { diff --git a/mRemoteV1/CS/UI/UI.Window.ErrorsAndInfos.cs b/mRemoteV1/CS/UI/UI.Window.ErrorsAndInfos.cs index 155295854..5cbf13b79 100644 --- a/mRemoteV1/CS/UI/UI.Window.ErrorsAndInfos.cs +++ b/mRemoteV1/CS/UI/UI.Window.ErrorsAndInfos.cs @@ -136,7 +136,7 @@ namespace mRemoteNG.UI.Window // //cMenMCCopy // - this.cMenMCCopy.Image = global::My.Resources.Resources.Copy; + this.cMenMCCopy.Image = My.Resources.Copy; this.cMenMCCopy.Name = "cMenMCCopy"; this.cMenMCCopy.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C); this.cMenMCCopy.Size = new System.Drawing.Size(152, 22); @@ -144,7 +144,7 @@ namespace mRemoteNG.UI.Window // //cMenMCDelete // - this.cMenMCDelete.Image = global::My.Resources.Resources.Delete; + this.cMenMCDelete.Image = My.Resources.Delete; this.cMenMCDelete.Name = "cMenMCDelete"; this.cMenMCDelete.ShortcutKeys = System.Windows.Forms.Keys.Delete; this.cMenMCDelete.Size = new System.Drawing.Size(152, 22); @@ -163,7 +163,7 @@ namespace mRemoteNG.UI.Window this.Controls.Add(this.pnlErrorMsg); this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); this.HideOnClose = true; - this.Icon = global::My.Resources.Resources.Info_Icon; + this.Icon = My.Resources.Info_Icon; this.Name = "ErrorsAndInfos"; this.TabText = global::mRemoteNG.My.Language.strMenuNotifications; this.Text = "Notifications"; @@ -221,9 +221,9 @@ namespace mRemoteNG.UI.Window #region Private Methods private void FillImageList() { - this.imgListMC.Images.Add(global::My.Resources.InformationSmall); - this.imgListMC.Images.Add(global::My.Resources.WarningSmall); - this.imgListMC.Images.Add(global::My.Resources.ErrorSmall); + this.imgListMC.Images.Add(My.Resources.InformationSmall); + this.imgListMC.Images.Add(My.Resources.WarningSmall); + this.imgListMC.Images.Add(My.Resources.ErrorSmall); } @@ -351,21 +351,21 @@ namespace mRemoteNG.UI.Window } ListViewItem sItem = this.lvErrorCollector.SelectedItems[0]; - Messages.Message eMsg = sItem.Tag; + Messages.Message eMsg = (Messages.Message)sItem.Tag; switch (eMsg.MsgClass) { case Messages.MessageClass.InformationMsg: - this.pbError.Image = global::My.Resources.Information; + this.pbError.Image = My.Resources.Information; this.pnlErrorMsg.BackColor = Color.LightSteelBlue; this.txtMsgText.BackColor = Color.LightSteelBlue; break; case Messages.MessageClass.WarningMsg: - this.pbError.Image = global::My.Resources.Warning; + this.pbError.Image = My.Resources.Warning; this.pnlErrorMsg.BackColor = Color.Gold; this.txtMsgText.BackColor = Color.Gold; break; case Messages.MessageClass.ErrorMsg: - this.pbError.Image = global::My.Resources._Error; + this.pbError.Image = My.Resources._Error; this.pnlErrorMsg.BackColor = Color.IndianRed; this.txtMsgText.BackColor = Color.IndianRed; break; @@ -382,7 +382,7 @@ namespace mRemoteNG.UI.Window private void cMenMC_Opening(System.Object sender, System.ComponentModel.CancelEventArgs e) { - if (lvErrorCollector.Items.Count) + if (lvErrorCollector.Items.Count > 0) { cMenMCCopy.Enabled = true; cMenMCDelete.Enabled = true; @@ -393,7 +393,7 @@ namespace mRemoteNG.UI.Window cMenMCDelete.Enabled = false; } - if (lvErrorCollector.SelectedItems.Count) + if (lvErrorCollector.SelectedItems.Count > 0) { cMenMCCopy.Text = My.Language.strMenuCopy; cMenMCDelete.Text = My.Language.strMenuNotificationsDelete; @@ -415,7 +415,7 @@ namespace mRemoteNG.UI.Window try { IEnumerable items = default(IEnumerable); - if (lvErrorCollector.SelectedItems.Count) + if (lvErrorCollector.SelectedItems.Count > 0) { items = lvErrorCollector.SelectedItems; } @@ -467,7 +467,7 @@ namespace mRemoteNG.UI.Window { lvErrorCollector.BeginUpdate(); - if (lvErrorCollector.SelectedItems.Count) + if (lvErrorCollector.SelectedItems.Count > 0) { foreach (ListViewItem item in lvErrorCollector.SelectedItems) { diff --git a/mRemoteV1/CS/UI/UI.Window.ExternalTools.Designer.cs b/mRemoteV1/CS/UI/UI.Window.ExternalTools.Designer.cs index 92f009a01..14f5e7095 100644 --- a/mRemoteV1/CS/UI/UI.Window.ExternalTools.Designer.cs +++ b/mRemoteV1/CS/UI/UI.Window.ExternalTools.Designer.cs @@ -153,7 +153,7 @@ namespace mRemoteNG.UI.Window // //NewToolMenuItem // - this.NewToolMenuItem.Image = global::My.Resources.Resources.ExtApp_Add; + this.NewToolMenuItem.Image = My.Resources.ExtApp_Add; this.NewToolMenuItem.Name = "NewToolMenuItem"; this.NewToolMenuItem.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.F4); this.NewToolMenuItem.Size = new System.Drawing.Size(220, 22); @@ -161,7 +161,7 @@ namespace mRemoteNG.UI.Window // //DeleteToolMenuItem // - this.DeleteToolMenuItem.Image = global::My.Resources.Resources.ExtApp_Delete; + this.DeleteToolMenuItem.Image = My.Resources.ExtApp_Delete; this.DeleteToolMenuItem.Name = "DeleteToolMenuItem"; this.DeleteToolMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete; this.DeleteToolMenuItem.Size = new System.Drawing.Size(220, 22); @@ -174,7 +174,7 @@ namespace mRemoteNG.UI.Window // //LaunchToolMenuItem // - this.LaunchToolMenuItem.Image = global::My.Resources.Resources.ExtApp_Start; + this.LaunchToolMenuItem.Image = My.Resources.ExtApp_Start; this.LaunchToolMenuItem.Name = "LaunchToolMenuItem"; this.LaunchToolMenuItem.Size = new System.Drawing.Size(220, 22); this.LaunchToolMenuItem.Text = "Launch External Tool"; @@ -329,7 +329,7 @@ namespace mRemoteNG.UI.Window // //NewToolToolstripButton // - this.NewToolToolstripButton.Image = global::My.Resources.Resources.ExtApp_Add; + this.NewToolToolstripButton.Image = My.Resources.ExtApp_Add; this.NewToolToolstripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.NewToolToolstripButton.Name = "NewToolToolstripButton"; this.NewToolToolstripButton.Size = new System.Drawing.Size(51, 22); @@ -337,7 +337,7 @@ namespace mRemoteNG.UI.Window // //DeleteToolToolstripButton // - this.DeleteToolToolstripButton.Image = global::My.Resources.Resources.ExtApp_Delete; + this.DeleteToolToolstripButton.Image = My.Resources.ExtApp_Delete; this.DeleteToolToolstripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.DeleteToolToolstripButton.Name = "DeleteToolToolstripButton"; this.DeleteToolToolstripButton.Size = new System.Drawing.Size(60, 22); @@ -350,7 +350,7 @@ namespace mRemoteNG.UI.Window // //LaunchToolToolstripButton // - this.LaunchToolToolstripButton.Image = global::My.Resources.Resources.ExtApp_Start; + this.LaunchToolToolstripButton.Image = My.Resources.ExtApp_Start; this.LaunchToolToolstripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.LaunchToolToolstripButton.Name = "LaunchToolToolstripButton"; this.LaunchToolToolstripButton.Size = new System.Drawing.Size(66, 22); diff --git a/mRemoteV1/CS/UI/UI.Window.Help.cs b/mRemoteV1/CS/UI/UI.Window.Help.cs index ca7f8a5e2..0c786fbea 100644 --- a/mRemoteV1/CS/UI/UI.Window.Help.cs +++ b/mRemoteV1/CS/UI/UI.Window.Help.cs @@ -213,7 +213,7 @@ namespace mRemoteNG.UI.Window // this.ClientSize = new System.Drawing.Size(542, 323); this.Controls.Add(this.pnlSplitter); - this.Icon = global::My.Resources.Resources.Help_Icon; + this.Icon = My.Resources.Help_Icon; this.Name = "Help"; this.TabText = "Help"; this.Text = "Help"; @@ -271,9 +271,9 @@ namespace mRemoteNG.UI.Window private void FillImageList() { - this.imgListHelp.Images.Add("File", global::My.Resources.Page); - this.imgListHelp.Images.Add("Folder", global::My.Resources.Folder); - this.imgListHelp.Images.Add("Help", global::My.Resources.Help); + this.imgListHelp.Images.Add("File", My.Resources.Page); + this.imgListHelp.Images.Add("Folder", My.Resources.Folder); + this.imgListHelp.Images.Add("Help", My.Resources.Help); } private void SetImages(TreeNode node) diff --git a/mRemoteV1/CS/UI/UI.Window.PortScan.Designer.cs b/mRemoteV1/CS/UI/UI.Window.PortScan.Designer.cs index 17d5c8681..e30966903 100644 --- a/mRemoteV1/CS/UI/UI.Window.PortScan.Designer.cs +++ b/mRemoteV1/CS/UI/UI.Window.PortScan.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,320 +8,319 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.UI.Window { public partial class PortScan : Base - { -#region Windows Form Designer generated code + { + #region Windows Form Designer generated code - internal System.Windows.Forms.Label lblEndIP; - internal System.Windows.Forms.Label lblStartIP; - internal System.Windows.Forms.Button btnScan; - internal IPTextBox.IPTextBox ipEnd; - internal System.Windows.Forms.ListView lvHosts; - internal System.Windows.Forms.ColumnHeader clmHost; - internal System.Windows.Forms.ColumnHeader clmSSH; - internal System.Windows.Forms.ColumnHeader clmTelnet; - internal System.Windows.Forms.ColumnHeader clmHTTP; - internal System.Windows.Forms.ColumnHeader clmHTTPS; - internal System.Windows.Forms.ColumnHeader clmRlogin; - internal System.Windows.Forms.ColumnHeader clmRDP; - internal System.Windows.Forms.ColumnHeader clmVNC; - internal System.Windows.Forms.ColumnHeader clmOpenPorts; - internal System.Windows.Forms.ColumnHeader clmClosedPorts; - internal System.Windows.Forms.ProgressBar prgBar; - internal System.Windows.Forms.Label lblOnlyImport; - internal System.Windows.Forms.ComboBox cbProtocol; - internal System.Windows.Forms.Panel pnlPorts; - internal System.Windows.Forms.NumericUpDown portEnd; - internal System.Windows.Forms.NumericUpDown portStart; - internal System.Windows.Forms.Label Label2; - internal System.Windows.Forms.Label Label1; - internal System.Windows.Forms.Button btnImport; - internal IPTextBox.IPTextBox ipStart; + internal System.Windows.Forms.Label lblEndIP; + internal System.Windows.Forms.Label lblStartIP; + internal System.Windows.Forms.Button btnScan; + internal IPTextBox.IPTextBox ipEnd; + internal System.Windows.Forms.ListView lvHosts; + internal System.Windows.Forms.ColumnHeader clmHost; + internal System.Windows.Forms.ColumnHeader clmSSH; + internal System.Windows.Forms.ColumnHeader clmTelnet; + internal System.Windows.Forms.ColumnHeader clmHTTP; + internal System.Windows.Forms.ColumnHeader clmHTTPS; + internal System.Windows.Forms.ColumnHeader clmRlogin; + internal System.Windows.Forms.ColumnHeader clmRDP; + internal System.Windows.Forms.ColumnHeader clmVNC; + internal System.Windows.Forms.ColumnHeader clmOpenPorts; + internal System.Windows.Forms.ColumnHeader clmClosedPorts; + internal System.Windows.Forms.ProgressBar prgBar; + internal System.Windows.Forms.Label lblOnlyImport; + internal System.Windows.Forms.ComboBox cbProtocol; + internal System.Windows.Forms.Panel pnlPorts; + internal System.Windows.Forms.NumericUpDown portEnd; + internal System.Windows.Forms.NumericUpDown portStart; + internal System.Windows.Forms.Label Label2; + internal System.Windows.Forms.Label Label1; + internal System.Windows.Forms.Button btnImport; + internal IPTextBox.IPTextBox ipStart; - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortScan)); - this.ipStart = new IPTextBox.IPTextBox(); - base.Load += new System.EventHandler(PortScan_Load); - this.ipEnd = new IPTextBox.IPTextBox(); - this.lblStartIP = new System.Windows.Forms.Label(); - this.lblEndIP = new System.Windows.Forms.Label(); - this.btnScan = new System.Windows.Forms.Button(); - this.btnScan.Click += new System.EventHandler(this.btnScan_Click); - this.lvHosts = new System.Windows.Forms.ListView(); - this.btnImport = new System.Windows.Forms.Button(); - this.btnImport.Click += new System.EventHandler(this.btnImport_Click); - this.cbProtocol = new System.Windows.Forms.ComboBox(); - this.lblOnlyImport = new System.Windows.Forms.Label(); - this.clmHost = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmSSH = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmTelnet = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmHTTP = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmHTTPS = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmRlogin = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmRDP = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmVNC = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmOpenPorts = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.clmClosedPorts = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.prgBar = new System.Windows.Forms.ProgressBar(); - this.pnlPorts = new System.Windows.Forms.Panel(); - this.portEnd = new System.Windows.Forms.NumericUpDown(); - this.portEnd.Enter += new System.EventHandler(this.portEnd_Enter); - this.portStart = new System.Windows.Forms.NumericUpDown(); - this.portStart.Enter += new System.EventHandler(this.portStart_Enter); - this.Label2 = new System.Windows.Forms.Label(); - this.Label1 = new System.Windows.Forms.Label(); - this.pnlImport = new System.Windows.Forms.Panel(); - this.pnlPorts.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize) this.portEnd).BeginInit(); - ((System.ComponentModel.ISupportInitialize) this.portStart).BeginInit(); - this.pnlImport.SuspendLayout(); - this.SuspendLayout(); - // - //ipStart - // - this.ipStart.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.ipStart.Location = new System.Drawing.Point(12, 25); - this.ipStart.Name = "ipStart"; - this.ipStart.Size = new System.Drawing.Size(113, 20); - this.ipStart.TabIndex = 10; - // - //ipEnd - // - this.ipEnd.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.ipEnd.Location = new System.Drawing.Point(131, 25); - this.ipEnd.Name = "ipEnd"; - this.ipEnd.Size = new System.Drawing.Size(113, 20); - this.ipEnd.TabIndex = 15; - // - //lblStartIP - // - this.lblStartIP.AutoSize = true; - this.lblStartIP.Location = new System.Drawing.Point(9, 9); - this.lblStartIP.Name = "lblStartIP"; - this.lblStartIP.Size = new System.Drawing.Size(45, 13); - this.lblStartIP.TabIndex = 0; - this.lblStartIP.Text = "Start IP:"; - // - //lblEndIP - // - this.lblEndIP.AutoSize = true; - this.lblEndIP.Location = new System.Drawing.Point(128, 9); - this.lblEndIP.Name = "lblEndIP"; - this.lblEndIP.Size = new System.Drawing.Size(42, 13); - this.lblEndIP.TabIndex = 5; - this.lblEndIP.Text = "End IP:"; - // - //btnScan - // - this.btnScan.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); - this.btnScan.Image = global::My.Resources.Resources.Search; - this.btnScan.Location = new System.Drawing.Point(420, 9); - this.btnScan.Name = "btnScan"; - this.btnScan.Size = new System.Drawing.Size(86, 58); - this.btnScan.TabIndex = 20; - this.btnScan.Text = "&Scan"; - this.btnScan.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.btnScan.UseVisualStyleBackColor = true; - // - //lvHosts - // - this.lvHosts.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.lvHosts.FullRowSelect = true; - this.lvHosts.GridLines = true; - this.lvHosts.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; - this.lvHosts.HideSelection = false; - this.lvHosts.Location = new System.Drawing.Point(12, 73); - this.lvHosts.Name = "lvHosts"; - this.lvHosts.Size = new System.Drawing.Size(494, 214); - this.lvHosts.TabIndex = 26; - this.lvHosts.UseCompatibleStateImageBehavior = false; - this.lvHosts.View = System.Windows.Forms.View.Details; - // - //btnImport - // - this.btnImport.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); - this.btnImport.Location = new System.Drawing.Point(419, 6); - this.btnImport.Name = "btnImport"; - this.btnImport.Size = new System.Drawing.Size(75, 23); - this.btnImport.TabIndex = 101; - this.btnImport.Text = "&Import"; - this.btnImport.UseVisualStyleBackColor = true; - // - //cbProtocol - // - this.cbProtocol.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); - this.cbProtocol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbProtocol.FormattingEnabled = true; - this.cbProtocol.Items.AddRange(new object[] {"SSH2", "Telnet", "HTTP", "HTTPS", "Rlogin", "RDP", "VNC"}); - this.cbProtocol.Location = new System.Drawing.Point(98, 8); - this.cbProtocol.Name = "cbProtocol"; - this.cbProtocol.Size = new System.Drawing.Size(122, 21); - this.cbProtocol.TabIndex = 28; - // - //lblOnlyImport - // - this.lblOnlyImport.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); - this.lblOnlyImport.AutoSize = true; - this.lblOnlyImport.Location = new System.Drawing.Point(0, 11); - this.lblOnlyImport.Name = "lblOnlyImport"; - this.lblOnlyImport.Size = new System.Drawing.Size(92, 13); - this.lblOnlyImport.TabIndex = 1; - this.lblOnlyImport.Text = "Protocol to import:"; - // - //clmHost - // - this.clmHost.Text = "Hostname/IP"; - this.clmHost.Width = 130; - // - //clmSSH - // - this.clmSSH.Text = "SSH"; - this.clmSSH.Width = 50; - // - //clmTelnet - // - this.clmTelnet.Text = "Telnet"; - this.clmTelnet.Width = 50; - // - //clmHTTP - // - this.clmHTTP.Text = "HTTP"; - this.clmHTTP.Width = 50; - // - //clmHTTPS - // - this.clmHTTPS.Text = "HTTPS"; - this.clmHTTPS.Width = 50; - // - //clmRlogin - // - this.clmRlogin.Text = "Rlogin"; - this.clmRlogin.Width = 50; - // - //clmRDP - // - this.clmRDP.Text = "RDP"; - this.clmRDP.Width = 50; - // - //clmVNC - // - this.clmVNC.Text = "VNC"; - this.clmVNC.Width = 50; - // - //clmOpenPorts - // - this.clmOpenPorts.Text = "Open Ports"; - this.clmOpenPorts.Width = 150; - // - //clmClosedPorts - // - this.clmClosedPorts.Text = "Closed Ports"; - this.clmClosedPorts.Width = 150; - // - //prgBar - // - this.prgBar.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.prgBar.Location = new System.Drawing.Point(12, 51); - this.prgBar.Name = "prgBar"; - this.prgBar.Size = new System.Drawing.Size(402, 16); - this.prgBar.Step = 1; - this.prgBar.TabIndex = 28; - // - //pnlPorts - // - this.pnlPorts.Controls.Add(this.portEnd); - this.pnlPorts.Controls.Add(this.portStart); - this.pnlPorts.Controls.Add(this.Label2); - this.pnlPorts.Controls.Add(this.Label1); - this.pnlPorts.Location = new System.Drawing.Point(268, 7); - this.pnlPorts.Name = "pnlPorts"; - this.pnlPorts.Size = new System.Drawing.Size(152, 38); - this.pnlPorts.TabIndex = 18; - // - //portEnd - // - this.portEnd.Location = new System.Drawing.Point(79, 18); - this.portEnd.Maximum = new decimal(new int[] {65535, 0, 0, 0}); - this.portEnd.Name = "portEnd"; - this.portEnd.Size = new System.Drawing.Size(67, 20); - this.portEnd.TabIndex = 15; - // - //portStart - // - this.portStart.Location = new System.Drawing.Point(6, 18); - this.portStart.Maximum = new decimal(new int[] {65535, 0, 0, 0}); - this.portStart.Name = "portStart"; - this.portStart.Size = new System.Drawing.Size(67, 20); - this.portStart.TabIndex = 5; - // - //Label2 - // - this.Label2.AutoSize = true; - this.Label2.Location = new System.Drawing.Point(76, 2); - this.Label2.Name = "Label2"; - this.Label2.Size = new System.Drawing.Size(51, 13); - this.Label2.TabIndex = 10; - this.Label2.Text = "End Port:"; - // - //Label1 - // - this.Label1.AutoSize = true; - this.Label1.Location = new System.Drawing.Point(3, 2); - this.Label1.Name = "Label1"; - this.Label1.Size = new System.Drawing.Size(54, 13); - this.Label1.TabIndex = 0; - this.Label1.Text = "Start Port:"; - // - //pnlImport - // - this.pnlImport.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.pnlImport.Controls.Add(this.btnImport); - this.pnlImport.Controls.Add(this.lblOnlyImport); - this.pnlImport.Controls.Add(this.cbProtocol); - this.pnlImport.Location = new System.Drawing.Point(12, 287); - this.pnlImport.Name = "pnlImport"; - this.pnlImport.Size = new System.Drawing.Size(494, 29); - this.pnlImport.TabIndex = 102; - // - //PortScan - // - this.AcceptButton = this.btnImport; - this.ClientSize = new System.Drawing.Size(518, 328); - this.Controls.Add(this.pnlImport); - this.Controls.Add(this.lvHosts); - this.Controls.Add(this.pnlPorts); - this.Controls.Add(this.prgBar); - this.Controls.Add(this.btnScan); - this.Controls.Add(this.lblEndIP); - this.Controls.Add(this.lblStartIP); - this.Controls.Add(this.ipEnd); - this.Controls.Add(this.ipStart); - this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.Icon = (System.Drawing.Icon) (resources.GetObject("$this.Icon")); - this.Name = "PortScan"; - this.TabText = "Port Scan"; - this.Text = "Port Scan"; - this.pnlPorts.ResumeLayout(false); - this.pnlPorts.PerformLayout(); - ((System.ComponentModel.ISupportInitialize) this.portEnd).EndInit(); - ((System.ComponentModel.ISupportInitialize) this.portStart).EndInit(); - this.pnlImport.ResumeLayout(false); - this.pnlImport.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortScan)); + this.ipStart = new IPTextBox.IPTextBox(); + base.Load += new System.EventHandler(PortScan_Load); + this.ipEnd = new IPTextBox.IPTextBox(); + this.lblStartIP = new System.Windows.Forms.Label(); + this.lblEndIP = new System.Windows.Forms.Label(); + this.btnScan = new System.Windows.Forms.Button(); + this.btnScan.Click += new System.EventHandler(this.btnScan_Click); + this.lvHosts = new System.Windows.Forms.ListView(); + this.btnImport = new System.Windows.Forms.Button(); + this.btnImport.Click += new System.EventHandler(this.btnImport_Click); + this.cbProtocol = new System.Windows.Forms.ComboBox(); + this.lblOnlyImport = new System.Windows.Forms.Label(); + this.clmHost = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmSSH = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmTelnet = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmHTTP = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmHTTPS = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmRlogin = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmRDP = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmVNC = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmOpenPorts = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.clmClosedPorts = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.prgBar = new System.Windows.Forms.ProgressBar(); + this.pnlPorts = new System.Windows.Forms.Panel(); + this.portEnd = new System.Windows.Forms.NumericUpDown(); + this.portEnd.Enter += new System.EventHandler(this.portEnd_Enter); + this.portStart = new System.Windows.Forms.NumericUpDown(); + this.portStart.Enter += new System.EventHandler(this.portStart_Enter); + this.Label2 = new System.Windows.Forms.Label(); + this.Label1 = new System.Windows.Forms.Label(); + this.pnlImport = new System.Windows.Forms.Panel(); + this.pnlPorts.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize) this.portEnd).BeginInit(); + ((System.ComponentModel.ISupportInitialize) this.portStart).BeginInit(); + this.pnlImport.SuspendLayout(); + this.SuspendLayout(); + // + //ipStart + // + this.ipStart.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.ipStart.Location = new System.Drawing.Point(12, 25); + this.ipStart.Name = "ipStart"; + this.ipStart.Size = new System.Drawing.Size(113, 20); + this.ipStart.TabIndex = 10; + // + //ipEnd + // + this.ipEnd.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.ipEnd.Location = new System.Drawing.Point(131, 25); + this.ipEnd.Name = "ipEnd"; + this.ipEnd.Size = new System.Drawing.Size(113, 20); + this.ipEnd.TabIndex = 15; + // + //lblStartIP + // + this.lblStartIP.AutoSize = true; + this.lblStartIP.Location = new System.Drawing.Point(9, 9); + this.lblStartIP.Name = "lblStartIP"; + this.lblStartIP.Size = new System.Drawing.Size(45, 13); + this.lblStartIP.TabIndex = 0; + this.lblStartIP.Text = "Start IP:"; + // + //lblEndIP + // + this.lblEndIP.AutoSize = true; + this.lblEndIP.Location = new System.Drawing.Point(128, 9); + this.lblEndIP.Name = "lblEndIP"; + this.lblEndIP.Size = new System.Drawing.Size(42, 13); + this.lblEndIP.TabIndex = 5; + this.lblEndIP.Text = "End IP:"; + // + //btnScan + // + this.btnScan.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); + this.btnScan.Image = My.Resources.Search; + this.btnScan.Location = new System.Drawing.Point(420, 9); + this.btnScan.Name = "btnScan"; + this.btnScan.Size = new System.Drawing.Size(86, 58); + this.btnScan.TabIndex = 20; + this.btnScan.Text = "&Scan"; + this.btnScan.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.btnScan.UseVisualStyleBackColor = true; + // + //lvHosts + // + this.lvHosts.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.lvHosts.FullRowSelect = true; + this.lvHosts.GridLines = true; + this.lvHosts.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.lvHosts.HideSelection = false; + this.lvHosts.Location = new System.Drawing.Point(12, 73); + this.lvHosts.Name = "lvHosts"; + this.lvHosts.Size = new System.Drawing.Size(494, 214); + this.lvHosts.TabIndex = 26; + this.lvHosts.UseCompatibleStateImageBehavior = false; + this.lvHosts.View = System.Windows.Forms.View.Details; + // + //btnImport + // + this.btnImport.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); + this.btnImport.Location = new System.Drawing.Point(419, 6); + this.btnImport.Name = "btnImport"; + this.btnImport.Size = new System.Drawing.Size(75, 23); + this.btnImport.TabIndex = 101; + this.btnImport.Text = "&Import"; + this.btnImport.UseVisualStyleBackColor = true; + // + //cbProtocol + // + this.cbProtocol.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); + this.cbProtocol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbProtocol.FormattingEnabled = true; + this.cbProtocol.Items.AddRange(new object[] {"SSH2", "Telnet", "HTTP", "HTTPS", "Rlogin", "RDP", "VNC"}); + this.cbProtocol.Location = new System.Drawing.Point(98, 8); + this.cbProtocol.Name = "cbProtocol"; + this.cbProtocol.Size = new System.Drawing.Size(122, 21); + this.cbProtocol.TabIndex = 28; + // + //lblOnlyImport + // + this.lblOnlyImport.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); + this.lblOnlyImport.AutoSize = true; + this.lblOnlyImport.Location = new System.Drawing.Point(0, 11); + this.lblOnlyImport.Name = "lblOnlyImport"; + this.lblOnlyImport.Size = new System.Drawing.Size(92, 13); + this.lblOnlyImport.TabIndex = 1; + this.lblOnlyImport.Text = "Protocol to import:"; + // + //clmHost + // + this.clmHost.Text = "Hostname/IP"; + this.clmHost.Width = 130; + // + //clmSSH + // + this.clmSSH.Text = "SSH"; + this.clmSSH.Width = 50; + // + //clmTelnet + // + this.clmTelnet.Text = "Telnet"; + this.clmTelnet.Width = 50; + // + //clmHTTP + // + this.clmHTTP.Text = "HTTP"; + this.clmHTTP.Width = 50; + // + //clmHTTPS + // + this.clmHTTPS.Text = "HTTPS"; + this.clmHTTPS.Width = 50; + // + //clmRlogin + // + this.clmRlogin.Text = "Rlogin"; + this.clmRlogin.Width = 50; + // + //clmRDP + // + this.clmRDP.Text = "RDP"; + this.clmRDP.Width = 50; + // + //clmVNC + // + this.clmVNC.Text = "VNC"; + this.clmVNC.Width = 50; + // + //clmOpenPorts + // + this.clmOpenPorts.Text = "Open Ports"; + this.clmOpenPorts.Width = 150; + // + //clmClosedPorts + // + this.clmClosedPorts.Text = "Closed Ports"; + this.clmClosedPorts.Width = 150; + // + //prgBar + // + this.prgBar.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.prgBar.Location = new System.Drawing.Point(12, 51); + this.prgBar.Name = "prgBar"; + this.prgBar.Size = new System.Drawing.Size(402, 16); + this.prgBar.Step = 1; + this.prgBar.TabIndex = 28; + // + //pnlPorts + // + this.pnlPorts.Controls.Add(this.portEnd); + this.pnlPorts.Controls.Add(this.portStart); + this.pnlPorts.Controls.Add(this.Label2); + this.pnlPorts.Controls.Add(this.Label1); + this.pnlPorts.Location = new System.Drawing.Point(268, 7); + this.pnlPorts.Name = "pnlPorts"; + this.pnlPorts.Size = new System.Drawing.Size(152, 38); + this.pnlPorts.TabIndex = 18; + // + //portEnd + // + this.portEnd.Location = new System.Drawing.Point(79, 18); + this.portEnd.Maximum = new decimal(new int[] {65535, 0, 0, 0}); + this.portEnd.Name = "portEnd"; + this.portEnd.Size = new System.Drawing.Size(67, 20); + this.portEnd.TabIndex = 15; + // + //portStart + // + this.portStart.Location = new System.Drawing.Point(6, 18); + this.portStart.Maximum = new decimal(new int[] {65535, 0, 0, 0}); + this.portStart.Name = "portStart"; + this.portStart.Size = new System.Drawing.Size(67, 20); + this.portStart.TabIndex = 5; + // + //Label2 + // + this.Label2.AutoSize = true; + this.Label2.Location = new System.Drawing.Point(76, 2); + this.Label2.Name = "Label2"; + this.Label2.Size = new System.Drawing.Size(51, 13); + this.Label2.TabIndex = 10; + this.Label2.Text = "End Port:"; + // + //Label1 + // + this.Label1.AutoSize = true; + this.Label1.Location = new System.Drawing.Point(3, 2); + this.Label1.Name = "Label1"; + this.Label1.Size = new System.Drawing.Size(54, 13); + this.Label1.TabIndex = 0; + this.Label1.Text = "Start Port:"; + // + //pnlImport + // + this.pnlImport.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.pnlImport.Controls.Add(this.btnImport); + this.pnlImport.Controls.Add(this.lblOnlyImport); + this.pnlImport.Controls.Add(this.cbProtocol); + this.pnlImport.Location = new System.Drawing.Point(12, 287); + this.pnlImport.Name = "pnlImport"; + this.pnlImport.Size = new System.Drawing.Size(494, 29); + this.pnlImport.TabIndex = 102; + // + //PortScan + // + this.AcceptButton = this.btnImport; + this.ClientSize = new System.Drawing.Size(518, 328); + this.Controls.Add(this.pnlImport); + this.Controls.Add(this.lvHosts); + this.Controls.Add(this.pnlPorts); + this.Controls.Add(this.prgBar); + this.Controls.Add(this.btnScan); + this.Controls.Add(this.lblEndIP); + this.Controls.Add(this.lblStartIP); + this.Controls.Add(this.ipEnd); + this.Controls.Add(this.ipStart); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.Icon = (System.Drawing.Icon) (resources.GetObject("$this.Icon")); + this.Name = "PortScan"; + this.TabText = "Port Scan"; + this.Text = "Port Scan"; + this.pnlPorts.ResumeLayout(false); + this.pnlPorts.PerformLayout(); + ((System.ComponentModel.ISupportInitialize) this.portEnd).EndInit(); + ((System.ComponentModel.ISupportInitialize) this.portStart).EndInit(); + this.pnlImport.ResumeLayout(false); + this.pnlImport.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); - } - internal System.Windows.Forms.Panel pnlImport; -#endregion - } + } + internal System.Windows.Forms.Panel pnlImport; + #endregion + } } diff --git a/mRemoteV1/CS/UI/UI.Window.PortScan.cs b/mRemoteV1/CS/UI/UI.Window.PortScan.cs index 71462e355..7dda7595f 100644 --- a/mRemoteV1/CS/UI/UI.Window.PortScan.cs +++ b/mRemoteV1/CS/UI/UI.Window.PortScan.cs @@ -8,7 +8,6 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -//using mRemoteNG.Tools.PortScan; using mRemoteNG.My; using WeifenLuo.WinFormsUI.Docking; using mRemoteNG.App; @@ -136,20 +135,18 @@ namespace mRemoteNG.UI.Window public void btnImport_Click(System.Object sender, EventArgs e) { - mRemoteNG.Connection.Protocol.Protocols protocol = Tools.Misc.StringToEnum(typeof(mRemoteNG.Connection.Protocol.Protocols), System.Convert.ToString(cbProtocol.SelectedItem)); + mRemoteNG.Connection.Protocol.Protocols protocol = (mRemoteNG.Connection.Protocol.Protocols)Tools.Misc.StringToEnum(typeof(mRemoteNG.Connection.Protocol.Protocols), System.Convert.ToString(cbProtocol.SelectedItem)); List hosts = new List(); foreach (ListViewItem item in lvHosts.SelectedItems) { - Tools.PortScan.ScanHost scanHost = item.Tag as Tools.PortScan.ScanHost; + Tools.PortScan.ScanHost scanHost = (Tools.PortScan.ScanHost)item.Tag; if (scanHost != null) { - hosts.Add(item.Tag); + hosts.Add(scanHost); } } - App.Import.ImportFromPortScan(hosts, protocol); - DialogResult = DialogResult.OK; Close(); } diff --git a/mRemoteV1/CS/UI/UI.Window.SSHTransfer.cs b/mRemoteV1/CS/UI/UI.Window.SSHTransfer.cs index 31413f739..374702654 100644 --- a/mRemoteV1/CS/UI/UI.Window.SSHTransfer.cs +++ b/mRemoteV1/CS/UI/UI.Window.SSHTransfer.cs @@ -275,7 +275,7 @@ namespace mRemoteNG.UI.Window // this.btnTransfer.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); this.btnTransfer.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnTransfer.Image = global::My.Resources.Resources.SSHTransfer; + this.btnTransfer.Image = My.Resources.SSHTransfer; this.btnTransfer.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnTransfer.Location = new System.Drawing.Point(597, 382); this.btnTransfer.Name = "btnTransfer"; @@ -424,7 +424,7 @@ namespace mRemoteNG.UI.Window sshT.OnTransferProgress += SshTransfer_Progress; sshT.OnTransferEnd += SshTransfer_End; - this.sshT.Connect((int) this.txtPort.Text); + this.sshT.Connect(System.Convert.ToInt32(this.txtPort.Text)); LocalFile = this.txtLocalFile.Text; RemoteFile = this.txtRemoteFile.Text; @@ -483,8 +483,8 @@ namespace mRemoteNG.UI.Window } - private long maxVal; - private long curVal; + private int maxVal; + private int curVal; delegate void SetStatusCB(); private void SetStatus() diff --git a/mRemoteV1/CS/UI/UI.Window.ScreenshotManager.cs b/mRemoteV1/CS/UI/UI.Window.ScreenshotManager.cs index 24007c937..c8d39e8de 100644 --- a/mRemoteV1/CS/UI/UI.Window.ScreenshotManager.cs +++ b/mRemoteV1/CS/UI/UI.Window.ScreenshotManager.cs @@ -78,21 +78,21 @@ namespace mRemoteNG.UI.Window //mMenFile // this.mMenFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.mMenFileSaveAll, this.mMenFileRemoveAll}); - this.mMenFile.Image = global::My.Resources.Resources.File; + this.mMenFile.Image = My.Resources.File; this.mMenFile.Name = "mMenFile"; this.mMenFile.Size = new System.Drawing.Size(51, 20); this.mMenFile.Text = "&File"; // //mMenFileSaveAll // - this.mMenFileSaveAll.Image = global::My.Resources.Resources.Screenshot_Save; + this.mMenFileSaveAll.Image = My.Resources.Screenshot_Save; this.mMenFileSaveAll.Name = "mMenFileSaveAll"; this.mMenFileSaveAll.Size = new System.Drawing.Size(128, 22); this.mMenFileSaveAll.Text = "Save All"; // //mMenFileRemoveAll // - this.mMenFileRemoveAll.Image = global::My.Resources.Resources.Screenshot_Delete; + this.mMenFileRemoveAll.Image = My.Resources.Screenshot_Delete; this.mMenFileRemoveAll.Name = "mMenFileRemoveAll"; this.mMenFileRemoveAll.Size = new System.Drawing.Size(128, 22); this.mMenFileRemoveAll.Text = "Remove All"; @@ -105,14 +105,14 @@ namespace mRemoteNG.UI.Window // //cMenScreenshotCopy // - this.cMenScreenshotCopy.Image = global::My.Resources.Resources.Screenshot_Copy; + this.cMenScreenshotCopy.Image = My.Resources.Screenshot_Copy; this.cMenScreenshotCopy.Name = "cMenScreenshotCopy"; this.cMenScreenshotCopy.Size = new System.Drawing.Size(99, 22); this.cMenScreenshotCopy.Text = "Copy"; // //cMenScreenshotSave // - this.cMenScreenshotSave.Image = global::My.Resources.Resources.Screenshot_Save; + this.cMenScreenshotSave.Image = My.Resources.Screenshot_Save; this.cMenScreenshotSave.Name = "cMenScreenshotSave"; this.cMenScreenshotSave.Size = new System.Drawing.Size(99, 22); this.cMenScreenshotSave.Text = "Save"; @@ -130,7 +130,7 @@ namespace mRemoteNG.UI.Window this.Controls.Add(this.flpScreenshots); this.Controls.Add(this.msMain); this.HideOnClose = true; - this.Icon = global::My.Resources.Resources.Screenshot_Icon; + this.Icon = My.Resources.Screenshot_Icon; this.MainMenuStrip = this.msMain; this.Name = "ScreenshotManager"; this.TabText = "Screenshots"; @@ -212,7 +212,7 @@ namespace mRemoteNG.UI.Window if (e.Button == System.Windows.Forms.MouseButtons.Left) { - this.OpenScreenshot(sender); + this.OpenScreenshot((System.Windows.Forms.PictureBox)sender); } } @@ -220,7 +220,7 @@ namespace mRemoteNG.UI.Window { if (e.Button == System.Windows.Forms.MouseButtons.Left) { - this.CloseOpenedScreenshot(sender.Parent); + this.CloseOpenedScreenshot((System.Windows.Forms.Form)((Control)sender).Parent); } } @@ -269,7 +269,7 @@ namespace mRemoteNG.UI.Window { try { - sender.Parent.Dispose(); + ((Control)sender).Parent.Dispose(); } catch (Exception ex) { diff --git a/mRemoteV1/CS/UI/UI.Window.Sessions.Designer.cs b/mRemoteV1/CS/UI/UI.Window.Sessions.Designer.cs index 319a469cc..5514002d6 100644 --- a/mRemoteV1/CS/UI/UI.Window.Sessions.Designer.cs +++ b/mRemoteV1/CS/UI/UI.Window.Sessions.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,116 +8,108 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports -namespace mRemoteNG +namespace mRemoteNG.UI.Window { - namespace Wi + public partial class Sessions { - namespace Window - { - public partial class Sessions - { -#region Windows Form Designer generated code - private System.ComponentModel.Container components = null; - internal System.Windows.Forms.ToolStripMenuItem sessionMenuRetrieve; - internal System.Windows.Forms.ToolStripMenuItem sessionMenuLogoff; - internal System.Windows.Forms.ListView sessionList; + #region Windows Form Designer generated code + private System.ComponentModel.Container components = null; + internal System.Windows.Forms.ToolStripMenuItem sessionMenuRetrieve; + internal System.Windows.Forms.ToolStripMenuItem sessionMenuLogoff; + internal System.Windows.Forms.ListView sessionList; - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.Load += new System.EventHandler(Sessions_Load); - System.Windows.Forms.ContextMenuStrip sessionMenu = default(System.Windows.Forms.ContextMenuStrip); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sessions)); - this.sessionMenuRetrieve = new System.Windows.Forms.ToolStripMenuItem(); - this.sessionMenuRetrieve.Click += new System.EventHandler(this.sessionMenuRetrieve_Click); - this.sessionMenuLogoff = new System.Windows.Forms.ToolStripMenuItem(); - this.sessionMenuLogoff.Click += new System.EventHandler(this.sessionMenuLogoff_Click); - this.sessionList = new System.Windows.Forms.ListView(); - this.sessionUsernameColumn = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.sessionActivityColumn = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - this.sessionTypeColumn = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); - sessionMenu = new System.Windows.Forms.ContextMenuStrip(this.components); - sessionMenu.SuspendLayout(); - this.SuspendLayout(); - // - //sessionMenu - // - sessionMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.sessionMenuRetrieve, this.sessionMenuLogoff}); - sessionMenu.Name = "cMenSession"; - sessionMenu.Size = new System.Drawing.Size(153, 70); - sessionMenu.Opening += this.menuSession_Opening; - // - //sessionMenuRetrieve - // - this.sessionMenuRetrieve.Image = global::My.Resources.Resources.Refresh; - this.sessionMenuRetrieve.Name = "sessionMenuRetrieve"; - this.sessionMenuRetrieve.Size = new System.Drawing.Size(152, 22); - this.sessionMenuRetrieve.Text = "Retrieve"; - // - //sessionMenuLogoff - // - this.sessionMenuLogoff.Image = global::My.Resources.Resources.Session_LogOff; - this.sessionMenuLogoff.Name = "sessionMenuLogoff"; - this.sessionMenuLogoff.Size = new System.Drawing.Size(152, 22); - this.sessionMenuLogoff.Text = global::mRemoteNG.My.Language.strLogOff; - // - //sessionList - // - this.sessionList.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.sessionList.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.sessionList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {this.sessionUsernameColumn, this.sessionActivityColumn, this.sessionTypeColumn}); - this.sessionList.ContextMenuStrip = sessionMenu; - this.sessionList.FullRowSelect = true; - this.sessionList.GridLines = true; - this.sessionList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; - this.sessionList.Location = new System.Drawing.Point(0, -1); - this.sessionList.MultiSelect = false; - this.sessionList.Name = "sessionList"; - this.sessionList.ShowGroups = false; - this.sessionList.Size = new System.Drawing.Size(242, 174); - this.sessionList.TabIndex = 0; - this.sessionList.UseCompatibleStateImageBehavior = false; - this.sessionList.View = System.Windows.Forms.View.Details; - // - //sessionUsernameColumn - // - this.sessionUsernameColumn.Text = global::mRemoteNG.My.Language.strColumnUsername; - this.sessionUsernameColumn.Width = 80; - // - //sessionActivityColumn - // - this.sessionActivityColumn.Text = global::mRemoteNG.My.Language.strActivity; - // - //sessionTypeColumn - // - this.sessionTypeColumn.Text = global::mRemoteNG.My.Language.strType; - this.sessionTypeColumn.Width = 80; - // - //Sessions - // - this.ClientSize = new System.Drawing.Size(242, 173); - this.Controls.Add(this.sessionList); - this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.HideOnClose = true; - this.Icon = (System.Drawing.Icon) (resources.GetObject("$this.Icon")); - this.Name = "Sessions"; - this.TabText = global::mRemoteNG.My.Language.strMenuSessions; - this.Text = "Sessions"; - sessionMenu.ResumeLayout(false); - this.ResumeLayout(false); + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.Load += new System.EventHandler(Sessions_Load); + System.Windows.Forms.ContextMenuStrip sessionMenu = default(System.Windows.Forms.ContextMenuStrip); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sessions)); + this.sessionMenuRetrieve = new System.Windows.Forms.ToolStripMenuItem(); + this.sessionMenuRetrieve.Click += new System.EventHandler(this.sessionMenuRetrieve_Click); + this.sessionMenuLogoff = new System.Windows.Forms.ToolStripMenuItem(); + this.sessionMenuLogoff.Click += new System.EventHandler(this.sessionMenuLogoff_Click); + this.sessionList = new System.Windows.Forms.ListView(); + this.sessionUsernameColumn = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.sessionActivityColumn = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + this.sessionTypeColumn = (System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader()); + sessionMenu = new System.Windows.Forms.ContextMenuStrip(this.components); + sessionMenu.SuspendLayout(); + this.SuspendLayout(); + // + //sessionMenu + // + sessionMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.sessionMenuRetrieve, this.sessionMenuLogoff}); + sessionMenu.Name = "cMenSession"; + sessionMenu.Size = new System.Drawing.Size(153, 70); + sessionMenu.Opening += this.menuSession_Opening; + // + //sessionMenuRetrieve + // + this.sessionMenuRetrieve.Image = My.Resources.Refresh; + this.sessionMenuRetrieve.Name = "sessionMenuRetrieve"; + this.sessionMenuRetrieve.Size = new System.Drawing.Size(152, 22); + this.sessionMenuRetrieve.Text = "Retrieve"; + // + //sessionMenuLogoff + // + this.sessionMenuLogoff.Image = My.Resources.Session_LogOff; + this.sessionMenuLogoff.Name = "sessionMenuLogoff"; + this.sessionMenuLogoff.Size = new System.Drawing.Size(152, 22); + this.sessionMenuLogoff.Text = global::mRemoteNG.My.Language.strLogOff; + // + //sessionList + // + this.sessionList.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.sessionList.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.sessionList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {this.sessionUsernameColumn, this.sessionActivityColumn, this.sessionTypeColumn}); + this.sessionList.ContextMenuStrip = sessionMenu; + this.sessionList.FullRowSelect = true; + this.sessionList.GridLines = true; + this.sessionList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.sessionList.Location = new System.Drawing.Point(0, -1); + this.sessionList.MultiSelect = false; + this.sessionList.Name = "sessionList"; + this.sessionList.ShowGroups = false; + this.sessionList.Size = new System.Drawing.Size(242, 174); + this.sessionList.TabIndex = 0; + this.sessionList.UseCompatibleStateImageBehavior = false; + this.sessionList.View = System.Windows.Forms.View.Details; + // + //sessionUsernameColumn + // + this.sessionUsernameColumn.Text = global::mRemoteNG.My.Language.strColumnUsername; + this.sessionUsernameColumn.Width = 80; + // + //sessionActivityColumn + // + this.sessionActivityColumn.Text = global::mRemoteNG.My.Language.strActivity; + // + //sessionTypeColumn + // + this.sessionTypeColumn.Text = global::mRemoteNG.My.Language.strType; + this.sessionTypeColumn.Width = 80; + // + //Sessions + // + this.ClientSize = new System.Drawing.Size(242, 173); + this.Controls.Add(this.sessionList); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.HideOnClose = true; + this.Icon = (System.Drawing.Icon) (resources.GetObject("$this.Icon")); + this.Name = "Sessions"; + this.TabText = global::mRemoteNG.My.Language.strMenuSessions; + this.Text = "Sessions"; + sessionMenu.ResumeLayout(false); + this.ResumeLayout(false); - } - internal System.Windows.Forms.ColumnHeader sessionUsernameColumn; - internal System.Windows.Forms.ColumnHeader sessionActivityColumn; - internal System.Windows.Forms.ColumnHeader sessionTypeColumn; -#endregion - } } + internal System.Windows.Forms.ColumnHeader sessionUsernameColumn; + internal System.Windows.Forms.ColumnHeader sessionActivityColumn; + internal System.Windows.Forms.ColumnHeader sessionTypeColumn; + #endregion } - } diff --git a/mRemoteV1/CS/UI/UI.Window.Sessions.cs b/mRemoteV1/CS/UI/UI.Window.Sessions.cs index e94b7a403..ec3a4234a 100644 --- a/mRemoteV1/CS/UI/UI.Window.Sessions.cs +++ b/mRemoteV1/CS/UI/UI.Window.Sessions.cs @@ -37,7 +37,7 @@ namespace mRemoteNG.UI.Window if (Auto) { _retrieved = false; - if (!Settings.AutomaticallyGetSessionInfo) + if (!Settings.Default.AutomaticallyGetSessionInfo) { return ; } @@ -62,21 +62,21 @@ namespace mRemoteNG.UI.Window data.Password = connectionInfo.Password; data.Domain = connectionInfo.Domain; - if (Settings.EmptyCredentials == "custom") + if (Settings.Default.EmptyCredentials == "custom") { if (string.IsNullOrEmpty(data.Username)) { - data.Username = Settings.DefaultUsername; + data.Username = Settings.Default.DefaultUsername; } if (string.IsNullOrEmpty(data.Password)) { - data.Password = Security.Crypt.Decrypt(Settings.DefaultPassword, App.Info.General.EncryptionKey); + data.Password = Security.Crypt.Decrypt(Settings.Default.DefaultPassword, App.Info.General.EncryptionKey); } if (string.IsNullOrEmpty(data.Domain)) { - data.Domain = Settings.DefaultDomain; + data.Domain = Settings.Default.DefaultDomain; } } @@ -131,7 +131,7 @@ namespace mRemoteNG.UI.Window data.Username = username; data.Password = password; data.Domain = domain; - data.SessionId = long.Parse(sessionId); + data.SessionId = int.Parse(sessionId); Thread thread = new Thread(new System.Threading.ThreadStart(KillSessionBackground)); thread.SetApartmentState(ApartmentState.STA); @@ -174,7 +174,7 @@ namespace mRemoteNG.UI.Window Security.Impersonator impersonator = new Security.Impersonator(); mRemoteNG.Connection.Protocol.RDP.TerminalSessions terminalSessions = new mRemoteNG.Connection.Protocol.RDP.TerminalSessions(); - long serverHandle = 0; + int serverHandle = 0; try { impersonator.StartImpersonation(data.Domain, data.Username, data.Password); @@ -208,7 +208,7 @@ namespace mRemoteNG.UI.Window } // Get sessions from an already impersonated and connected TerminalSessions object - private void GetSessions(mRemoteNG.Connection.Protocol.RDP.TerminalSessions terminalSessions, long serverHandle) + private void GetSessions(mRemoteNG.Connection.Protocol.RDP.TerminalSessions terminalSessions, int serverHandle) { mRemoteNG.Connection.Protocol.RDP.SessionsCollection rdpSessions = terminalSessions.GetSessions(serverHandle); foreach (mRemoteNG.Connection.Protocol.RDP.Session session in rdpSessions) @@ -232,7 +232,7 @@ namespace mRemoteNG.UI.Window Security.Impersonator impersonator = new Security.Impersonator(); mRemoteNG.Connection.Protocol.RDP.TerminalSessions terminalSessions = new mRemoteNG.Connection.Protocol.RDP.TerminalSessions(); - long serverHandle = 0; + int serverHandle = 0; try { if (string.IsNullOrEmpty(data.Username) || string.IsNullOrEmpty(data.Password)) @@ -245,7 +245,8 @@ namespace mRemoteNG.UI.Window serverHandle = terminalSessions.OpenConnection(data.Hostname); if (!(serverHandle == 0)) { - terminalSessions.KillSession(serverHandle, data.SessionId); + terminalSessions.KillSession( + serverHandle, data.SessionId); } ClearList(); @@ -365,7 +366,7 @@ namespace mRemoteNG.UI.Window public string Username; public string Password; public string Domain; - public long SessionId; + public int SessionId; } #endregion } diff --git a/mRemoteV1/CS/UI/UI.Window.Tree.Designer.cs b/mRemoteV1/CS/UI/UI.Window.Tree.Designer.cs index 6aa27e3f2..214da29bc 100644 --- a/mRemoteV1/CS/UI/UI.Window.Tree.Designer.cs +++ b/mRemoteV1/CS/UI/UI.Window.Tree.Designer.cs @@ -183,7 +183,7 @@ namespace mRemoteNG.UI.Window // //cMenTreeConnect // - this.cMenTreeConnect.Image = global::My.Resources.Resources.Play; + this.cMenTreeConnect.Image = My.Resources.Play; this.cMenTreeConnect.Name = "cMenTreeConnect"; this.cMenTreeConnect.ShortcutKeys = (System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.C); @@ -199,14 +199,14 @@ namespace mRemoteNG.UI.Window // //cMenTreeConnectWithOptionsConnectToConsoleSession // - this.cMenTreeConnectWithOptionsConnectToConsoleSession.Image = global::My.Resources.Resources.monitor_go; + this.cMenTreeConnectWithOptionsConnectToConsoleSession.Image = My.Resources.monitor_go; this.cMenTreeConnectWithOptionsConnectToConsoleSession.Name = "cMenTreeConnectWithOptionsConnectToConsoleSession"; this.cMenTreeConnectWithOptionsConnectToConsoleSession.Size = new System.Drawing.Size(231, 22); this.cMenTreeConnectWithOptionsConnectToConsoleSession.Text = "Connect to console session"; // //cMenTreeConnectWithOptionsDontConnectToConsoleSession // - this.cMenTreeConnectWithOptionsDontConnectToConsoleSession.Image = global::My.Resources.Resources.monitor_delete; + this.cMenTreeConnectWithOptionsDontConnectToConsoleSession.Image = My.Resources.monitor_delete; this.cMenTreeConnectWithOptionsDontConnectToConsoleSession.Name = "cMenTreeConnectWithOptionsDontConnectToConsoleSession"; this.cMenTreeConnectWithOptionsDontConnectToConsoleSession.Size = new System.Drawing.Size(231, 22); this.cMenTreeConnectWithOptionsDontConnectToConsoleSession.Text = "Don\'t connect to console session"; @@ -214,28 +214,28 @@ namespace mRemoteNG.UI.Window // //cMenTreeConnectWithOptionsConnectInFullscreen // - this.cMenTreeConnectWithOptionsConnectInFullscreen.Image = global::My.Resources.Resources.arrow_out; + this.cMenTreeConnectWithOptionsConnectInFullscreen.Image = My.Resources.arrow_out; this.cMenTreeConnectWithOptionsConnectInFullscreen.Name = "cMenTreeConnectWithOptionsConnectInFullscreen"; this.cMenTreeConnectWithOptionsConnectInFullscreen.Size = new System.Drawing.Size(231, 22); this.cMenTreeConnectWithOptionsConnectInFullscreen.Text = "Connect in fullscreen"; // //cMenTreeConnectWithOptionsNoCredentials // - this.cMenTreeConnectWithOptionsNoCredentials.Image = global::My.Resources.Resources.key_delete; + this.cMenTreeConnectWithOptionsNoCredentials.Image = My.Resources.key_delete; this.cMenTreeConnectWithOptionsNoCredentials.Name = "cMenTreeConnectWithOptionsNoCredentials"; this.cMenTreeConnectWithOptionsNoCredentials.Size = new System.Drawing.Size(231, 22); this.cMenTreeConnectWithOptionsNoCredentials.Text = "Connect without credentials"; // //cMenTreeConnectWithOptionsChoosePanelBeforeConnecting // - this.cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Image = global::My.Resources.Resources.Panels; + this.cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Image = My.Resources.Panels; this.cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Name = "cMenTreeConnectWithOptionsChoosePanelBeforeConnecting"; this.cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Size = new System.Drawing.Size(231, 22); this.cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Text = "Choose panel before connecting"; // //cMenTreeDisconnect // - this.cMenTreeDisconnect.Image = global::My.Resources.Resources.Pause; + this.cMenTreeDisconnect.Image = My.Resources.Pause; this.cMenTreeDisconnect.Name = "cMenTreeDisconnect"; this.cMenTreeDisconnect.Size = new System.Drawing.Size(186, 22); this.cMenTreeDisconnect.Text = "Disconnect"; @@ -247,14 +247,14 @@ namespace mRemoteNG.UI.Window // //cMenTreeToolsExternalApps // - this.cMenTreeToolsExternalApps.Image = global::My.Resources.Resources.ExtApp; + this.cMenTreeToolsExternalApps.Image = My.Resources.ExtApp; this.cMenTreeToolsExternalApps.Name = "cMenTreeToolsExternalApps"; this.cMenTreeToolsExternalApps.Size = new System.Drawing.Size(186, 22); this.cMenTreeToolsExternalApps.Text = "External Applications"; // //cMenTreeToolsTransferFile // - this.cMenTreeToolsTransferFile.Image = global::My.Resources.Resources.SSHTransfer; + this.cMenTreeToolsTransferFile.Image = My.Resources.SSHTransfer; this.cMenTreeToolsTransferFile.Name = "cMenTreeToolsTransferFile"; this.cMenTreeToolsTransferFile.Size = new System.Drawing.Size(186, 22); this.cMenTreeToolsTransferFile.Text = "Transfer File (SSH)"; @@ -266,7 +266,7 @@ namespace mRemoteNG.UI.Window // //cMenTreeDuplicate // - this.cMenTreeDuplicate.Image = global::My.Resources.Resources.page_copy; + this.cMenTreeDuplicate.Image = My.Resources.page_copy; this.cMenTreeDuplicate.Name = "cMenTreeDuplicate"; this.cMenTreeDuplicate.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D); this.cMenTreeDuplicate.Size = new System.Drawing.Size(186, 22); @@ -274,7 +274,7 @@ namespace mRemoteNG.UI.Window // //cMenTreeRename // - this.cMenTreeRename.Image = global::My.Resources.Resources.Rename; + this.cMenTreeRename.Image = My.Resources.Rename; this.cMenTreeRename.Name = "cMenTreeRename"; this.cMenTreeRename.ShortcutKeys = System.Windows.Forms.Keys.F2; this.cMenTreeRename.Size = new System.Drawing.Size(186, 22); @@ -282,7 +282,7 @@ namespace mRemoteNG.UI.Window // //cMenTreeDelete // - this.cMenTreeDelete.Image = global::My.Resources.Resources.Delete; + this.cMenTreeDelete.Image = My.Resources.Delete; this.cMenTreeDelete.Name = "cMenTreeDelete"; this.cMenTreeDelete.ShortcutKeys = System.Windows.Forms.Keys.Delete; this.cMenTreeDelete.Size = new System.Drawing.Size(186, 22); @@ -331,14 +331,14 @@ namespace mRemoteNG.UI.Window // //cMenTreeAddConnection // - this.cMenTreeAddConnection.Image = global::My.Resources.Resources.Connection_Add; + this.cMenTreeAddConnection.Image = My.Resources.Connection_Add; this.cMenTreeAddConnection.Name = "cMenTreeAddConnection"; this.cMenTreeAddConnection.Size = new System.Drawing.Size(186, 22); this.cMenTreeAddConnection.Text = "New Connection"; // //cMenTreeAddFolder // - this.cMenTreeAddFolder.Image = global::My.Resources.Resources.Folder_Add; + this.cMenTreeAddFolder.Image = My.Resources.Folder_Add; this.cMenTreeAddFolder.Name = "cMenTreeAddFolder"; this.cMenTreeAddFolder.Size = new System.Drawing.Size(186, 22); this.cMenTreeAddFolder.Text = "New Folder"; @@ -357,21 +357,21 @@ namespace mRemoteNG.UI.Window // //cMenTreeToolsSortAscending // - this.cMenTreeToolsSortAscending.Image = global::My.Resources.Resources.Sort_AZ; + this.cMenTreeToolsSortAscending.Image = My.Resources.Sort_AZ; this.cMenTreeToolsSortAscending.Name = "cMenTreeToolsSortAscending"; this.cMenTreeToolsSortAscending.Size = new System.Drawing.Size(157, 22); this.cMenTreeToolsSortAscending.Text = "Ascending (A-Z)"; // //cMenTreeToolsSortDescending // - this.cMenTreeToolsSortDescending.Image = global::My.Resources.Resources.Sort_ZA; + this.cMenTreeToolsSortDescending.Image = My.Resources.Sort_ZA; this.cMenTreeToolsSortDescending.Name = "cMenTreeToolsSortDescending"; this.cMenTreeToolsSortDescending.Size = new System.Drawing.Size(157, 22); this.cMenTreeToolsSortDescending.Text = "Descending (Z-A)"; // //cMenTreeMoveUp // - this.cMenTreeMoveUp.Image = global::My.Resources.Resources.Arrow_Up; + this.cMenTreeMoveUp.Image = My.Resources.Arrow_Up; this.cMenTreeMoveUp.Name = "cMenTreeMoveUp"; this.cMenTreeMoveUp.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Up); this.cMenTreeMoveUp.Size = new System.Drawing.Size(186, 22); @@ -379,7 +379,7 @@ namespace mRemoteNG.UI.Window // //cMenTreeMoveDown // - this.cMenTreeMoveDown.Image = global::My.Resources.Resources.Arrow_Down; + this.cMenTreeMoveDown.Image = My.Resources.Arrow_Down; this.cMenTreeMoveDown.Name = "cMenTreeMoveDown"; this.cMenTreeMoveDown.ShortcutKeys = (System.Windows.Forms.Keys) (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Down); this.cMenTreeMoveDown.Size = new System.Drawing.Size(186, 22); @@ -407,7 +407,7 @@ namespace mRemoteNG.UI.Window //PictureBox1 // this.PictureBox1.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); - this.PictureBox1.Image = global::My.Resources.Resources.Search; + this.PictureBox1.Image = My.Resources.Search; this.PictureBox1.Location = new System.Drawing.Point(2, 412); this.PictureBox1.Name = "PictureBox1"; this.PictureBox1.Size = new System.Drawing.Size(16, 16); @@ -443,14 +443,14 @@ namespace mRemoteNG.UI.Window //mMenAddConnection // this.mMenAddConnection.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.mMenAddConnection.Image = global::My.Resources.Resources.Connection_Add; + this.mMenAddConnection.Image = My.Resources.Connection_Add; this.mMenAddConnection.Name = "mMenAddConnection"; this.mMenAddConnection.Size = new System.Drawing.Size(28, 20); // //mMenAddFolder // this.mMenAddFolder.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.mMenAddFolder.Image = global::My.Resources.Resources.Folder_Add; + this.mMenAddFolder.Image = My.Resources.Folder_Add; this.mMenAddFolder.Name = "mMenAddFolder"; this.mMenAddFolder.Size = new System.Drawing.Size(28, 20); // @@ -458,21 +458,21 @@ namespace mRemoteNG.UI.Window // this.mMenView.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.mMenView.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.mMenViewExpandAllFolders, this.mMenViewCollapseAllFolders}); - this.mMenView.Image = global::My.Resources.Resources.View; + this.mMenView.Image = My.Resources.View; this.mMenView.Name = "mMenView"; this.mMenView.Size = new System.Drawing.Size(28, 20); this.mMenView.Text = "&View"; // //mMenViewExpandAllFolders // - this.mMenViewExpandAllFolders.Image = global::My.Resources.Resources.Expand; + this.mMenViewExpandAllFolders.Image = My.Resources.Expand; this.mMenViewExpandAllFolders.Name = "mMenViewExpandAllFolders"; this.mMenViewExpandAllFolders.Size = new System.Drawing.Size(161, 22); this.mMenViewExpandAllFolders.Text = "Expand all folders"; // //mMenViewCollapseAllFolders // - this.mMenViewCollapseAllFolders.Image = global::My.Resources.Resources.Collapse; + this.mMenViewCollapseAllFolders.Image = My.Resources.Collapse; this.mMenViewCollapseAllFolders.Name = "mMenViewCollapseAllFolders"; this.mMenViewCollapseAllFolders.Size = new System.Drawing.Size(161, 22); this.mMenViewCollapseAllFolders.Text = "Collapse all folders"; @@ -480,7 +480,7 @@ namespace mRemoteNG.UI.Window //mMenSortAscending // this.mMenSortAscending.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.mMenSortAscending.Image = global::My.Resources.Resources.Sort_AZ; + this.mMenSortAscending.Image = My.Resources.Sort_AZ; this.mMenSortAscending.Name = "mMenSortAscending"; this.mMenSortAscending.Size = new System.Drawing.Size(28, 20); // @@ -491,7 +491,7 @@ namespace mRemoteNG.UI.Window this.Controls.Add(this.pnlConnections); this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); this.HideOnClose = true; - this.Icon = global::My.Resources.Resources.Root_Icon; + this.Icon = My.Resources.Root_Icon; this.Name = "Tree"; this.TabText = "Connections"; this.Text = "Connections"; diff --git a/mRemoteV1/CS/UI/UI.Window.Tree.cs b/mRemoteV1/CS/UI/UI.Window.Tree.cs index 9543b8b01..523f2cca1 100644 --- a/mRemoteV1/CS/UI/UI.Window.Tree.cs +++ b/mRemoteV1/CS/UI/UI.Window.Tree.cs @@ -11,7 +11,6 @@ using System.Windows.Forms; using mRemoteNG.App; using mRemoteNG.My; using WeifenLuo.WinFormsUI.Docking; -using mRemoteNG.App; namespace mRemoteNG.UI.Window @@ -143,9 +142,9 @@ namespace mRemoteNG.UI.Window cMenTreeDelete.ShortcutKeys = Keys.Delete; mRemoteNG.Tree.Node.FinishRenameSelectedNode(e.Label); - Windows.configForm.pGrid_SelectedObjectChanged(); + Runtime.Windows.configForm.pGrid_SelectedObjectChanged(); ShowHideTreeContextMenuItems(e.Node); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } catch (Exception ex) { @@ -159,26 +158,26 @@ namespace mRemoteNG.UI.Window { if ((mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.Connection) || (mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.PuttySession)) { - Windows.configForm.SetPropertyGridObject(e.Node.Tag); + Runtime.Windows.configForm.SetPropertyGridObject(e.Node.Tag); } else if (mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.Container) { - Windows.configForm.SetPropertyGridObject((e.Node.Tag as Container.Info).ConnectionInfo); + Runtime.Windows.configForm.SetPropertyGridObject((e.Node.Tag as Container.Info).ConnectionInfo); } else if ((mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.Root) || (mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.PuttyRoot)) { - Windows.configForm.SetPropertyGridObject(e.Node.Tag); + Runtime.Windows.configForm.SetPropertyGridObject(e.Node.Tag); } else { return; } - - Windows.configForm.pGrid_SelectedObjectChanged(); + + Runtime.Windows.configForm.pGrid_SelectedObjectChanged(); ShowHideTreeContextMenuItems(e.Node); - Windows.sessionsForm.GetSessions(true); - - LastSelected = mRemoteNG.Tree.Node.GetConstantID(e.Node); + Runtime.Windows.sessionsForm.GetSessions(true); + + Runtime.LastSelected = mRemoteNG.Tree.Node.GetConstantID(e.Node); } catch (Exception ex) { @@ -195,16 +194,16 @@ namespace mRemoteNG.UI.Window if (e.Button == MouseButtons.Left) { - if (Settings.SingleClickOnConnectionOpensIt && + if (My.Settings.Default.SingleClickOnConnectionOpensIt && (mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.Connection | mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.PuttySession)) { - OpenConnection(); + Runtime.OpenConnection(); } - if (Settings.SingleClickSwitchesToOpenConnection && mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.Connection) + if (My.Settings.Default.SingleClickSwitchesToOpenConnection && mRemoteNG.Tree.Node.GetNodeType(e.Node) == mRemoteNG.Tree.Node.Type.Connection) { - SwitchToOpenConnection(e.Node.Tag); + Runtime.SwitchToOpenConnection((mRemoteNG.Connection.Info)e.Node.Tag); } } } @@ -219,7 +218,7 @@ namespace mRemoteNG.UI.Window if (mRemoteNG.Tree.Node.GetNodeType(mRemoteNG.Tree.Node.SelectedNode) == mRemoteNG.Tree.Node.Type.Connection | mRemoteNG.Tree.Node.GetNodeType(mRemoteNG.Tree.Node.SelectedNode) == mRemoteNG.Tree.Node.Type.PuttySession) { - OpenConnection(); + Runtime.OpenConnection(); } } @@ -267,7 +266,7 @@ namespace mRemoteNG.UI.Window if (mRemoteNG.Tree.Node.GetNodeType(selectedNode) == mRemoteNG.Tree.Node.Type.Connection) { - mRemoteNG.Connection.Info connectionInfo = selectedNode.Tag; + mRemoteNG.Connection.Info connectionInfo = (mRemoteNG.Connection.Info)selectedNode.Tag; if (connectionInfo.OpenConnections.Count == 0) { @@ -293,7 +292,7 @@ namespace mRemoteNG.UI.Window } else if (mRemoteNG.Tree.Node.GetNodeType(selectedNode) == mRemoteNG.Tree.Node.Type.PuttySession) { - mRemoteNG.Connection.PuttySession.Info puttySessionInfo = selectedNode.Tag; + mRemoteNG.Connection.PuttySession.Info puttySessionInfo = (mRemoteNG.Connection.PuttySession.Info)selectedNode.Tag; cMenTreeAddConnection.Enabled = false; cMenTreeAddFolder.Enabled = false; @@ -329,7 +328,7 @@ namespace mRemoteNG.UI.Window { if (node.Tag is mRemoteNG.Connection.Info) { - connectionInfo = node.Tag; + connectionInfo = (mRemoteNG.Connection.Info)node.Tag; openConnections = openConnections + connectionInfo.OpenConnections.Count; } } @@ -440,18 +439,19 @@ namespace mRemoteNG.UI.Window { if (mRemoteNG.Tree.Node.GetNodeType(dropNode.Parent) == mRemoteNG.Tree.Node.Type.Container) { - dropNode.Tag.Parent = dropNode.Parent.Tag; + ((mRemoteNG.Container.Info)dropNode.Tag).Parent = (mRemoteNG.Container.Info)dropNode.Parent.Tag; } else if (mRemoteNG.Tree.Node.GetNodeType(dropNode.Parent) == mRemoteNG.Tree.Node.Type.Root) { - dropNode.Tag.Parent = null; if (mRemoteNG.Tree.Node.GetNodeType(dropNode) == mRemoteNG.Tree.Node.Type.Connection) { - dropNode.Tag.Inherit.TurnOffInheritanceCompletely(); + ((mRemoteNG.Connection.Info)dropNode.Tag).Parent = null; + ((mRemoteNG.Connection.Info)dropNode.Tag).Inherit.TurnOffInheritanceCompletely(); } else if (mRemoteNG.Tree.Node.GetNodeType(dropNode) == mRemoteNG.Tree.Node.Type.Container) { - dropNode.Tag.ConnectionInfo.Inherit.TurnOffInheritanceCompletely(); + ((mRemoteNG.Container.Info)dropNode.Tag).Parent = null; + ((mRemoteNG.Container.Info)dropNode.Tag).ConnectionInfo.Inherit.TurnOffInheritanceCompletely(); } } } @@ -460,8 +460,8 @@ namespace mRemoteNG.UI.Window //the user and select it dropNode.EnsureVisible(); selectedTreeview.SelectedNode = dropNode; - - SaveConnectionsBG(); + + Runtime.SaveConnectionsBG(); } catch (Exception ex) { @@ -573,43 +573,43 @@ namespace mRemoteNG.UI.Window public void cMenTreeAddConnection_Click(System.Object sender, EventArgs e) { AddConnection(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } public void cMenTreeAddFolder_Click(System.Object sender, EventArgs e) { AddFolder(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void cMenTreeConnect_Click(System.Object sender, EventArgs e) { - OpenConnection(mRemoteNG.Connection.Info.Force.DoNotJump); + Runtime.OpenConnection(mRemoteNG.Connection.Info.Force.DoNotJump); } static public void cMenTreeConnectWithOptionsConnectToConsoleSession_Click(System.Object sender, EventArgs e) { - OpenConnection(mRemoteNG.Connection.Info.Force.UseConsoleSession | mRemoteNG.Connection.Info.Force.DoNotJump); + Runtime.OpenConnection(mRemoteNG.Connection.Info.Force.UseConsoleSession | mRemoteNG.Connection.Info.Force.DoNotJump); } static public void cMenTreeConnectWithOptionsNoCredentials_Click(System.Object sender, EventArgs e) { - OpenConnection(mRemoteNG.Connection.Info.Force.NoCredentials); + Runtime.OpenConnection(mRemoteNG.Connection.Info.Force.NoCredentials); } static public void cMenTreeConnectWithOptionsDontConnectToConsoleSession_Click(System.Object sender, EventArgs e) { - OpenConnection(mRemoteNG.Connection.Info.Force.DontUseConsoleSession | mRemoteNG.Connection.Info.Force.DoNotJump); + Runtime.OpenConnection(mRemoteNG.Connection.Info.Force.DontUseConsoleSession | mRemoteNG.Connection.Info.Force.DoNotJump); } static public void cMenTreeConnectWithOptionsConnectInFullscreen_Click(System.Object sender, EventArgs e) { - OpenConnection(mRemoteNG.Connection.Info.Force.Fullscreen | mRemoteNG.Connection.Info.Force.DoNotJump); + Runtime.OpenConnection(mRemoteNG.Connection.Info.Force.Fullscreen | mRemoteNG.Connection.Info.Force.DoNotJump); } static public void cMenTreeConnectWithOptionsChoosePanelBeforeConnecting_Click(System.Object sender, EventArgs e) { - OpenConnection(mRemoteNG.Connection.Info.Force.OverridePanel | mRemoteNG.Connection.Info.Force.DoNotJump); + Runtime.OpenConnection(mRemoteNG.Connection.Info.Force.OverridePanel | mRemoteNG.Connection.Info.Force.DoNotJump); } public void cMenTreeDisconnect_Click(System.Object sender, EventArgs e) @@ -627,7 +627,7 @@ namespace mRemoteNG.UI.Window tvConnections.BeginUpdate(); mRemoteNG.Tree.Node.Sort(tvConnections.Nodes[0], SortOrder.Ascending); tvConnections.EndUpdate(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } public void cMenTreeToolsSortAscending_Click(System.Object sender, EventArgs e) @@ -635,7 +635,7 @@ namespace mRemoteNG.UI.Window tvConnections.BeginUpdate(); mRemoteNG.Tree.Node.Sort(tvConnections.SelectedNode, SortOrder.Ascending); tvConnections.EndUpdate(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } public void cMenTreeToolsSortDescending_Click(System.Object sender, EventArgs e) @@ -643,7 +643,7 @@ namespace mRemoteNG.UI.Window tvConnections.BeginUpdate(); mRemoteNG.Tree.Node.Sort(tvConnections.SelectedNode, SortOrder.Descending); tvConnections.EndUpdate(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } public void cMenTree_DropDownOpening(object sender, EventArgs e) @@ -653,56 +653,56 @@ namespace mRemoteNG.UI.Window private static void cMenTreeToolsExternalAppsEntry_Click(object sender, EventArgs e) { - StartExternalApp(sender.Tag); + StartExternalApp((mRemoteNG.Tools.ExternalTool)((System.Windows.Forms.Control)sender).Tag); } public void cMenTreeDuplicate_Click(System.Object sender, EventArgs e) { mRemoteNG.Tree.Node.CloneNode(tvConnections.SelectedNode); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void cMenTreeRename_Click(System.Object sender, EventArgs e) { mRemoteNG.Tree.Node.StartRenameSelectedNode(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void cMenTreeDelete_Click(System.Object sender, EventArgs e) { mRemoteNG.Tree.Node.DeleteSelectedNode(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void cMenTreeImportFile_Click(System.Object sender, EventArgs e) { - Import.ImportFromFile(Windows.treeForm.tvConnections.Nodes[0], Windows.treeForm.tvConnections.SelectedNode, true); + Import.ImportFromFile(Runtime.Windows.treeForm.tvConnections.Nodes[0], Runtime.Windows.treeForm.tvConnections.SelectedNode, true); } static public void cMenTreeImportActiveDirectory_Click(System.Object sender, EventArgs e) { - Windows.Show(Type.ActiveDirectoryImport); + Runtime.Windows.Show(Type.ActiveDirectoryImport); } static public void cMenTreeImportPortScan_Click(System.Object sender, EventArgs e) { - Windows.Show(UI.Window.Type.PortScan, true); + Runtime.Windows.Show(UI.Window.Type.PortScan, true); } static public void cMenTreeExportFile_Click(System.Object sender, EventArgs e) { - Export.ExportToFile(Windows.treeForm.tvConnections.Nodes[0], Windows.treeForm.tvConnections.SelectedNode); + Export.ExportToFile(Runtime.Windows.treeForm.tvConnections.Nodes[0], Runtime.Windows.treeForm.tvConnections.SelectedNode); } static public void cMenTreeMoveUp_Click(System.Object sender, EventArgs e) { mRemoteNG.Tree.Node.MoveNodeUp(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } static public void cMenTreeMoveDown_Click(System.Object sender, EventArgs e) { mRemoteNG.Tree.Node.MoveNodeDown(); - SaveConnectionsBG(); + Runtime.SaveConnectionsBG(); } #endregion @@ -736,12 +736,12 @@ namespace mRemoteNG.UI.Window } else { - newConnectionInfo.Parent = containerNode.Tag; + newConnectionInfo.Parent = (mRemoteNG.Container.Info)containerNode.Tag; } newConnectionInfo.TreeNode = newTreeNode; newTreeNode.Tag = newConnectionInfo; - ConnectionList.Add(newConnectionInfo); + Runtime.ConnectionList.Add(newConnectionInfo); containerNode.Nodes.Add(newTreeNode); @@ -793,8 +793,8 @@ namespace mRemoteNG.UI.Window { newContainerInfo.ConnectionInfo.Inherit.TurnOffInheritanceCompletely(); } - - ContainerList.Add(newContainerInfo); + + Runtime.ContainerList.Add(newContainerInfo); parentNode.Nodes.Add(newNode); tvConnections.SelectedNode = newNode; @@ -814,7 +814,7 @@ namespace mRemoteNG.UI.Window { if (tvConnections.SelectedNode.Tag is mRemoteNG.Connection.Info) { - mRemoteNG.Connection.Info conI = tvConnections.SelectedNode.Tag; + mRemoteNG.Connection.Info conI = (mRemoteNG.Connection.Info)tvConnections.SelectedNode.Tag; for (int i = 0; i <= conI.OpenConnections.Count - 1; i++) { conI.OpenConnections[i].Disconnect(); @@ -827,7 +827,7 @@ namespace mRemoteNG.UI.Window { if (n.Tag is mRemoteNG.Connection.Info) { - mRemoteNG.Connection.Info conI = n.Tag; + mRemoteNG.Connection.Info conI = (mRemoteNG.Connection.Info)n.Tag; for (int i = 0; i <= conI.OpenConnections.Count - 1; i++) { conI.OpenConnections[i].Disconnect(); @@ -847,14 +847,14 @@ namespace mRemoteNG.UI.Window { try { - Windows.Show(Type.SSHTransfer); - - mRemoteNG.Connection.Info conI = mRemoteNG.Tree.Node.SelectedNode.Tag; - - Windows.sshtransferForm.Hostname = conI.Hostname; - Windows.sshtransferForm.Username = conI.Username; - Windows.sshtransferForm.Password = conI.Password; - Windows.sshtransferForm.Port = System.Convert.ToString(conI.Port); + Runtime.Windows.Show(Type.SSHTransfer); + + mRemoteNG.Connection.Info conI = (mRemoteNG.Connection.Info)mRemoteNG.Tree.Node.SelectedNode.Tag; + + Runtime.Windows.sshtransferForm.Hostname = conI.Hostname; + Runtime.Windows.sshtransferForm.Username = conI.Username; + Runtime.Windows.sshtransferForm.Password = conI.Password; + Runtime.Windows.sshtransferForm.Port = System.Convert.ToString(conI.Port); } catch (Exception ex) { @@ -895,7 +895,7 @@ namespace mRemoteNG.UI.Window { if (mRemoteNG.Tree.Node.GetNodeType(mRemoteNG.Tree.Node.SelectedNode) == mRemoteNG.Tree.Node.Type.Connection | mRemoteNG.Tree.Node.GetNodeType(mRemoteNG.Tree.Node.SelectedNode) == mRemoteNG.Tree.Node.Type.PuttySession) { - externalTool.Start(mRemoteNG.Tree.Node.SelectedNode.Tag); + externalTool.Start((mRemoteNG.Connection.Info)mRemoteNG.Tree.Node.SelectedNode.Tag); } } catch (Exception ex) @@ -1003,7 +1003,7 @@ namespace mRemoteNG.UI.Window if (tvConnections.SelectedNode.Tag is mRemoteNG.Connection.Info) { e.Handled = true; - OpenConnection(); + Runtime.OpenConnection(); } else { diff --git a/mRemoteV1/CS/UI/UI.Window.Type.cs b/mRemoteV1/CS/UI/UI.Window.Type.cs index f0f99347d..5aaa7d119 100644 --- a/mRemoteV1/CS/UI/UI.Window.Type.cs +++ b/mRemoteV1/CS/UI/UI.Window.Type.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,29 +8,28 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports namespace mRemoteNG.UI.Window { public enum Type - { - Tree = 0, - Connection = 1, - Config = 2, - Sessions = 3, - ErrorsAndInfos = 4, - ScreenshotManager = 5, - Options = 6, - About = 8, - Update = 9, - SSHTransfer = 10, - ActiveDirectoryImport = 11, - Help = 12, - ExternalApps = 13, - PortScan = 14, - UltraVNCSC = 16, - ComponentsCheck = 17, - Announcement = 18 - } + { + Tree = 0, + Connection = 1, + Config = 2, + Sessions = 3, + ErrorsAndInfos = 4, + ScreenshotManager = 5, + Options = 6, + About = 8, + Update = 9, + SSHTransfer = 10, + ActiveDirectoryImport = 11, + Help = 12, + ExternalApps = 13, + PortScan = 14, + UltraVNCSC = 16, + ComponentsCheck = 17, + Announcement = 18 + } } diff --git a/mRemoteV1/CS/UI/UI.Window.UltraVNCSC.cs b/mRemoteV1/CS/UI/UI.Window.UltraVNCSC.cs index 28fda5209..7e0d4b2a0 100644 --- a/mRemoteV1/CS/UI/UI.Window.UltraVNCSC.cs +++ b/mRemoteV1/CS/UI/UI.Window.UltraVNCSC.cs @@ -67,7 +67,7 @@ namespace mRemoteNG.UI.Window this.ClientSize = new System.Drawing.Size(446, 362); this.Controls.Add(this.pnlContainer); this.Controls.Add(this.tsMain); - this.Icon = global::My.Resources.UVNC_SC_Icon; + this.Icon = My.Resources.UVNC_SC_Icon; this.Name = "UltraVNCSC"; this.TabText = "UltraVNC SC"; this.Text = "UltraVNC SC"; diff --git a/mRemoteV1/CS/UI/UI.Window.Update.Designer.cs b/mRemoteV1/CS/UI/UI.Window.Update.Designer.cs index 492064682..48a8f75e4 100644 --- a/mRemoteV1/CS/UI/UI.Window.Update.Designer.cs +++ b/mRemoteV1/CS/UI/UI.Window.Update.Designer.cs @@ -1,4 +1,3 @@ -// VBConversions Note: VB project level imports using System.Collections.Generic; using System; using AxWFICALib; @@ -9,210 +8,202 @@ using AxMSTSCLib; using Microsoft.VisualBasic; using System.Collections; using System.Windows.Forms; -// End of VB project level imports -namespace mRemoteNG +namespace mRemoteNG.UI.Window { - namespace Wi + public partial class Update { - namespace Window - { - public partial class Update - { -#region Windows Form Designer generated code - internal System.Windows.Forms.Label lblStatus; - internal System.Windows.Forms.TextBox txtChangeLog; - internal System.Windows.Forms.ProgressBar prgbDownload; - internal System.Windows.Forms.Button btnDownload; - internal System.Windows.Forms.Label lblChangeLogLabel; - internal System.Windows.Forms.Panel pnlUpdate; - internal System.Windows.Forms.Label lblLatestVersionLabel; - internal System.Windows.Forms.Label lblInstalledVersionLabel; - internal System.Windows.Forms.Label lblLatestVersion; - internal System.Windows.Forms.Label lblInstalledVersion; - internal System.Windows.Forms.PictureBox pbUpdateImage; - internal System.Windows.Forms.Button btnCheckForUpdate; + #region Windows Form Designer generated code + internal System.Windows.Forms.Label lblStatus; + internal System.Windows.Forms.TextBox txtChangeLog; + internal System.Windows.Forms.ProgressBar prgbDownload; + internal System.Windows.Forms.Button btnDownload; + internal System.Windows.Forms.Label lblChangeLogLabel; + internal System.Windows.Forms.Panel pnlUpdate; + internal System.Windows.Forms.Label lblLatestVersionLabel; + internal System.Windows.Forms.Label lblInstalledVersionLabel; + internal System.Windows.Forms.Label lblLatestVersion; + internal System.Windows.Forms.Label lblInstalledVersion; + internal System.Windows.Forms.PictureBox pbUpdateImage; + internal System.Windows.Forms.Button btnCheckForUpdate; - private void InitializeComponent() - { - this.btnCheckForUpdate = new System.Windows.Forms.Button(); - this.btnCheckForUpdate.Click += new System.EventHandler(this.btnCheckForUpdate_Click); - this.pnlUpdate = new System.Windows.Forms.Panel(); - this.lblChangeLogLabel = new System.Windows.Forms.Label(); - this.btnDownload = new System.Windows.Forms.Button(); - this.btnDownload.Click += new System.EventHandler(this.btnDownload_Click); - this.prgbDownload = new System.Windows.Forms.ProgressBar(); - this.txtChangeLog = new System.Windows.Forms.TextBox(); - this.lblStatus = new System.Windows.Forms.Label(); - this.lblLatestVersionLabel = new System.Windows.Forms.Label(); - this.lblInstalledVersionLabel = new System.Windows.Forms.Label(); - this.lblLatestVersion = new System.Windows.Forms.Label(); - this.lblInstalledVersion = new System.Windows.Forms.Label(); - this.pbUpdateImage = new System.Windows.Forms.PictureBox(); - this.pbUpdateImage.Click += new System.EventHandler(this.pbUpdateImage_Click); - this.pnlUpdate.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize) this.pbUpdateImage).BeginInit(); - this.SuspendLayout(); - // - //btnCheckForUpdate - // - this.btnCheckForUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnCheckForUpdate.Location = new System.Drawing.Point(16, 104); - this.btnCheckForUpdate.Name = "btnCheckForUpdate"; - this.btnCheckForUpdate.Size = new System.Drawing.Size(104, 32); - this.btnCheckForUpdate.TabIndex = 5; - this.btnCheckForUpdate.Text = "Check Again"; - this.btnCheckForUpdate.UseVisualStyleBackColor = true; - // - //pnlUpdate - // - this.pnlUpdate.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.pnlUpdate.Controls.Add(this.lblChangeLogLabel); - this.pnlUpdate.Controls.Add(this.btnDownload); - this.pnlUpdate.Controls.Add(this.prgbDownload); - this.pnlUpdate.Controls.Add(this.txtChangeLog); - this.pnlUpdate.Location = new System.Drawing.Point(16, 152); - this.pnlUpdate.Name = "pnlUpdate"; - this.pnlUpdate.Size = new System.Drawing.Size(718, 248); - this.pnlUpdate.TabIndex = 6; - this.pnlUpdate.Visible = false; - // - //lblChangeLogLabel - // - this.lblChangeLogLabel.AutoSize = true; - this.lblChangeLogLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.lblChangeLogLabel.Location = new System.Drawing.Point(0, 0); - this.lblChangeLogLabel.Name = "lblChangeLogLabel"; - this.lblChangeLogLabel.Size = new System.Drawing.Size(79, 13); - this.lblChangeLogLabel.TabIndex = 0; - this.lblChangeLogLabel.Text = "Change Log:"; - // - //btnDownload - // - this.btnDownload.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); - this.btnDownload.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnDownload.Location = new System.Drawing.Point(0, 216); - this.btnDownload.Name = "btnDownload"; - this.btnDownload.Size = new System.Drawing.Size(144, 32); - this.btnDownload.TabIndex = 2; - this.btnDownload.Text = "Download and Install"; - this.btnDownload.UseVisualStyleBackColor = true; - // - //prgbDownload - // - this.prgbDownload.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.prgbDownload.Location = new System.Drawing.Point(160, 224); - this.prgbDownload.Name = "prgbDownload"; - this.prgbDownload.Size = new System.Drawing.Size(542, 23); - this.prgbDownload.TabIndex = 3; - this.prgbDownload.Visible = false; - // - //txtChangeLog - // - this.txtChangeLog.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.txtChangeLog.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.txtChangeLog.Cursor = System.Windows.Forms.Cursors.Arrow; - this.txtChangeLog.Location = new System.Drawing.Point(16, 24); - this.txtChangeLog.Multiline = true; - this.txtChangeLog.Name = "txtChangeLog"; - this.txtChangeLog.ReadOnly = true; - this.txtChangeLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.txtChangeLog.Size = new System.Drawing.Size(699, 181); - this.txtChangeLog.TabIndex = 1; - this.txtChangeLog.TabStop = false; - // - //lblStatus - // - this.lblStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.lblStatus.ForeColor = System.Drawing.SystemColors.ControlText; - this.lblStatus.Location = new System.Drawing.Point(12, 16); - this.lblStatus.Name = "lblStatus"; - this.lblStatus.Size = new System.Drawing.Size(660, 23); - this.lblStatus.TabIndex = 0; - this.lblStatus.Text = "Status"; - this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - //lblLatestVersionLabel - // - this.lblLatestVersionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.lblLatestVersionLabel.Location = new System.Drawing.Point(16, 72); - this.lblLatestVersionLabel.Name = "lblLatestVersionLabel"; - this.lblLatestVersionLabel.Size = new System.Drawing.Size(120, 16); - this.lblLatestVersionLabel.TabIndex = 3; - this.lblLatestVersionLabel.Text = "Current version:"; - this.lblLatestVersionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - //lblInstalledVersionLabel - // - this.lblInstalledVersionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.lblInstalledVersionLabel.Location = new System.Drawing.Point(16, 48); - this.lblInstalledVersionLabel.Name = "lblInstalledVersionLabel"; - this.lblInstalledVersionLabel.Size = new System.Drawing.Size(120, 16); - this.lblInstalledVersionLabel.TabIndex = 1; - this.lblInstalledVersionLabel.Text = "Installed version:"; - this.lblInstalledVersionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - //lblLatestVersion - // - this.lblLatestVersion.Location = new System.Drawing.Point(136, 72); - this.lblLatestVersion.Name = "lblLatestVersion"; - this.lblLatestVersion.Size = new System.Drawing.Size(104, 16); - this.lblLatestVersion.TabIndex = 4; - this.lblLatestVersion.Text = "Version"; - this.lblLatestVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - //lblInstalledVersion - // - this.lblInstalledVersion.Location = new System.Drawing.Point(136, 48); - this.lblInstalledVersion.Name = "lblInstalledVersion"; - this.lblInstalledVersion.Size = new System.Drawing.Size(104, 16); - this.lblInstalledVersion.TabIndex = 2; - this.lblInstalledVersion.Text = "Version"; - this.lblInstalledVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - //pbUpdateImage - // - this.pbUpdateImage.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); - this.pbUpdateImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pbUpdateImage.Cursor = System.Windows.Forms.Cursors.Hand; - this.pbUpdateImage.Location = new System.Drawing.Point(246, 48); - this.pbUpdateImage.Name = "pbUpdateImage"; - this.pbUpdateImage.Size = new System.Drawing.Size(468, 60); - this.pbUpdateImage.TabIndex = 45; - this.pbUpdateImage.TabStop = false; - this.pbUpdateImage.Visible = false; - // - //Update - // - this.ClientSize = new System.Drawing.Size(734, 418); - this.Controls.Add(this.pbUpdateImage); - this.Controls.Add(this.lblLatestVersionLabel); - this.Controls.Add(this.lblInstalledVersionLabel); - this.Controls.Add(this.lblLatestVersion); - this.Controls.Add(this.btnCheckForUpdate); - this.Controls.Add(this.lblInstalledVersion); - this.Controls.Add(this.pnlUpdate); - this.Controls.Add(this.lblStatus); - this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); - this.Icon = global::My.Resources.Resources.Update_Icon; - this.Name = "Update"; - this.TabText = "Update"; - this.Text = "Update"; - this.pnlUpdate.ResumeLayout(false); - this.pnlUpdate.PerformLayout(); - ((System.ComponentModel.ISupportInitialize) this.pbUpdateImage).EndInit(); - this.ResumeLayout(false); + private void InitializeComponent() + { + this.btnCheckForUpdate = new System.Windows.Forms.Button(); + this.btnCheckForUpdate.Click += new System.EventHandler(this.btnCheckForUpdate_Click); + this.pnlUpdate = new System.Windows.Forms.Panel(); + this.lblChangeLogLabel = new System.Windows.Forms.Label(); + this.btnDownload = new System.Windows.Forms.Button(); + this.btnDownload.Click += new System.EventHandler(this.btnDownload_Click); + this.prgbDownload = new System.Windows.Forms.ProgressBar(); + this.txtChangeLog = new System.Windows.Forms.TextBox(); + this.lblStatus = new System.Windows.Forms.Label(); + this.lblLatestVersionLabel = new System.Windows.Forms.Label(); + this.lblInstalledVersionLabel = new System.Windows.Forms.Label(); + this.lblLatestVersion = new System.Windows.Forms.Label(); + this.lblInstalledVersion = new System.Windows.Forms.Label(); + this.pbUpdateImage = new System.Windows.Forms.PictureBox(); + this.pbUpdateImage.Click += new System.EventHandler(this.pbUpdateImage_Click); + this.pnlUpdate.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize) this.pbUpdateImage).BeginInit(); + this.SuspendLayout(); + // + //btnCheckForUpdate + // + this.btnCheckForUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnCheckForUpdate.Location = new System.Drawing.Point(16, 104); + this.btnCheckForUpdate.Name = "btnCheckForUpdate"; + this.btnCheckForUpdate.Size = new System.Drawing.Size(104, 32); + this.btnCheckForUpdate.TabIndex = 5; + this.btnCheckForUpdate.Text = "Check Again"; + this.btnCheckForUpdate.UseVisualStyleBackColor = true; + // + //pnlUpdate + // + this.pnlUpdate.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.pnlUpdate.Controls.Add(this.lblChangeLogLabel); + this.pnlUpdate.Controls.Add(this.btnDownload); + this.pnlUpdate.Controls.Add(this.prgbDownload); + this.pnlUpdate.Controls.Add(this.txtChangeLog); + this.pnlUpdate.Location = new System.Drawing.Point(16, 152); + this.pnlUpdate.Name = "pnlUpdate"; + this.pnlUpdate.Size = new System.Drawing.Size(718, 248); + this.pnlUpdate.TabIndex = 6; + this.pnlUpdate.Visible = false; + // + //lblChangeLogLabel + // + this.lblChangeLogLabel.AutoSize = true; + this.lblChangeLogLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.lblChangeLogLabel.Location = new System.Drawing.Point(0, 0); + this.lblChangeLogLabel.Name = "lblChangeLogLabel"; + this.lblChangeLogLabel.Size = new System.Drawing.Size(79, 13); + this.lblChangeLogLabel.TabIndex = 0; + this.lblChangeLogLabel.Text = "Change Log:"; + // + //btnDownload + // + this.btnDownload.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); + this.btnDownload.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnDownload.Location = new System.Drawing.Point(0, 216); + this.btnDownload.Name = "btnDownload"; + this.btnDownload.Size = new System.Drawing.Size(144, 32); + this.btnDownload.TabIndex = 2; + this.btnDownload.Text = "Download and Install"; + this.btnDownload.UseVisualStyleBackColor = true; + // + //prgbDownload + // + this.prgbDownload.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.prgbDownload.Location = new System.Drawing.Point(160, 224); + this.prgbDownload.Name = "prgbDownload"; + this.prgbDownload.Size = new System.Drawing.Size(542, 23); + this.prgbDownload.TabIndex = 3; + this.prgbDownload.Visible = false; + // + //txtChangeLog + // + this.txtChangeLog.Anchor = (System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right); + this.txtChangeLog.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtChangeLog.Cursor = System.Windows.Forms.Cursors.Arrow; + this.txtChangeLog.Location = new System.Drawing.Point(16, 24); + this.txtChangeLog.Multiline = true; + this.txtChangeLog.Name = "txtChangeLog"; + this.txtChangeLog.ReadOnly = true; + this.txtChangeLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.txtChangeLog.Size = new System.Drawing.Size(699, 181); + this.txtChangeLog.TabIndex = 1; + this.txtChangeLog.TabStop = false; + // + //lblStatus + // + this.lblStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.lblStatus.ForeColor = System.Drawing.SystemColors.ControlText; + this.lblStatus.Location = new System.Drawing.Point(12, 16); + this.lblStatus.Name = "lblStatus"; + this.lblStatus.Size = new System.Drawing.Size(660, 23); + this.lblStatus.TabIndex = 0; + this.lblStatus.Text = "Status"; + this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + //lblLatestVersionLabel + // + this.lblLatestVersionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.lblLatestVersionLabel.Location = new System.Drawing.Point(16, 72); + this.lblLatestVersionLabel.Name = "lblLatestVersionLabel"; + this.lblLatestVersionLabel.Size = new System.Drawing.Size(120, 16); + this.lblLatestVersionLabel.TabIndex = 3; + this.lblLatestVersionLabel.Text = "Current version:"; + this.lblLatestVersionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + //lblInstalledVersionLabel + // + this.lblInstalledVersionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.lblInstalledVersionLabel.Location = new System.Drawing.Point(16, 48); + this.lblInstalledVersionLabel.Name = "lblInstalledVersionLabel"; + this.lblInstalledVersionLabel.Size = new System.Drawing.Size(120, 16); + this.lblInstalledVersionLabel.TabIndex = 1; + this.lblInstalledVersionLabel.Text = "Installed version:"; + this.lblInstalledVersionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + //lblLatestVersion + // + this.lblLatestVersion.Location = new System.Drawing.Point(136, 72); + this.lblLatestVersion.Name = "lblLatestVersion"; + this.lblLatestVersion.Size = new System.Drawing.Size(104, 16); + this.lblLatestVersion.TabIndex = 4; + this.lblLatestVersion.Text = "Version"; + this.lblLatestVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + //lblInstalledVersion + // + this.lblInstalledVersion.Location = new System.Drawing.Point(136, 48); + this.lblInstalledVersion.Name = "lblInstalledVersion"; + this.lblInstalledVersion.Size = new System.Drawing.Size(104, 16); + this.lblInstalledVersion.TabIndex = 2; + this.lblInstalledVersion.Text = "Version"; + this.lblInstalledVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + //pbUpdateImage + // + this.pbUpdateImage.Anchor = (System.Windows.Forms.AnchorStyles) (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); + this.pbUpdateImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pbUpdateImage.Cursor = System.Windows.Forms.Cursors.Hand; + this.pbUpdateImage.Location = new System.Drawing.Point(246, 48); + this.pbUpdateImage.Name = "pbUpdateImage"; + this.pbUpdateImage.Size = new System.Drawing.Size(468, 60); + this.pbUpdateImage.TabIndex = 45; + this.pbUpdateImage.TabStop = false; + this.pbUpdateImage.Visible = false; + // + //Update + // + this.ClientSize = new System.Drawing.Size(734, 418); + this.Controls.Add(this.pbUpdateImage); + this.Controls.Add(this.lblLatestVersionLabel); + this.Controls.Add(this.lblInstalledVersionLabel); + this.Controls.Add(this.lblLatestVersion); + this.Controls.Add(this.btnCheckForUpdate); + this.Controls.Add(this.lblInstalledVersion); + this.Controls.Add(this.pnlUpdate); + this.Controls.Add(this.lblStatus); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", (float) (8.25F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0)); + this.Icon = My.Resources.Update_Icon; + this.Name = "Update"; + this.TabText = "Update"; + this.Text = "Update"; + this.pnlUpdate.ResumeLayout(false); + this.pnlUpdate.PerformLayout(); + ((System.ComponentModel.ISupportInitialize) this.pbUpdateImage).EndInit(); + this.ResumeLayout(false); - } -#endregion - } } + #endregion } - } diff --git a/mRemoteV1/CS/app.config b/mRemoteV1/CS/app.config index df982df95..d5248c0c9 100644 --- a/mRemoteV1/CS/app.config +++ b/mRemoteV1/CS/app.config @@ -3,9 +3,11 @@
+
+
@@ -54,6 +56,557 @@ + + + Normal + + + False + + + True + + + + + + True + + + True + + + True + + + True + + + False + + + False + + + + + + True + + + True + + + False + + + False + + + True + + + False + + + False + + + noinfo + + + + + + + + + + + + False + + + False + + + False + + + True + + + False + + + False + + + False + + + + + + 80 + + + False + + + + + + + + + + + + + + + + + + + + + RDP + + + Default Settings + + + False + + + FitToWindow + + + Colors16Bit + + + True + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + DoNotPlay + + + 2 + + + False + + + False + + + False + + + 0 + + + False + + + True + + + 0, 0 + + + Bottom + + + True + + + 3, 24 + + + Top + + + False + + + False + + + + + + + + + + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + EncrBasic + + + False + + + + + + + + + False + + + False + + + False + + + True + + + False + + + False + + + AuthVNC + + + ColNormal + + + SmartSAspect + + + False + + + CompNone + + + EncHextile + + + + + + + + + 0 + + + ProxyNone + + + + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + NoAuth + + + False + + + 5500 + + + False + + + + + + IE + + + False + + + + + + False + + + False + + + + + + False + + + + + + False + + + + + + False + + + 7 + + + 1980-01-01 + + + False + + + Never + + + Yes + + + mRemoteNG + + + False + + + False + + + False + + + False + + + False + + + False + + + 5 + + + + + + + + + + + + + + + + + + False + + + False + + + False + + + False + + + 4 + + + mRemoteNG + + + 10 + + + {0}.{1:yyyyMMdd-HHmmssffff}.backup + + + False + + + True + + + False + + + False + + + + + + True + + + + + + + + + True + + + https://update.mremoteng.org/ + + + + + + True + + + False + + + False + + + RDP + + + 9/9, 33/8 + + + 9/8, 34/8 + + Normal @@ -607,6 +1160,17 @@ + + + de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW + + + release + + + https://update.mremoteng.org/announcement.txt + + de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW diff --git a/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.exe.config b/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.exe.config index df982df95..d5248c0c9 100644 --- a/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.exe.config +++ b/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.exe.config @@ -3,9 +3,11 @@
+
+
@@ -54,6 +56,557 @@ + + + Normal + + + False + + + True + + + + + + True + + + True + + + True + + + True + + + False + + + False + + + + + + True + + + True + + + False + + + False + + + True + + + False + + + False + + + noinfo + + + + + + + + + + + + False + + + False + + + False + + + True + + + False + + + False + + + False + + + + + + 80 + + + False + + + + + + + + + + + + + + + + + + + + + RDP + + + Default Settings + + + False + + + FitToWindow + + + Colors16Bit + + + True + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + DoNotPlay + + + 2 + + + False + + + False + + + False + + + 0 + + + False + + + True + + + 0, 0 + + + Bottom + + + True + + + 3, 24 + + + Top + + + False + + + False + + + + + + + + + + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + EncrBasic + + + False + + + + + + + + + False + + + False + + + False + + + True + + + False + + + False + + + AuthVNC + + + ColNormal + + + SmartSAspect + + + False + + + CompNone + + + EncHextile + + + + + + + + + 0 + + + ProxyNone + + + + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + NoAuth + + + False + + + 5500 + + + False + + + + + + IE + + + False + + + + + + False + + + False + + + + + + False + + + + + + False + + + + + + False + + + 7 + + + 1980-01-01 + + + False + + + Never + + + Yes + + + mRemoteNG + + + False + + + False + + + False + + + False + + + False + + + False + + + 5 + + + + + + + + + + + + + + + + + + False + + + False + + + False + + + False + + + 4 + + + mRemoteNG + + + 10 + + + {0}.{1:yyyyMMdd-HHmmssffff}.backup + + + False + + + True + + + False + + + False + + + + + + True + + + + + + + + + True + + + https://update.mremoteng.org/ + + + + + + True + + + False + + + False + + + RDP + + + 9/9, 33/8 + + + 9/8, 34/8 + + Normal @@ -607,6 +1160,17 @@ + + + de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW + + + release + + + https://update.mremoteng.org/announcement.txt + + de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW diff --git a/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.vshost.exe.config b/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.vshost.exe.config index df982df95..d5248c0c9 100644 --- a/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.vshost.exe.config +++ b/mRemoteV1/CS/bin/Debug Portable/mRemoteNG.vshost.exe.config @@ -3,9 +3,11 @@
+
+
@@ -54,6 +56,557 @@ + + + Normal + + + False + + + True + + + + + + True + + + True + + + True + + + True + + + False + + + False + + + + + + True + + + True + + + False + + + False + + + True + + + False + + + False + + + noinfo + + + + + + + + + + + + False + + + False + + + False + + + True + + + False + + + False + + + False + + + + + + 80 + + + False + + + + + + + + + + + + + + + + + + + + + RDP + + + Default Settings + + + False + + + FitToWindow + + + Colors16Bit + + + True + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + DoNotPlay + + + 2 + + + False + + + False + + + False + + + 0 + + + False + + + True + + + 0, 0 + + + Bottom + + + True + + + 3, 24 + + + Top + + + False + + + False + + + + + + + + + + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + EncrBasic + + + False + + + + + + + + + False + + + False + + + False + + + True + + + False + + + False + + + AuthVNC + + + ColNormal + + + SmartSAspect + + + False + + + CompNone + + + EncHextile + + + + + + + + + 0 + + + ProxyNone + + + + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + False + + + NoAuth + + + False + + + 5500 + + + False + + + + + + IE + + + False + + + + + + False + + + False + + + + + + False + + + + + + False + + + + + + False + + + 7 + + + 1980-01-01 + + + False + + + Never + + + Yes + + + mRemoteNG + + + False + + + False + + + False + + + False + + + False + + + False + + + 5 + + + + + + + + + + + + + + + + + + False + + + False + + + False + + + False + + + 4 + + + mRemoteNG + + + 10 + + + {0}.{1:yyyyMMdd-HHmmssffff}.backup + + + False + + + True + + + False + + + False + + + + + + True + + + + + + + + + True + + + https://update.mremoteng.org/ + + + + + + True + + + False + + + False + + + RDP + + + 9/9, 33/8 + + + 9/8, 34/8 + + Normal @@ -607,6 +1160,17 @@ + + + de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW + + + release + + + https://update.mremoteng.org/announcement.txt + + de,el,en,en-US,es-AR,es,fr,hu,it,nb-NO,nl,pt,pt-BR,pl,ru,uk,zh-CN,zh-TW diff --git a/mRemoteV1/CS/mRemoteV1.csproj b/mRemoteV1/CS/mRemoteV1.csproj index 260697ad0..e204de169 100644 --- a/mRemoteV1/CS/mRemoteV1.csproj +++ b/mRemoteV1/CS/mRemoteV1.csproj @@ -191,82 +191,83 @@ - + Component - + Component - + Component - + Component - + AdvancedPage.cs - + UserControl - + AppearancePage.cs - + UserControl - + ConnectionsPage.cs - + UserControl - + OptionsForm.cs - + Form - + KeyboardPage.cs - + UserControl - + UserControl - + SqlServerPage.cs - + UserControl - + StartupExitPage.cs - + UserControl - + TabsPanelsPage.cs - + UserControl - + ThemePage.cs - + UserControl - + UpdatesPage.cs - + UserControl + @@ -280,7 +281,9 @@ Connection.InterfaceControl.cs - + + Component + @@ -305,22 +308,22 @@ - + frmChoosePanel.cs - + Form - + frmMain.cs - + Form - + PasswordForm.cs - + Form @@ -399,7 +402,7 @@ Form - + ExportForm.cs @@ -418,7 +421,7 @@ Form - + Form @@ -451,46 +454,46 @@ - + frmChoosePanel.cs Designer - + frmMain.cs Designer - + PasswordForm.cs Designer - + AdvancedPage.cs - + AppearancePage.cs - + ConnectionsPage.cs - + OptionsForm.cs - + KeyboardPage.cs - + SqlServerPage.cs - + StartupExitPage.cs - + TabsPanelsPage.cs - + ThemePage.cs - + UpdatesPage.cs @@ -521,7 +524,7 @@ ResXFileCodeGenerator Language.Designer.cs - My + mRemoteNG.My Designer @@ -545,7 +548,7 @@ ResXFileCodeGenerator Resources.Designer.cs - My.Resources + mRemoteNG.My Designer @@ -592,7 +595,7 @@ UI.Window.PortScan.cs Designer - + ExportForm.cs Designer @@ -1020,7 +1023,7 @@ - My + mRemoteNG.My SettingsSingleFileGenerator Settings.Designer.cs diff --git a/mRemoteV1/CS/mRemoteV1.v12.suo b/mRemoteV1/CS/mRemoteV1.v12.suo index 2430757aa..4b8550c42 100644 Binary files a/mRemoteV1/CS/mRemoteV1.v12.suo and b/mRemoteV1/CS/mRemoteV1.v12.suo differ diff --git a/mRemoteV1/CS/obj/Debug Portable/mRemoteV1.csproj.GenerateResource.Cache b/mRemoteV1/CS/obj/Debug Portable/mRemoteV1.csproj.GenerateResource.Cache index 5715ba3ec..a4cf82704 100644 Binary files a/mRemoteV1/CS/obj/Debug Portable/mRemoteV1.csproj.GenerateResource.Cache and b/mRemoteV1/CS/obj/Debug Portable/mRemoteV1.csproj.GenerateResource.Cache differ diff --git a/mRemoteV1/Settings.vb b/mRemoteV1/Settings.vb new file mode 100644 index 000000000..94ac0c7ac --- /dev/null +++ b/mRemoteV1/Settings.vb @@ -0,0 +1,11 @@ + +Namespace My + + 'This class allows you to handle specific events on the settings class: + ' The SettingChanging event is raised before a setting's value is changed. + ' The PropertyChanged event is raised after a setting's value is changed. + ' The SettingsLoaded event is raised after the setting values are loaded. + ' The SettingsSaving event is raised before the setting values are saved. + Partial Friend NotInheritable Class MySettings + End Class +End Namespace diff --git a/mRemoteV1/obj/Debug Portable/DesignTimeResolveAssemblyReferences.cache b/mRemoteV1/obj/Debug Portable/DesignTimeResolveAssemblyReferences.cache index 83df2b7f9..8f6772b51 100644 Binary files a/mRemoteV1/obj/Debug Portable/DesignTimeResolveAssemblyReferences.cache and b/mRemoteV1/obj/Debug Portable/DesignTimeResolveAssemblyReferences.cache differ