fixes
@@ -491,66 +491,14 @@ namespace mRemoteNG.Connection
|
||||
get { return GetInheritedPropertyValue("MacAddress", _macAddress); }
|
||||
set { _macAddress = value; }
|
||||
}
|
||||
|
||||
|
||||
[LocalizedAttributes.LocalizedCategory("strCategoryMiscellaneous", 7),
|
||||
LocalizedAttributes.LocalizedDisplayName("strPropertyNameUser1"),
|
||||
LocalizedAttributes.LocalizedDescription("strPropertyDescriptionUser1")]
|
||||
public virtual string UserField
|
||||
{
|
||||
get { return GetInheritedPropertyValue("UserField", _userField); }
|
||||
set { _userField = value; }
|
||||
}
|
||||
|
||||
public Inheritance Inherit
|
||||
{
|
||||
get { return _Inherit; }
|
||||
set { _Inherit = value; }
|
||||
}
|
||||
|
||||
public Protocol.List OpenConnections
|
||||
{
|
||||
get { return _OpenConnections; }
|
||||
set { _OpenConnections = value; }
|
||||
}
|
||||
|
||||
public bool IsContainer
|
||||
{
|
||||
get { return _IsContainer; }
|
||||
set { _IsContainer = value; }
|
||||
}
|
||||
|
||||
public bool IsDefault
|
||||
{
|
||||
get { return _IsDefault; }
|
||||
set { _IsDefault = value; }
|
||||
}
|
||||
|
||||
public Container.Info Parent { get; set; }
|
||||
|
||||
public int PositionID
|
||||
{
|
||||
get { return _PositionID; }
|
||||
set { _PositionID = value; }
|
||||
}
|
||||
|
||||
public string ConstantID
|
||||
{
|
||||
get { return _constantId; }
|
||||
set { _constantId = value; }
|
||||
}
|
||||
|
||||
public TreeNode TreeNode { get; set; }
|
||||
|
||||
public bool IsQuickConnect
|
||||
{
|
||||
get { return _IsQuickConnect; }
|
||||
set { _IsQuickConnect = value; }
|
||||
}
|
||||
|
||||
public bool PleaseConnect
|
||||
{
|
||||
get { return _PleaseConnect; }
|
||||
set { _PleaseConnect = value; }
|
||||
get { return GetInheritedPropertyValue("UserField", _userField); }
|
||||
set { _userField = value; }
|
||||
}
|
||||
#endregion
|
||||
#region VNC
|
||||
@@ -670,10 +618,73 @@ namespace mRemoteNG.Connection
|
||||
set { _vncViewOnly = value; }
|
||||
}
|
||||
#endregion
|
||||
#region Non-browsable public properties
|
||||
[Browsable(false)]
|
||||
public Inheritance Inherit
|
||||
{
|
||||
get { return _Inherit; }
|
||||
set { _Inherit = value; }
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public Protocol.List OpenConnections
|
||||
{
|
||||
get { return _OpenConnections; }
|
||||
set { _OpenConnections = value; }
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public bool IsContainer
|
||||
{
|
||||
get { return _IsContainer; }
|
||||
set { _IsContainer = value; }
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public bool IsDefault
|
||||
{
|
||||
get { return _IsDefault; }
|
||||
set { _IsDefault = value; }
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public Container.Info Parent { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public int PositionID
|
||||
{
|
||||
get { return _PositionID; }
|
||||
set { _PositionID = value; }
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public string ConstantID
|
||||
{
|
||||
get { return _constantId; }
|
||||
set { _constantId = value; }
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public TreeNode TreeNode { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public bool IsQuickConnect
|
||||
{
|
||||
get { return _IsQuickConnect; }
|
||||
set { _IsQuickConnect = value; }
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public bool PleaseConnect
|
||||
{
|
||||
get { return _PleaseConnect; }
|
||||
set { _PleaseConnect = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public Info()
|
||||
public Info()
|
||||
{
|
||||
// initialize default values for all standard instance members
|
||||
SetTreeDisplayDefaults();
|
||||
@@ -684,6 +695,7 @@ namespace mRemoteNG.Connection
|
||||
SetRedirectDefaults();
|
||||
SetMiscDefaults();
|
||||
SetVNCDefaults();
|
||||
SetNonBrowsablePropertiesDefaults();
|
||||
SetDefaults();
|
||||
}
|
||||
|
||||
@@ -873,13 +885,6 @@ namespace mRemoteNG.Connection
|
||||
_postExtApp = My.Settings.Default.ConDefaultPostExtApp;
|
||||
_macAddress = My.Settings.Default.ConDefaultMacAddress;
|
||||
_userField = My.Settings.Default.ConDefaultUserField;
|
||||
_Inherit = new Inheritance(this);
|
||||
_OpenConnections = new Protocol.List();
|
||||
_IsContainer = false;
|
||||
_IsDefault = false;
|
||||
_PositionID = 0;
|
||||
_IsQuickConnect = false;
|
||||
_PleaseConnect = false;
|
||||
}
|
||||
|
||||
private void SetVNCDefaults()
|
||||
@@ -896,6 +901,17 @@ namespace mRemoteNG.Connection
|
||||
_vncSmartSizeMode = (Protocol.VNC.SmartSizeMode)System.Enum.Parse(typeof(Protocol.VNC.SmartSizeMode),My.Settings.Default.ConDefaultVNCSmartSizeMode);
|
||||
_vncViewOnly = My.Settings.Default.ConDefaultVNCViewOnly;
|
||||
}
|
||||
|
||||
private void SetNonBrowsablePropertiesDefaults()
|
||||
{
|
||||
_Inherit = new Inheritance(this);
|
||||
_OpenConnections = new Protocol.List();
|
||||
_IsContainer = false;
|
||||
_IsDefault = false;
|
||||
_PositionID = 0;
|
||||
_IsQuickConnect = false;
|
||||
_PleaseConnect = false;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,18 +1,6 @@
|
||||
// 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.Resources;
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
@@ -1,26 +1,65 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.ComponentModel;
|
||||
using mRemoteNG.My;
|
||||
using mRemoteNG.Tools;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
|
||||
|
||||
namespace mRemoteNG.Themes
|
||||
{
|
||||
public class ThemeInfo : ICloneable, INotifyPropertyChanged
|
||||
{
|
||||
{
|
||||
#region Private Variables
|
||||
private string _name;
|
||||
private Color _windowBackgroundColor;
|
||||
private Color _menuBackgroundColor;
|
||||
private Color _menuTextColor;
|
||||
private Color _toolbarBackgroundColor;
|
||||
private Color _toolbarTextColor;
|
||||
private Color _connectionsPanelBackgroundColor;
|
||||
private Color _connectionsPanelTextColor;
|
||||
private Color _connectionsPanelTreeLineColor;
|
||||
private Color _searchBoxBackgroundColor;
|
||||
private Color _searchBoxTextPromptColor;
|
||||
private Color _searchBoxTextColor;
|
||||
private Color _configPanelBackgroundColor;
|
||||
private Color _configPanelTextColor;
|
||||
private Color _configPanelCategoryTextColor;
|
||||
private Color _configPanelHelpBackgroundColor;
|
||||
private Color _configPanelHelpTextColor;
|
||||
private Color _configPanelGridLineColor;
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public ThemeInfo(string themeName = null)
|
||||
{
|
||||
_name = Language.strUnnamedTheme;
|
||||
_windowBackgroundColor = SystemColors.AppWorkspace;
|
||||
_menuBackgroundColor = SystemColors.Control;
|
||||
_menuTextColor = SystemColors.ControlText;
|
||||
_toolbarBackgroundColor = SystemColors.Control;
|
||||
_toolbarTextColor = SystemColors.ControlText;
|
||||
_connectionsPanelBackgroundColor = SystemColors.Window;
|
||||
_connectionsPanelTextColor = SystemColors.WindowText;
|
||||
_connectionsPanelTreeLineColor = Color.Black;
|
||||
_searchBoxBackgroundColor = SystemColors.Window;
|
||||
_searchBoxTextPromptColor = SystemColors.GrayText;
|
||||
_searchBoxTextColor = SystemColors.WindowText;
|
||||
_configPanelBackgroundColor = SystemColors.Window;
|
||||
_configPanelTextColor = SystemColors.WindowText;
|
||||
_configPanelCategoryTextColor = SystemColors.ControlText;
|
||||
_configPanelHelpBackgroundColor = SystemColors.Control;
|
||||
_configPanelHelpTextColor = SystemColors.ControlText;
|
||||
_configPanelGridLineColor = SystemColors.InactiveBorder;
|
||||
|
||||
if (themeName != null)
|
||||
{
|
||||
Name = themeName;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#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#.
|
||||
_name = Language.strUnnamedTheme;
|
||||
|
||||
if (themeName != null)
|
||||
{
|
||||
Name = themeName;
|
||||
}
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
return MemberwiseClone();
|
||||
@@ -54,6 +93,16 @@ namespace mRemoteNG.Themes
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hash = 29;
|
||||
foreach (System.Reflection.PropertyInfo propertyInfo in this.GetType().GetProperties())
|
||||
{
|
||||
hash = hash * 17 + System.Convert.ToInt32(propertyInfo.GetValue(this, null)).GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Events
|
||||
@@ -67,14 +116,10 @@ namespace mRemoteNG.Themes
|
||||
#endregion
|
||||
|
||||
#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
|
||||
{
|
||||
get
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
get { return _name; }
|
||||
set
|
||||
{
|
||||
if (_name == value)
|
||||
@@ -87,16 +132,12 @@ namespace mRemoteNG.Themes
|
||||
}
|
||||
|
||||
#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"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionWindowBackgroundColor")]
|
||||
public Color WindowBackgroundColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return (_windowBackgroundColor);
|
||||
}
|
||||
get { return (_windowBackgroundColor); }
|
||||
set
|
||||
{
|
||||
if (_windowBackgroundColor == value)
|
||||
@@ -107,17 +148,13 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("WindowBackgroundColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _menuBackgroundColor; // 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), Browsable(false),
|
||||
LocalizedAttributes.LocalizedDisplayName("strThemeNameMenuBackgroundColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionMenuBackgroundColor")]
|
||||
public Color MenuBackgroundColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _menuBackgroundColor;
|
||||
}
|
||||
get { return _menuBackgroundColor; }
|
||||
set
|
||||
{
|
||||
if (_menuBackgroundColor == value)
|
||||
@@ -128,17 +165,13 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("MenuBackgroundColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _menuTextColor; // 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), Browsable(false),
|
||||
LocalizedAttributes.LocalizedDisplayName("strThemeNameMenuTextColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionMenuTextColor")]
|
||||
public Color MenuTextColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _menuTextColor;
|
||||
}
|
||||
get { return _menuTextColor; }
|
||||
set
|
||||
{
|
||||
if (_menuTextColor == value)
|
||||
@@ -149,18 +182,14 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("MenuTextColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _toolbarBackgroundColor; // 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),
|
||||
Browsable(false),
|
||||
LocalizedAttributes.LocalizedDisplayName("strThemeNameToolbarBackgroundColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionToolbarBackgroundColor")]
|
||||
public Color ToolbarBackgroundColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _toolbarBackgroundColor;
|
||||
}
|
||||
get { return _toolbarBackgroundColor; }
|
||||
set
|
||||
{
|
||||
if (_toolbarBackgroundColor == value || value.A < 255)
|
||||
@@ -171,17 +200,13 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ToolbarBackgroundColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _toolbarTextColor; // 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), Browsable(false),
|
||||
LocalizedAttributes.LocalizedDisplayName("strThemeNameToolbarTextColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionToolbarTextColor")]
|
||||
public Color ToolbarTextColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _toolbarTextColor;
|
||||
}
|
||||
get { return _toolbarTextColor; }
|
||||
set
|
||||
{
|
||||
if (_toolbarTextColor == value)
|
||||
@@ -195,16 +220,12 @@ namespace mRemoteNG.Themes
|
||||
#endregion
|
||||
|
||||
#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"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConnectionsPanelBackgroundColor")]
|
||||
public Color ConnectionsPanelBackgroundColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _connectionsPanelBackgroundColor;
|
||||
}
|
||||
get { return _connectionsPanelBackgroundColor; }
|
||||
set
|
||||
{
|
||||
if (_connectionsPanelBackgroundColor == value || value.A < 255)
|
||||
@@ -215,17 +236,13 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConnectionsPanelBackgroundColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _connectionsPanelTextColor; // 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("strThemeNameConnectionsPanelTextColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConnectionsPanelTextColor")]
|
||||
public Color ConnectionsPanelTextColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _connectionsPanelTextColor;
|
||||
}
|
||||
get { return _connectionsPanelTextColor; }
|
||||
set
|
||||
{
|
||||
if (_connectionsPanelTextColor == value)
|
||||
@@ -236,8 +253,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConnectionsPanelTextColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _connectionsPanelTreeLineColor; // 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("strThemeNameConnectionsPanelTreeLineColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConnectionsPanelTreeLineColor")]
|
||||
@@ -257,8 +273,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConnectionsPanelTreeLineColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _searchBoxBackgroundColor; // 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("strThemeNameSearchBoxBackgroundColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionSearchBoxBackgroundColor")]
|
||||
@@ -278,8 +293,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("SearchBoxBackgroundColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _searchBoxTextPromptColor; // 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("strThemeNameSearchBoxTextPromptColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionSearchBoxTextPromptColor")]
|
||||
@@ -299,8 +313,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("SearchBoxTextPromptColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _searchBoxTextColor; // 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("strThemeNameSearchBoxTextColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionSearchBoxTextColor")]
|
||||
@@ -323,7 +336,6 @@ namespace mRemoteNG.Themes
|
||||
#endregion
|
||||
|
||||
#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"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConfigPanelBackgroundColor")]
|
||||
@@ -343,8 +355,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConfigPanelBackgroundColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _configPanelTextColor; // 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("strThemeNameConfigPanelTextColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConfigPanelTextColor")]
|
||||
@@ -364,8 +375,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConfigPanelTextColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _configPanelCategoryTextColor; // 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("strThemeNameConfigPanelCategoryTextColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConfigPanelCategoryTextColor")]
|
||||
@@ -385,8 +395,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConfigPanelCategoryTextColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _configPanelHelpBackgroundColor; // 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("strThemeNameConfigPanelHelpBackgroundColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConfigPanelHelpBackgroundColor")]
|
||||
@@ -406,8 +415,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConfigPanelHelpBackgroundColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _configPanelHelpTextColor; // 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("strThemeNameConfigPanelHelpTextColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConfigPanelHelpTextColor")]
|
||||
@@ -427,8 +435,7 @@ namespace mRemoteNG.Themes
|
||||
NotifyPropertyChanged("ConfigPanelHelpTextColor");
|
||||
}
|
||||
}
|
||||
|
||||
private Color _configPanelGridLineColor; // 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("strThemeNameConfigPanelGridLineColor"),
|
||||
LocalizedAttributes.LocalizedDescription("strThemeDescriptionConfigPanelGridLineColor")]
|
||||
|
||||
@@ -7,12 +7,17 @@ using System.IO;
|
||||
namespace mRemoteNG.Themes
|
||||
{
|
||||
public class ThemeManager
|
||||
{
|
||||
{
|
||||
#region Private Variables
|
||||
private static readonly ThemeInfo _defaultTheme = new ThemeInfo(Language.strDefaultTheme);
|
||||
private static ThemeInfo _activeTheme;
|
||||
private static bool _activeThemeHandlerSet = false;
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
public static ThemeInfo LoadTheme(string themeName, bool setActive = true)
|
||||
public static ThemeInfo LoadTheme(string themeName, bool setActive = true)
|
||||
{
|
||||
ThemeInfo loadedTheme = DefaultTheme;
|
||||
|
||||
if (!string.IsNullOrEmpty(themeName))
|
||||
{
|
||||
foreach (ThemeInfo theme in LoadThemes())
|
||||
@@ -72,14 +77,8 @@ namespace mRemoteNG.Themes
|
||||
|
||||
public static event ThemeChangedEventHandler ThemeChanged
|
||||
{
|
||||
add
|
||||
{
|
||||
ThemeChangedEvent = (ThemeChangedEventHandler) System.Delegate.Combine(ThemeChangedEvent, value);
|
||||
}
|
||||
remove
|
||||
{
|
||||
ThemeChangedEvent = (ThemeChangedEventHandler) System.Delegate.Remove(ThemeChangedEvent, value);
|
||||
}
|
||||
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)
|
||||
@@ -94,19 +93,11 @@ namespace mRemoteNG.Themes
|
||||
#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;
|
||||
}
|
||||
get { return _defaultTheme; }
|
||||
}
|
||||
|
||||
private static ThemeInfo _activeTheme;
|
||||
private static bool _activeThemeHandlerSet = false;
|
||||
|
||||
public static ThemeInfo ActiveTheme
|
||||
{
|
||||
get
|
||||
@@ -148,4 +139,4 @@ namespace mRemoteNG.Themes
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -241,10 +241,9 @@ namespace mRemoteNG.Tools
|
||||
{
|
||||
public WINTRUST_DATA()
|
||||
{
|
||||
// VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#.
|
||||
cbStruct = (uint)Marshal.SizeOf(typeof(WINTRUST_DATA));
|
||||
}
|
||||
public UInt32 cbStruct; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors.
|
||||
public UInt32 cbStruct;
|
||||
public IntPtr pPolicyCallbackData;
|
||||
public IntPtr pSIPClientData;
|
||||
public UInt32 dwUIChoice;
|
||||
@@ -263,10 +262,9 @@ namespace mRemoteNG.Tools
|
||||
{
|
||||
public WINTRUST_FILE_INFO()
|
||||
{
|
||||
// VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#.
|
||||
cbStruct = (uint)Marshal.SizeOf(typeof(WINTRUST_FILE_INFO));
|
||||
}
|
||||
public UInt32 cbStruct; // VBConversions Note: Initial value cannot be assigned here since it is non-static. Assignment has been moved to the class constructors.
|
||||
public UInt32 cbStruct;
|
||||
[MarshalAs(UnmanagedType.LPTStr)]public string pcwszFilePath;
|
||||
public IntPtr hFile;
|
||||
public IntPtr pgKnownSubject;
|
||||
|
||||
@@ -1,27 +1,30 @@
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.My;
|
||||
using mRemoteNG.Tools;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace mRemoteNG.Root.PuttySessions
|
||||
{
|
||||
public class Info : Root.Info
|
||||
{
|
||||
public Info() : base(RootType.PuttySessions)
|
||||
{
|
||||
#region Private Variables
|
||||
private string _name;
|
||||
private string _panel;
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public Info() : base(RootType.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.
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
[LocalizedAttributes.LocalizedDefaultValue("strPuttySavedSessionsRootName")]
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
get { return _name; }
|
||||
set
|
||||
{
|
||||
if (_name == value)
|
||||
@@ -37,16 +40,12 @@ namespace mRemoteNG.Root.PuttySessions
|
||||
}
|
||||
}
|
||||
|
||||
private string _panel; // 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),
|
||||
LocalizedAttributes.LocalizedDisplayName("strPropertyNamePanel"),
|
||||
LocalizedAttributes.LocalizedDescription("strPropertyDescriptionPanel")]
|
||||
public string Panel
|
||||
{
|
||||
get
|
||||
{
|
||||
return _panel;
|
||||
}
|
||||
get { return _panel; }
|
||||
set
|
||||
{
|
||||
if (_panel == value)
|
||||
@@ -56,6 +55,7 @@ namespace mRemoteNG.Root.PuttySessions
|
||||
_panel = value;
|
||||
My.Settings.Default.PuttySavedSessionsPanel = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,26 @@
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.Tools;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace mRemoteNG.Root
|
||||
{
|
||||
[DefaultProperty("Name")]
|
||||
public class Info
|
||||
{
|
||||
{
|
||||
#region Private Properties
|
||||
private string _name;
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public Info(RootType rootType)
|
||||
public Info(RootType rootType)
|
||||
{
|
||||
// VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#.
|
||||
_name = My.Language.strConnections;
|
||||
|
||||
Type = rootType;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#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),
|
||||
LocalizedAttributes.LocalizedDefaultValue("strConnections"),
|
||||
@@ -27,10 +28,7 @@ namespace mRemoteNG.Root
|
||||
LocalizedAttributes.LocalizedDescription("strPropertyDescriptionName")]
|
||||
public virtual string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
get { return _name; }
|
||||
set
|
||||
{
|
||||
if (_name == value)
|
||||
@@ -71,4 +69,4 @@ namespace mRemoteNG.Root
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using Microsoft.VisualBasic;
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace mRemoteNG.Tree
|
||||
@@ -21,6 +21,11 @@ namespace mRemoteNG.Tree
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Variables
|
||||
private static TreeNode SetNodeToolTip_old_node = null;
|
||||
private static TreeNode treeNodeToBeSelected;
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
private static TreeView _TreeView;
|
||||
public static TreeView TreeView
|
||||
@@ -41,21 +46,6 @@ namespace mRemoteNG.Tree
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
private static TreeNode treeNodeToBeSelected;
|
||||
private delegate void SelectNodeCB();
|
||||
private static void SelectNode()
|
||||
{
|
||||
if (_TreeView.InvokeRequired == true)
|
||||
{
|
||||
SelectNodeCB d = new SelectNodeCB(SelectNode);
|
||||
_TreeView.Invoke(d);
|
||||
}
|
||||
else
|
||||
{
|
||||
_TreeView.SelectedNode = treeNodeToBeSelected;
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetConstantID(TreeNode node)
|
||||
{
|
||||
if (GetNodeType(node) == Type.Connection)
|
||||
@@ -69,7 +59,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static TreeNode GetNodeFromPositionID(int id)
|
||||
{
|
||||
foreach (Connection.Info conI in Runtime.ConnectionList)
|
||||
@@ -89,7 +79,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static TreeNode GetNodeFromConstantID(string id)
|
||||
{
|
||||
foreach (Connection.Info conI in Runtime.ConnectionList)
|
||||
@@ -109,7 +99,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static Tree.Node.Type GetNodeType(TreeNode treeNode)
|
||||
{
|
||||
try
|
||||
@@ -152,7 +142,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return Type.None;
|
||||
}
|
||||
|
||||
|
||||
public static Tree.Node.Type GetNodeTypeFromString(string str)
|
||||
{
|
||||
try
|
||||
@@ -174,7 +164,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return Type.None;
|
||||
}
|
||||
|
||||
|
||||
public static TreeNode Find(TreeNode treeNode, string searchFor)
|
||||
{
|
||||
TreeNode tmpNode = default(TreeNode);
|
||||
@@ -204,7 +194,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static TreeNode Find(TreeNode treeNode, Connection.Info conInfo)
|
||||
{
|
||||
TreeNode tmpNode = default(TreeNode);
|
||||
@@ -234,7 +224,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static bool IsEmpty(TreeNode treeNode)
|
||||
{
|
||||
try
|
||||
@@ -251,9 +241,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static TreeNode AddNode(Type nodeType, string name = null)
|
||||
{
|
||||
try
|
||||
@@ -300,7 +288,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static void CloneNode(TreeNode oldTreeNode, TreeNode parentNode = null)
|
||||
{
|
||||
try
|
||||
@@ -377,31 +365,12 @@ namespace mRemoteNG.Tree
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.WarningMsg, string.Format(My.Language.strErrorCloneNodeFailed, ex.Message));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void SetNodeImage(TreeNode treeNode, Images.Enums.TreeImage Img)
|
||||
{
|
||||
SetNodeImageIndex(treeNode, (int)Img);
|
||||
}
|
||||
|
||||
private delegate void SetNodeImageIndexDelegate(TreeNode treeNode, int imageIndex);
|
||||
private static void SetNodeImageIndex(TreeNode treeNode, int imageIndex)
|
||||
{
|
||||
if (treeNode == null || treeNode.TreeView == null)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
if (treeNode.TreeView.InvokeRequired)
|
||||
{
|
||||
treeNode.TreeView.Invoke(new SetNodeImageIndexDelegate(SetNodeImageIndex), new object[] {treeNode, imageIndex});
|
||||
return ;
|
||||
}
|
||||
|
||||
treeNode.ImageIndex = imageIndex;
|
||||
treeNode.SelectedImageIndex = imageIndex;
|
||||
}
|
||||
|
||||
// VBConversions Note: Former VB static variables moved to class level because they aren't supported in C#.
|
||||
static TreeNode SetNodeToolTip_old_node = default(TreeNode);
|
||||
|
||||
public static void SetNodeToolTip(MouseEventArgs e, ToolTip tTip)
|
||||
{
|
||||
try
|
||||
@@ -409,9 +378,8 @@ namespace mRemoteNG.Tree
|
||||
if (My.Settings.Default.ShowDescriptionTooltipsInTree)
|
||||
{
|
||||
//Find the node under the mouse.
|
||||
// static TreeNode old_node = default(TreeNode); VBConversions Note: Static variable moved to class level and renamed SetNodeToolTip_old_node. Local static variables are not supported in C#.
|
||||
TreeNode new_node = _TreeView.GetNodeAt(e.X, e.Y);
|
||||
if (new_node == SetNodeToolTip_old_node)
|
||||
if (new_node.Equals(SetNodeToolTip_old_node))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -437,8 +405,7 @@ namespace mRemoteNG.Tree
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "SetNodeToolTip failed" + Constants.vbNewLine + ex.Message, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void DeleteSelectedNode()
|
||||
{
|
||||
try
|
||||
@@ -490,7 +457,7 @@ namespace mRemoteNG.Tree
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "Deleting selected node failed" + Constants.vbNewLine + ex.Message, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void StartRenameSelectedNode()
|
||||
{
|
||||
if (SelectedNode != null)
|
||||
@@ -498,7 +465,7 @@ namespace mRemoteNG.Tree
|
||||
SelectedNode.BeginEdit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void FinishRenameSelectedNode(string newName)
|
||||
{
|
||||
if (newName == null)
|
||||
@@ -520,7 +487,7 @@ namespace mRemoteNG.Tree
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void MoveNodeUp()
|
||||
{
|
||||
try
|
||||
@@ -546,7 +513,7 @@ namespace mRemoteNG.Tree
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "MoveNodeUp failed" + Constants.vbNewLine + ex.Message, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void MoveNodeDown()
|
||||
{
|
||||
try
|
||||
@@ -572,14 +539,14 @@ namespace mRemoteNG.Tree
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "MoveNodeDown failed" + Constants.vbNewLine + ex.Message, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void ExpandAllNodes()
|
||||
{
|
||||
TreeView.BeginUpdate();
|
||||
TreeView.ExpandAll();
|
||||
TreeView.EndUpdate();
|
||||
}
|
||||
|
||||
|
||||
public static void CollapseAllNodes()
|
||||
{
|
||||
TreeView.BeginUpdate();
|
||||
@@ -589,7 +556,7 @@ namespace mRemoteNG.Tree
|
||||
}
|
||||
TreeView.EndUpdate();
|
||||
}
|
||||
|
||||
|
||||
public static void Sort(TreeNode treeNode, System.Windows.Forms.SortOrder sorting)
|
||||
{
|
||||
if (TreeView == null)
|
||||
@@ -623,44 +590,7 @@ namespace mRemoteNG.Tree
|
||||
|
||||
TreeView.EndUpdate();
|
||||
}
|
||||
|
||||
// Adapted from http://www.codeproject.com/Tips/252234/ASP-NET-TreeView-Sort
|
||||
private static void Sort(TreeNode treeNode, Tools.Controls.TreeNodeSorter nodeSorter)
|
||||
{
|
||||
foreach (TreeNode childNode in treeNode.Nodes)
|
||||
{
|
||||
Sort(childNode, nodeSorter);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
List<TreeNode> sortedNodes = new List<TreeNode>();
|
||||
TreeNode currentNode = null;
|
||||
while (treeNode.Nodes.Count > 0)
|
||||
{
|
||||
foreach (TreeNode childNode in treeNode.Nodes)
|
||||
{
|
||||
if (currentNode == null || nodeSorter.Compare(childNode, currentNode) < 0)
|
||||
{
|
||||
currentNode = childNode;
|
||||
}
|
||||
}
|
||||
treeNode.Nodes.Remove(currentNode);
|
||||
sortedNodes.Add(currentNode);
|
||||
currentNode = null;
|
||||
}
|
||||
|
||||
foreach (TreeNode childNode in sortedNodes)
|
||||
{
|
||||
treeNode.Nodes.Add(childNode);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "Sort nodes failed" + Constants.vbNewLine + ex.Message, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private delegate void ResetTreeDelegate();
|
||||
public static void ResetTree()
|
||||
{
|
||||
@@ -678,5 +608,75 @@ namespace mRemoteNG.Tree
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
private delegate void SelectNodeCB();
|
||||
private static void SelectNode()
|
||||
{
|
||||
if (_TreeView.InvokeRequired == true)
|
||||
{
|
||||
SelectNodeCB d = new SelectNodeCB(SelectNode);
|
||||
_TreeView.Invoke(d);
|
||||
}
|
||||
else
|
||||
{
|
||||
_TreeView.SelectedNode = treeNodeToBeSelected;
|
||||
}
|
||||
}
|
||||
|
||||
private delegate void SetNodeImageIndexDelegate(TreeNode treeNode, int imageIndex);
|
||||
private static void SetNodeImageIndex(TreeNode treeNode, int imageIndex)
|
||||
{
|
||||
if (treeNode == null || treeNode.TreeView == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (treeNode.TreeView.InvokeRequired)
|
||||
{
|
||||
treeNode.TreeView.Invoke(new SetNodeImageIndexDelegate(SetNodeImageIndex), new object[] { treeNode, imageIndex });
|
||||
return;
|
||||
}
|
||||
|
||||
treeNode.ImageIndex = imageIndex;
|
||||
treeNode.SelectedImageIndex = imageIndex;
|
||||
}
|
||||
|
||||
// Adapted from http://www.codeproject.com/Tips/252234/ASP-NET-TreeView-Sort
|
||||
private static void Sort(TreeNode treeNode, Tools.Controls.TreeNodeSorter nodeSorter)
|
||||
{
|
||||
foreach (TreeNode childNode in treeNode.Nodes)
|
||||
{
|
||||
Sort(childNode, nodeSorter);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
List<TreeNode> sortedNodes = new List<TreeNode>();
|
||||
TreeNode currentNode = null;
|
||||
while (treeNode.Nodes.Count > 0)
|
||||
{
|
||||
foreach (TreeNode childNode in treeNode.Nodes)
|
||||
{
|
||||
if (currentNode == null || nodeSorter.Compare(childNode, currentNode) < 0)
|
||||
{
|
||||
currentNode = childNode;
|
||||
}
|
||||
}
|
||||
treeNode.Nodes.Remove(currentNode);
|
||||
sortedNodes.Add(currentNode);
|
||||
currentNode = null;
|
||||
}
|
||||
|
||||
foreach (TreeNode childNode in sortedNodes)
|
||||
{
|
||||
treeNode.Nodes.Add(childNode);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "Sort nodes failed" + Constants.vbNewLine + ex.Message, true);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -6,66 +6,49 @@ using System.ComponentModel;
|
||||
namespace mRemoteNG.Controls
|
||||
{
|
||||
public class ListView : System.Windows.Forms.ListView
|
||||
{
|
||||
{
|
||||
#region Private Variables
|
||||
private bool _ShowFocusCues;
|
||||
private Alignment _LabelAlignment;
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
[Category("Appearance"), DefaultValue(typeof(Color), "HighlightText")]
|
||||
public Color HighlightForeColor {get; set;}
|
||||
[Category("Appearance"), DefaultValue(typeof(Color), "HighlightText")]
|
||||
public Color HighlightForeColor { get; set; }
|
||||
|
||||
[Category("Appearance"), DefaultValue(typeof(Color), "Highlight")]
|
||||
public Color HighlightBackColor {get; set;}
|
||||
public Color HighlightBackColor { get; set; }
|
||||
|
||||
[Category("Appearance"), DefaultValue(typeof(Color), "HotTrack")]
|
||||
public Color HighlightBorderColor {get; set;}
|
||||
public Color HighlightBorderColor { get; set; }
|
||||
|
||||
[Category("Appearance"), DefaultValue(typeof(Color), "ControlText")]
|
||||
public Color InactiveHighlightForeColor {get; set;}
|
||||
public Color InactiveHighlightForeColor { get; set; }
|
||||
|
||||
[Category("Appearance"), DefaultValue(typeof(Color), "Control")]
|
||||
public Color InactiveHighlightBackColor {get; set;}
|
||||
public Color InactiveHighlightBackColor { get; set; }
|
||||
|
||||
[Category("Appearance"), DefaultValue(typeof(Color), "ControlDark")]
|
||||
public Color InactiveHighlightBorderColor {get; set;}
|
||||
|
||||
[Category("Appearance"), DefaultValue(true)]
|
||||
private bool _ShowFocusCues = true;
|
||||
public new bool ShowFocusCues
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ShowFocusCues;
|
||||
}
|
||||
set
|
||||
{
|
||||
_ShowFocusCues = value;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Appearance")]
|
||||
private Alignment _LabelAlignment = new Alignment(VerticalAlignment.Top, HorizontalAlignment.Left);
|
||||
public Alignment LabelAlignment
|
||||
{
|
||||
get
|
||||
{
|
||||
return _LabelAlignment;
|
||||
}
|
||||
set
|
||||
{
|
||||
_LabelAlignment = value;
|
||||
}
|
||||
}
|
||||
public Color InactiveHighlightBorderColor { get; set; }
|
||||
|
||||
[Category("Appearance"), DefaultValue(true)]
|
||||
public new bool ShowFocusCues { get; set; }
|
||||
|
||||
[Category("Appearance")]
|
||||
public Alignment LabelAlignment { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public ListView()
|
||||
{
|
||||
// VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#.
|
||||
ShowFocusCues = true;
|
||||
LabelAlignment = new Alignment(VerticalAlignment.Top, HorizontalAlignment.Left);
|
||||
HighlightForeColor = SystemColors.HighlightText;
|
||||
HighlightBackColor = SystemColors.Highlight;
|
||||
HighlightBorderColor = SystemColors.HotTrack;
|
||||
InactiveHighlightForeColor = SystemColors.ControlText;
|
||||
InactiveHighlightBackColor = SystemColors.Control;
|
||||
InactiveHighlightBorderColor = SystemColors.ControlDark;
|
||||
|
||||
OwnerDraw = true;
|
||||
}
|
||||
#endregion
|
||||
@@ -172,7 +155,6 @@ namespace mRemoteNG.Controls
|
||||
private StringFormat GetStringFormat()
|
||||
{
|
||||
StringFormat format = StringFormat.GenericDefault;
|
||||
|
||||
switch (LabelAlignment.Vertical)
|
||||
{
|
||||
case VerticalAlignment.Top:
|
||||
@@ -213,7 +195,7 @@ namespace mRemoteNG.Controls
|
||||
{
|
||||
format.FormatFlags = (System.Drawing.StringFormatFlags) (format.FormatFlags | StringFormatFlags.NoWrap);
|
||||
}
|
||||
|
||||
|
||||
return format;
|
||||
}
|
||||
#endregion
|
||||
@@ -221,53 +203,52 @@ namespace mRemoteNG.Controls
|
||||
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class Alignment
|
||||
{
|
||||
public Alignment()
|
||||
{
|
||||
#region Private Properties
|
||||
[DefaultValue(VerticalAlignment.Top)]
|
||||
private VerticalAlignment _Vertical = VerticalAlignment.Top;
|
||||
[DefaultValue(HorizontalAlignment.Left)]
|
||||
private HorizontalAlignment _Horizontal = HorizontalAlignment.Left;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public Alignment()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Alignment(VerticalAlignment verticalAlignment, HorizontalAlignment horizontalAlignment)
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
public Alignment(VerticalAlignment verticalAlignment, HorizontalAlignment horizontalAlignment)
|
||||
{
|
||||
Vertical = verticalAlignment;
|
||||
Horizontal = horizontalAlignment;
|
||||
}
|
||||
|
||||
[DefaultValue(VerticalAlignment.Top)]
|
||||
private VerticalAlignment _Vertical = VerticalAlignment.Top;
|
||||
|
||||
public VerticalAlignment Vertical
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Vertical;
|
||||
}
|
||||
set
|
||||
{
|
||||
_Vertical = value;
|
||||
}
|
||||
get { return _Vertical; }
|
||||
set { _Vertical = value; }
|
||||
}
|
||||
|
||||
[DefaultValue(HorizontalAlignment.Left)]
|
||||
private HorizontalAlignment _Horizontal = HorizontalAlignment.Left;
|
||||
|
||||
public HorizontalAlignment Horizontal
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Horizontal;
|
||||
}
|
||||
set
|
||||
{
|
||||
_Horizontal = value;
|
||||
}
|
||||
get { return _Horizontal; }
|
||||
set { _Horizontal = value; }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0}, {1}", Vertical, Horizontal);
|
||||
}
|
||||
}
|
||||
|
||||
public enum VerticalAlignment
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region Enums
|
||||
public enum VerticalAlignment
|
||||
{
|
||||
Top,
|
||||
Middle,
|
||||
@@ -280,4 +261,5 @@ namespace mRemoteNG.Controls
|
||||
Center,
|
||||
Right
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
11
mRemoteV1/UI/Forms/OptionsForm.Designer.cs
generated
@@ -2,12 +2,12 @@
|
||||
|
||||
namespace mRemoteNG.Forms
|
||||
{
|
||||
[global::Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]public
|
||||
partial class OptionsForm : System.Windows.Forms.Form
|
||||
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)
|
||||
[System.Diagnostics.DebuggerNonUserCode()]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -28,7 +28,8 @@ namespace mRemoteNG.Forms
|
||||
//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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsForm));
|
||||
mRemoteNG.Controls.Alignment Alignment2 = new mRemoteNG.Controls.Alignment();
|
||||
@@ -102,4 +103,4 @@ namespace mRemoteNG.Forms
|
||||
internal System.Windows.Forms.Button OkButton;
|
||||
internal System.Windows.Forms.Button CancelButtonControl;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.Forms.OptionsPages;
|
||||
using mRemoteNG.App;
|
||||
using mRemoteNG.Forms.OptionsPages;
|
||||
using mRemoteNG.My;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace mRemoteNG.Forms
|
||||
{
|
||||
public partial class OptionsForm
|
||||
{
|
||||
#region Private Fields
|
||||
private Dictionary<OptionsPage, PageInfo> _pages;
|
||||
private ImageList _pageIconImageList;
|
||||
private OptionsPage _startPage;
|
||||
private OptionsPage _selectedPage;
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public OptionsForm()
|
||||
{
|
||||
// This call is required by the designer.
|
||||
InitializeComponent();
|
||||
// Add any initialization after the InitializeComponent() call.
|
||||
|
||||
Runtime.FontOverride(this);
|
||||
|
||||
|
||||
_pages = new Dictionary<OptionsPage, PageInfo>();
|
||||
_pageIconImageList = new ImageList();
|
||||
_selectedPage = null;
|
||||
|
||||
Runtime.FontOverride(this);
|
||||
_pages.Add(new Forms.OptionsPages.StartupExitPage(), new PageInfo());
|
||||
_pages.Add(new AppearancePage(), new PageInfo());
|
||||
_pages.Add(new TabsPanelsPage(), new PageInfo());
|
||||
@@ -28,9 +38,7 @@ namespace mRemoteNG.Forms
|
||||
_pages.Add(new ThemePage(), new PageInfo());
|
||||
_pages.Add(new KeyboardPage(), new PageInfo());
|
||||
_pages.Add(new AdvancedPage(), new PageInfo());
|
||||
|
||||
_startPage = GetPageFromType(typeof(Forms.OptionsPages.StartupExitPage));
|
||||
|
||||
_pageIconImageList.ColorDepth = ColorDepth.Depth32Bit;
|
||||
PageListView.LargeImageList = _pageIconImageList;
|
||||
}
|
||||
@@ -43,15 +51,7 @@ namespace mRemoteNG.Forms
|
||||
return ShowDialog(ownerWindow);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Private Fields
|
||||
private Dictionary<OptionsPage, PageInfo> _pages = new Dictionary<OptionsPage, PageInfo>();
|
||||
private ImageList _pageIconImageList = new ImageList();
|
||||
|
||||
private OptionsPage _startPage;
|
||||
private OptionsPage _selectedPage = null;
|
||||
#endregion
|
||||
|
||||
|
||||
#region Private Methods
|
||||
#region Event Handlers
|
||||
public void OptionsForm_Load(System.Object sender, EventArgs e)
|
||||
@@ -63,10 +63,8 @@ namespace mRemoteNG.Forms
|
||||
_pageIconImageList.Images.Add(pageInfo.IconKey, page.PageIcon);
|
||||
pageInfo.ListViewItem = PageListView.Items.Add(page.PageName, pageInfo.IconKey);
|
||||
}
|
||||
|
||||
ApplyLanguage();
|
||||
LoadSettings();
|
||||
|
||||
ShowPage(_startPage);
|
||||
}
|
||||
|
||||
@@ -255,4 +253,4 @@ namespace mRemoteNG.Forms
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,11 @@
|
||||
|
||||
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)
|
||||
[System.Diagnostics.DebuggerNonUserCode()]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -28,7 +27,8 @@ namespace mRemoteNG.Forms.OptionsPages
|
||||
//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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AdvancedPage));
|
||||
this.chkWriteLogFile = new System.Windows.Forms.CheckBox();
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using mRemoteNG.My;
|
||||
using mRemoteNG.Connection.Protocol;
|
||||
using mRemoteNG.My;
|
||||
using mRemoteNG.Tools;
|
||||
using PSTaskDialog;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace mRemoteNG.Forms.OptionsPages
|
||||
|
||||
@@ -632,169 +632,169 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Help\CMDSwitches.htm">
|
||||
<Content Include="Resources\Help\CMDSwitches.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Config.htm">
|
||||
<Content Include="Resources\Help\Config.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Configuration.htm">
|
||||
<Content Include="Resources\Help\Configuration.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Connection.htm">
|
||||
<Content Include="Resources\Help\Connection.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Connections.htm">
|
||||
<Content Include="Resources\Help\Connections.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\ConfigurationSQL.htm">
|
||||
<Content Include="Resources\Help\ConfigurationSQL.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Index.htm">
|
||||
<Content Include="Resources\Help\Index.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\PortScan.htm">
|
||||
<Content Include="Resources\Help\PortScan.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\ExternalTools.htm">
|
||||
<Content Include="Resources\Help\ExternalTools.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\ErrorsAndInfos.htm">
|
||||
<Content Include="Resources\Help\ErrorsAndInfos.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\ImportFromAD.htm">
|
||||
<Content Include="Resources\Help\ImportFromAD.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Installation.htm">
|
||||
<Content Include="Resources\Help\Installation.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Introduction.htm">
|
||||
<Content Include="Resources\Help\Introduction.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\MainMenu.htm">
|
||||
<Content Include="Resources\Help\MainMenu.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Options.htm">
|
||||
<Content Include="Resources\Help\Options.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Prerequisites.htm">
|
||||
<Content Include="Resources\Help\Prerequisites.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\QuickConnect.htm">
|
||||
<Content Include="Resources\Help\QuickConnect.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\QuickReference.htm">
|
||||
<Content Include="Resources\Help\QuickReference.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\SaveAsExport.htm">
|
||||
<Content Include="Resources\Help\SaveAsExport.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\ScreenshotManager.htm">
|
||||
<Content Include="Resources\Help\ScreenshotManager.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\01.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\01.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\02.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\02.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\03.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\03.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\04.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\04.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\05.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\05.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\06.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\06.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\07.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\07.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\08.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\08.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\09.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\09.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\10.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\10.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\11.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\11.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\12.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\12.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\13.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\13.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\14.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\14.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\15.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\15.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\16.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\16.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Configuration\17.png">
|
||||
<Content Include="Resources\Help\Screenshots\Configuration\17.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\01.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\01.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\02.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\02.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\03.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\03.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\04.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\04.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\05.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\05.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\06.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\06.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\07.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\07.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\External Tools\08.png">
|
||||
<Content Include="Resources\Help\Screenshots\External Tools\08.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Main Menu\File.png">
|
||||
<Content Include="Resources\Help\Screenshots\Main Menu\File.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Main Menu\Info.png">
|
||||
<Content Include="Resources\Help\Screenshots\Main Menu\Info.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Main Menu\QuickConnect.png">
|
||||
<Content Include="Resources\Help\Screenshots\Main Menu\QuickConnect.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Main Menu\Tools.png">
|
||||
<Content Include="Resources\Help\Screenshots\Main Menu\Tools.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Main Menu\View.png">
|
||||
<Content Include="Resources\Help\Screenshots\Main Menu\View.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Screenshots\Reference\01.png">
|
||||
<Content Include="Resources\Help\Screenshots\Reference\01.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Sessions.htm">
|
||||
<Content Include="Resources\Help\Sessions.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\SQLScript.txt">
|
||||
<Content Include="Resources\Help\SQLScript.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\SSHFileTransfer.htm">
|
||||
<Content Include="Resources\Help\SSHFileTransfer.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Help\Update.htm">
|
||||
<Content Include="Resources\Help\Update.htm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Resources\Icons\RDCMan_Icon.ico" />
|
||||
@@ -808,10 +808,10 @@
|
||||
<None Include="Resources\Images_FamFamFam\user_comment.png" />
|
||||
<None Include="Resources\Images_FamFamFam\key_delete.png" />
|
||||
<None Include="Resources\Images\PuttySessions.png" />
|
||||
<None Include="Notes\Help.txt" />
|
||||
<None Include="Notes\ICA.txt" />
|
||||
<None Include="Notes\Misc.txt" />
|
||||
<None Include="Notes\PropertyList.csv" />
|
||||
<None Include="Resources\Notes\Help.txt" />
|
||||
<None Include="Resources\Notes\ICA.txt" />
|
||||
<None Include="Resources\Notes\Misc.txt" />
|
||||
<None Include="Resources\Notes\PropertyList.csv" />
|
||||
<None Include="Resources\Images\PuttyConfig.png" />
|
||||
<None Include="Resources\Images\Play_Quick.png" />
|
||||
<None Include="Resources\Icons\Play_Quick_Icon.ico" />
|
||||
@@ -838,8 +838,8 @@
|
||||
<None Include="Resources\Images\Duplicate.png" />
|
||||
<None Include="Resources\Images\PortScan.png" />
|
||||
<None Include="Resources\Icons\PortScan_Icon.ico" />
|
||||
<None Include="Notes\MultiLang.txt" />
|
||||
<None Include="Notes\MultiUserCons.txt" />
|
||||
<None Include="Resources\Notes\MultiLang.txt" />
|
||||
<None Include="Resources\Notes\MultiUserCons.txt" />
|
||||
<None Include="Resources\Images_FamFamFam\Copy.png" />
|
||||
<None Include="Resources\Images_FamFamFam\Delete.png" />
|
||||
<None Include="Resources\Icons_FamFamFam\Config_Icon.ico" />
|
||||
@@ -905,7 +905,7 @@
|
||||
<None Include="Resources\Images_FamFamFam\Chat.png" />
|
||||
<None Include="Resources\Icons_FamFamFam\Panels_Icon.ico" />
|
||||
<None Include="Resources\Images_FamFamFam\JumpTo.png" />
|
||||
<None Include="Notes\PropertyList.txt" />
|
||||
<None Include="Resources\Notes\PropertyList.txt" />
|
||||
<None Include="Resources\Images_FamFamFam\Monitor_GoTo.png" />
|
||||
<None Include="Resources\Images_FamFamFam\Monitor.png" />
|
||||
<None Include="Resources\Icons\UVNC_SC_Icon.ico" />
|
||||
@@ -918,7 +918,7 @@
|
||||
<None Include="Resources\Images_FamFamFam\News.png" />
|
||||
<None Include="Resources\Announcement\mRemote_Announcement.txt" />
|
||||
<None Include="Resources\Update\mRemote_Update.txt" />
|
||||
<Content Include="Help\Main.css">
|
||||
<Content Include="Resources\Help\Main.css">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Icons\Anti Virus.ico">
|
||||
|
||||