mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
started building new options page for messages
This commit is contained in:
@@ -28,7 +28,8 @@ namespace mRemoteNG.App
|
||||
private void Initialize()
|
||||
{
|
||||
XmlConfigurator.Configure();
|
||||
var logFile = BuildLogFilePath();
|
||||
if (string.IsNullOrEmpty(Settings.Default.LogFilePath))
|
||||
Settings.Default.LogFilePath = BuildLogFilePath();
|
||||
|
||||
var repository = LogManager.GetRepository();
|
||||
var appenders = repository.GetAppenders();
|
||||
@@ -37,7 +38,7 @@ namespace mRemoteNG.App
|
||||
{
|
||||
var fileAppender = (RollingFileAppender)appender;
|
||||
if (fileAppender == null || fileAppender.Name != "LogFileAppender") continue;
|
||||
fileAppender.File = logFile;
|
||||
fileAppender.File = Settings.Default.LogFilePath;
|
||||
fileAppender.ActivateOptions();
|
||||
}
|
||||
_log = LogManager.GetLogger("Logger");
|
||||
|
||||
50
mRemoteV1/Properties/Settings.Designer.cs
generated
50
mRemoteV1/Properties/Settings.Designer.cs
generated
@@ -443,42 +443,6 @@ namespace mRemoteNG {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[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.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string ConDefaultPassword {
|
||||
get {
|
||||
return ((string)(this["ConDefaultPassword"]));
|
||||
}
|
||||
set {
|
||||
this["ConDefaultPassword"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[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.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("RDP")]
|
||||
@@ -2386,7 +2350,7 @@ namespace mRemoteNG {
|
||||
this["InhDefaultRDPAlertIdleTimeout"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
@@ -2410,5 +2374,17 @@ namespace mRemoteNG {
|
||||
this["ConDefaultCredentialRecord"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string LogFilePath {
|
||||
get {
|
||||
return ((string)(this["LogFilePath"]));
|
||||
}
|
||||
set {
|
||||
this["LogFilePath"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -590,5 +590,8 @@
|
||||
<Setting Name="ConDefaultCredentialRecord" Type="System.Guid" Scope="User">
|
||||
<Value Profile="(Default)">00000000-0000-0000-0000-000000000000</Value>
|
||||
</Setting>
|
||||
<Setting Name="LogFilePath" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
</SettingsFile>
|
||||
BIN
mRemoteV1/Resources/Icons_FamFamFam/comments.ico
Normal file
BIN
mRemoteV1/Resources/Icons_FamFamFam/comments.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -6875,15 +6875,6 @@ namespace mRemoteNG {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Use only Notifications panel (no messagebox popups).
|
||||
/// </summary>
|
||||
internal static string strUseOnlyErrorsAndInfosPanel {
|
||||
get {
|
||||
return ResourceManager.GetString("strUseOnlyErrorsAndInfosPanel", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to User.
|
||||
/// </summary>
|
||||
|
||||
@@ -2301,9 +2301,6 @@ mRemoteNG will now quit and begin with the installation.</value>
|
||||
<data name="strUseDifferentUsernameAndPassword" xml:space="preserve">
|
||||
<value>Use a different username and password</value>
|
||||
</data>
|
||||
<data name="strUseOnlyErrorsAndInfosPanel" xml:space="preserve">
|
||||
<value>Use only Notifications panel (no messagebox popups)</value>
|
||||
</data>
|
||||
<data name="strUser" xml:space="preserve">
|
||||
<value>User</value>
|
||||
</data>
|
||||
|
||||
325
mRemoteV1/UI/Forms/OptionsPages/MessagesPage.Designer.cs
generated
Normal file
325
mRemoteV1/UI/Forms/OptionsPages/MessagesPage.Designer.cs
generated
Normal file
@@ -0,0 +1,325 @@
|
||||
|
||||
|
||||
namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
{
|
||||
|
||||
public partial class MessagesPage : 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(MessagesPage));
|
||||
this.lblSwitchToErrorsAndInfos = new System.Windows.Forms.Label();
|
||||
this.chkMCInformation = new System.Windows.Forms.CheckBox();
|
||||
this.chkMCErrors = new System.Windows.Forms.CheckBox();
|
||||
this.chkMCWarnings = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.chkMCDebug = new System.Windows.Forms.CheckBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.chkShowErrorInMC = new System.Windows.Forms.CheckBox();
|
||||
this.chkShowWarningInMC = new System.Windows.Forms.CheckBox();
|
||||
this.chkShowInfoInMC = new System.Windows.Forms.CheckBox();
|
||||
this.chkShowDebugInMC = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxLogging = new System.Windows.Forms.GroupBox();
|
||||
this.labelLogFilePath = new System.Windows.Forms.Label();
|
||||
this.textBoxLogPath = new System.Windows.Forms.TextBox();
|
||||
this.saveFileDialogLogging = new System.Windows.Forms.SaveFileDialog();
|
||||
this.labelLogTheseMsgTypes = new System.Windows.Forms.Label();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox3 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox4 = new System.Windows.Forms.CheckBox();
|
||||
this.buttonSelectLogPath = new System.Windows.Forms.Button();
|
||||
this.buttonOpenLog = new System.Windows.Forms.Button();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBoxLogging.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblSwitchToErrorsAndInfos
|
||||
//
|
||||
this.lblSwitchToErrorsAndInfos.AutoSize = true;
|
||||
this.lblSwitchToErrorsAndInfos.Location = new System.Drawing.Point(177, 26);
|
||||
this.lblSwitchToErrorsAndInfos.Name = "lblSwitchToErrorsAndInfos";
|
||||
this.lblSwitchToErrorsAndInfos.Size = new System.Drawing.Size(159, 13);
|
||||
this.lblSwitchToErrorsAndInfos.TabIndex = 24;
|
||||
this.lblSwitchToErrorsAndInfos.Text = "Switch to Notifications panel on:";
|
||||
//
|
||||
// chkMCInformation
|
||||
//
|
||||
this.chkMCInformation.AutoSize = true;
|
||||
this.chkMCInformation.Enabled = false;
|
||||
this.chkMCInformation.Location = new System.Drawing.Point(195, 68);
|
||||
this.chkMCInformation.Name = "chkMCInformation";
|
||||
this.chkMCInformation.Size = new System.Drawing.Size(78, 17);
|
||||
this.chkMCInformation.TabIndex = 25;
|
||||
this.chkMCInformation.Text = "Information";
|
||||
this.chkMCInformation.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkMCErrors
|
||||
//
|
||||
this.chkMCErrors.AutoSize = true;
|
||||
this.chkMCErrors.Enabled = false;
|
||||
this.chkMCErrors.Location = new System.Drawing.Point(195, 114);
|
||||
this.chkMCErrors.Name = "chkMCErrors";
|
||||
this.chkMCErrors.Size = new System.Drawing.Size(48, 17);
|
||||
this.chkMCErrors.TabIndex = 27;
|
||||
this.chkMCErrors.Text = "Error";
|
||||
this.chkMCErrors.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkMCWarnings
|
||||
//
|
||||
this.chkMCWarnings.AutoSize = true;
|
||||
this.chkMCWarnings.Enabled = false;
|
||||
this.chkMCWarnings.Location = new System.Drawing.Point(195, 91);
|
||||
this.chkMCWarnings.Name = "chkMCWarnings";
|
||||
this.chkMCWarnings.Size = new System.Drawing.Size(66, 17);
|
||||
this.chkMCWarnings.TabIndex = 26;
|
||||
this.chkMCWarnings.Text = "Warning";
|
||||
this.chkMCWarnings.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.chkMCDebug);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.lblSwitchToErrorsAndInfos);
|
||||
this.groupBox1.Controls.Add(this.chkMCErrors);
|
||||
this.groupBox1.Controls.Add(this.chkShowErrorInMC);
|
||||
this.groupBox1.Controls.Add(this.chkMCInformation);
|
||||
this.groupBox1.Controls.Add(this.chkShowWarningInMC);
|
||||
this.groupBox1.Controls.Add(this.chkMCWarnings);
|
||||
this.groupBox1.Controls.Add(this.chkShowInfoInMC);
|
||||
this.groupBox1.Controls.Add(this.chkShowDebugInMC);
|
||||
this.groupBox1.Location = new System.Drawing.Point(6, 3);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(601, 141);
|
||||
this.groupBox1.TabIndex = 28;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Notifications Panel";
|
||||
//
|
||||
// chkMCDebug
|
||||
//
|
||||
this.chkMCDebug.AutoSize = true;
|
||||
this.chkMCDebug.Enabled = false;
|
||||
this.chkMCDebug.Location = new System.Drawing.Point(195, 45);
|
||||
this.chkMCDebug.Name = "chkMCDebug";
|
||||
this.chkMCDebug.Size = new System.Drawing.Size(58, 17);
|
||||
this.chkMCDebug.TabIndex = 33;
|
||||
this.chkMCDebug.Text = "Debug";
|
||||
this.chkMCDebug.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(6, 26);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(139, 13);
|
||||
this.label1.TabIndex = 29;
|
||||
this.label1.Text = "Show these message types:";
|
||||
//
|
||||
// chkShowErrorInMC
|
||||
//
|
||||
this.chkShowErrorInMC.AutoSize = true;
|
||||
this.chkShowErrorInMC.Location = new System.Drawing.Point(20, 114);
|
||||
this.chkShowErrorInMC.Name = "chkShowErrorInMC";
|
||||
this.chkShowErrorInMC.Size = new System.Drawing.Size(48, 17);
|
||||
this.chkShowErrorInMC.TabIndex = 32;
|
||||
this.chkShowErrorInMC.Text = "Error";
|
||||
this.chkShowErrorInMC.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkShowWarningInMC
|
||||
//
|
||||
this.chkShowWarningInMC.AutoSize = true;
|
||||
this.chkShowWarningInMC.Location = new System.Drawing.Point(20, 91);
|
||||
this.chkShowWarningInMC.Name = "chkShowWarningInMC";
|
||||
this.chkShowWarningInMC.Size = new System.Drawing.Size(66, 17);
|
||||
this.chkShowWarningInMC.TabIndex = 31;
|
||||
this.chkShowWarningInMC.Text = "Warning";
|
||||
this.chkShowWarningInMC.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkShowInfoInMC
|
||||
//
|
||||
this.chkShowInfoInMC.AutoSize = true;
|
||||
this.chkShowInfoInMC.Location = new System.Drawing.Point(20, 68);
|
||||
this.chkShowInfoInMC.Name = "chkShowInfoInMC";
|
||||
this.chkShowInfoInMC.Size = new System.Drawing.Size(78, 17);
|
||||
this.chkShowInfoInMC.TabIndex = 30;
|
||||
this.chkShowInfoInMC.Text = "Information";
|
||||
this.chkShowInfoInMC.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkShowDebugInMC
|
||||
//
|
||||
this.chkShowDebugInMC.AutoSize = true;
|
||||
this.chkShowDebugInMC.Location = new System.Drawing.Point(20, 45);
|
||||
this.chkShowDebugInMC.Name = "chkShowDebugInMC";
|
||||
this.chkShowDebugInMC.Size = new System.Drawing.Size(58, 17);
|
||||
this.chkShowDebugInMC.TabIndex = 29;
|
||||
this.chkShowDebugInMC.Text = "Debug";
|
||||
this.chkShowDebugInMC.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxLogging
|
||||
//
|
||||
this.groupBoxLogging.Controls.Add(this.buttonOpenLog);
|
||||
this.groupBoxLogging.Controls.Add(this.buttonSelectLogPath);
|
||||
this.groupBoxLogging.Controls.Add(this.labelLogTheseMsgTypes);
|
||||
this.groupBoxLogging.Controls.Add(this.checkBox1);
|
||||
this.groupBoxLogging.Controls.Add(this.labelLogFilePath);
|
||||
this.groupBoxLogging.Controls.Add(this.checkBox2);
|
||||
this.groupBoxLogging.Controls.Add(this.textBoxLogPath);
|
||||
this.groupBoxLogging.Controls.Add(this.checkBox3);
|
||||
this.groupBoxLogging.Controls.Add(this.checkBox4);
|
||||
this.groupBoxLogging.Location = new System.Drawing.Point(6, 150);
|
||||
this.groupBoxLogging.Name = "groupBoxLogging";
|
||||
this.groupBoxLogging.Size = new System.Drawing.Size(601, 140);
|
||||
this.groupBoxLogging.TabIndex = 29;
|
||||
this.groupBoxLogging.TabStop = false;
|
||||
this.groupBoxLogging.Text = "Logging";
|
||||
//
|
||||
// labelLogFilePath
|
||||
//
|
||||
this.labelLogFilePath.AutoSize = true;
|
||||
this.labelLogFilePath.Location = new System.Drawing.Point(193, 26);
|
||||
this.labelLogFilePath.Name = "labelLogFilePath";
|
||||
this.labelLogFilePath.Size = new System.Drawing.Size(68, 13);
|
||||
this.labelLogFilePath.TabIndex = 30;
|
||||
this.labelLogFilePath.Text = "Log file path:";
|
||||
//
|
||||
// textBoxLogPath
|
||||
//
|
||||
this.textBoxLogPath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBoxLogPath.Enabled = false;
|
||||
this.textBoxLogPath.Location = new System.Drawing.Point(196, 43);
|
||||
this.textBoxLogPath.Name = "textBoxLogPath";
|
||||
this.textBoxLogPath.ReadOnly = true;
|
||||
this.textBoxLogPath.Size = new System.Drawing.Size(399, 20);
|
||||
this.textBoxLogPath.TabIndex = 0;
|
||||
//
|
||||
// labelLogTheseMsgTypes
|
||||
//
|
||||
this.labelLogTheseMsgTypes.AutoSize = true;
|
||||
this.labelLogTheseMsgTypes.Location = new System.Drawing.Point(6, 26);
|
||||
this.labelLogTheseMsgTypes.Name = "labelLogTheseMsgTypes";
|
||||
this.labelLogTheseMsgTypes.Size = new System.Drawing.Size(130, 13);
|
||||
this.labelLogTheseMsgTypes.TabIndex = 34;
|
||||
this.labelLogTheseMsgTypes.Text = "Log these message types:";
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(20, 114);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(48, 17);
|
||||
this.checkBox1.TabIndex = 38;
|
||||
this.checkBox1.Text = "Error";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox2
|
||||
//
|
||||
this.checkBox2.AutoSize = true;
|
||||
this.checkBox2.Location = new System.Drawing.Point(20, 91);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.Size = new System.Drawing.Size(66, 17);
|
||||
this.checkBox2.TabIndex = 37;
|
||||
this.checkBox2.Text = "Warning";
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox3
|
||||
//
|
||||
this.checkBox3.AutoSize = true;
|
||||
this.checkBox3.Location = new System.Drawing.Point(20, 68);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
this.checkBox3.Size = new System.Drawing.Size(78, 17);
|
||||
this.checkBox3.TabIndex = 36;
|
||||
this.checkBox3.Text = "Information";
|
||||
this.checkBox3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox4
|
||||
//
|
||||
this.checkBox4.AutoSize = true;
|
||||
this.checkBox4.Location = new System.Drawing.Point(20, 45);
|
||||
this.checkBox4.Name = "checkBox4";
|
||||
this.checkBox4.Size = new System.Drawing.Size(58, 17);
|
||||
this.checkBox4.TabIndex = 35;
|
||||
this.checkBox4.Text = "Debug";
|
||||
this.checkBox4.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonSelectLogPath
|
||||
//
|
||||
this.buttonSelectLogPath.Location = new System.Drawing.Point(490, 68);
|
||||
this.buttonSelectLogPath.Name = "buttonSelectLogPath";
|
||||
this.buttonSelectLogPath.Size = new System.Drawing.Size(105, 23);
|
||||
this.buttonSelectLogPath.TabIndex = 30;
|
||||
this.buttonSelectLogPath.Text = "Choose Path";
|
||||
this.buttonSelectLogPath.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonOpenLog
|
||||
//
|
||||
this.buttonOpenLog.Location = new System.Drawing.Point(379, 69);
|
||||
this.buttonOpenLog.Name = "buttonOpenLog";
|
||||
this.buttonOpenLog.Size = new System.Drawing.Size(105, 23);
|
||||
this.buttonOpenLog.TabIndex = 30;
|
||||
this.buttonOpenLog.Text = "Open File";
|
||||
this.buttonOpenLog.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// MessagesPage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.groupBoxLogging);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Name = "MessagesPage";
|
||||
this.PageIcon = ((System.Drawing.Icon)(resources.GetObject("$this.PageIcon")));
|
||||
this.Size = new System.Drawing.Size(610, 489);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.groupBoxLogging.ResumeLayout(false);
|
||||
this.groupBoxLogging.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
internal System.Windows.Forms.Label lblSwitchToErrorsAndInfos;
|
||||
internal System.Windows.Forms.CheckBox chkMCInformation;
|
||||
internal System.Windows.Forms.CheckBox chkMCErrors;
|
||||
internal System.Windows.Forms.CheckBox chkMCWarnings;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
internal System.Windows.Forms.CheckBox chkMCDebug;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.CheckBox chkShowErrorInMC;
|
||||
private System.Windows.Forms.CheckBox chkShowWarningInMC;
|
||||
private System.Windows.Forms.CheckBox chkShowInfoInMC;
|
||||
private System.Windows.Forms.CheckBox chkShowDebugInMC;
|
||||
private System.Windows.Forms.GroupBox groupBoxLogging;
|
||||
private System.Windows.Forms.SaveFileDialog saveFileDialogLogging;
|
||||
private System.Windows.Forms.Label labelLogFilePath;
|
||||
private System.Windows.Forms.TextBox textBoxLogPath;
|
||||
private System.Windows.Forms.Button buttonSelectLogPath;
|
||||
private System.Windows.Forms.Label labelLogTheseMsgTypes;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private System.Windows.Forms.CheckBox checkBox2;
|
||||
private System.Windows.Forms.CheckBox checkBox3;
|
||||
private System.Windows.Forms.CheckBox checkBox4;
|
||||
private System.Windows.Forms.Button buttonOpenLog;
|
||||
}
|
||||
}
|
||||
51
mRemoteV1/UI/Forms/OptionsPages/MessagesPage.cs
Normal file
51
mRemoteV1/UI/Forms/OptionsPages/MessagesPage.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System.Windows.Forms;
|
||||
using mRemoteNG.App;
|
||||
|
||||
namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
{
|
||||
public partial class MessagesPage
|
||||
{
|
||||
public MessagesPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public override string PageName
|
||||
{
|
||||
get { return "Messages"; }
|
||||
set { }
|
||||
}
|
||||
|
||||
public override void ApplyLanguage()
|
||||
{
|
||||
base.ApplyLanguage();
|
||||
|
||||
// notifications panel
|
||||
lblSwitchToErrorsAndInfos.Text = Language.strSwitchToErrorsAndInfos;
|
||||
chkMCInformation.Text = Language.strInformations;
|
||||
chkMCWarnings.Text = Language.strWarnings;
|
||||
chkMCErrors.Text = Language.strErrors;
|
||||
}
|
||||
|
||||
public override void LoadSettings()
|
||||
{
|
||||
base.SaveSettings();
|
||||
// notifications panel
|
||||
chkMCInformation.Checked = Settings.Default.SwitchToMCOnInformation;
|
||||
chkMCWarnings.Checked = Settings.Default.SwitchToMCOnWarning;
|
||||
chkMCErrors.Checked = Settings.Default.SwitchToMCOnError;
|
||||
|
||||
// log file
|
||||
textBoxLogPath.Text = Settings.Default.LogFilePath;
|
||||
}
|
||||
|
||||
public override void SaveSettings()
|
||||
{
|
||||
Settings.Default.SwitchToMCOnInformation = chkMCInformation.Checked;
|
||||
Settings.Default.SwitchToMCOnWarning = chkMCWarnings.Checked;
|
||||
Settings.Default.SwitchToMCOnError = chkMCErrors.Checked;
|
||||
|
||||
Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
148
mRemoteV1/UI/Forms/OptionsPages/MessagesPage.resx
Normal file
148
mRemoteV1/UI/Forms/OptionsPages/MessagesPage.resx
Normal file
@@ -0,0 +1,148 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="saveFileDialogLogging.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.PageIcon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAEBAAAAAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAA
|
||||
AAD///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af//
|
||||
/wH///8B////Af///wH///8B////Af///wH///8BuIdYHbiHWK+4h1gt////Af///wH///8B////Af//
|
||||
/wH///8B////Af///wH///8B////Af///wH///8B////AbiHWA24h1jxuIdY97iHWDP///8B////Af//
|
||||
/wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8BuIdY2eLOuv+4h1j5uIdYMf//
|
||||
/wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8BuIdYVbiHWPH59vH/4s25/7iH
|
||||
WP+4h1jduIdY07iHWJG4h1gP////Af///wG4h1gVuIdYgbiHWCH///8BuIdYh8+ujv/r3tH//fz6//38
|
||||
+v/9+/j/9Ovj//Hn3f/YvqP/uIdY97iHWHP///8BuIdYCbiHWLO4h1i3uIdYJbiHWOn48ez//fv4//jw
|
||||
5//37+b/9+7k//jw6P/48er//fv5//Lp4P+4h1jZ////Af///wG4h1ih4s66vbiHWLm4h1jz+vfy//rz
|
||||
7P/48en/+PDn//fv5v/37uT/9uzi//fv5//07OX/uIdY3////wG4h1g9uIdYq/bw6b3izbm9uIdY+/r2
|
||||
8f/69O7/+fLq//jx6f/48Oj/9+/m//fu5P/48en/8+ri/7iHWNu4h1hlzqyMverczr39/Pq9/fz6vbqL
|
||||
Xfv69vL/+vXv//r07v/68+3/+fPr//ny6//48en/+vXv//Pq4v+4h1jbuIdYrfjx7L39+/m9+PDnvffv
|
||||
5r3FnHXx5NG+//r28v/69vH/+vbx//r18f/69fH/+vXw//bw6f/cxK3/uIdYrbiHWLP69/K9+vPsvfjx
|
||||
6b348Oe95tPAy8Sbc++7jF77u4xf+7uMXvu4h1j5uIdY77iHWO+4h1jluIdYh7iHWCm4h1iz+vbxvfr0
|
||||
7r358uq9+PHpvfjw6L337+a99+7kvfjx6b3z6uK9uIdYo////wH///8B////Af///wH///8BuIdYs/r2
|
||||
8r369e+9+vTuvfrz7b358+u9+fLrvfjx6b369e+98+rivbiHWKP///8B////Af///wH///8B////AbiH
|
||||
WJHk0b69+vbyvfr28b369vG9+vXxvfr18b369fC99vDpvdzErb24h1iB////Af///wH///8B////Af//
|
||||
/wG4h1gpuIdYj7iHWLG4h1ixuIdYsbiHWLG4h1ixuIdYsbiHWKm4h1hjuIdYH////wH///8B////Af//
|
||||
/wH///8BAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA
|
||||
//8AAP//AAD//w==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -30,178 +30,110 @@ namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
//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 = 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();
|
||||
|
||||
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.chkOpenNewTabRightOfSelected = new System.Windows.Forms.CheckBox();
|
||||
this.chkAlwaysShowPanelSelectionDlg = new System.Windows.Forms.CheckBox();
|
||||
this.chkShowLogonInfoOnTabs = new System.Windows.Forms.CheckBox();
|
||||
this.chkDoubleClickClosesTab = 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.Language.strIdentifyQuickConnectTabs;
|
||||
this.chkIdentifyQuickConnectTabs.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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.chkAlwaysShowPanelTabs);
|
||||
this.Controls.Add(this.chkIdentifyQuickConnectTabs);
|
||||
this.Controls.Add(this.chkOpenNewTabRightOfSelected);
|
||||
this.Controls.Add(this.chkAlwaysShowPanelSelectionDlg);
|
||||
this.Controls.Add(this.chkShowLogonInfoOnTabs);
|
||||
this.Controls.Add(this.chkDoubleClickClosesTab);
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
|
||||
namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
{
|
||||
public partial class TabsPanelsPage
|
||||
@@ -26,12 +24,6 @@ namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
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()
|
||||
@@ -45,11 +37,6 @@ namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
chkIdentifyQuickConnectTabs.Checked = Settings.Default.IdentifyQuickConnectTabs;
|
||||
chkDoubleClickClosesTab.Checked = Settings.Default.DoubleClickOnTabClosesIt;
|
||||
chkAlwaysShowPanelSelectionDlg.Checked = Settings.Default.AlwaysShowPanelSelectionDlg;
|
||||
|
||||
chkUseOnlyErrorsAndInfosPanel.Checked = Settings.Default.ShowNoMessageBoxes;
|
||||
chkMCInformation.Checked = Settings.Default.SwitchToMCOnInformation;
|
||||
chkMCWarnings.Checked = Settings.Default.SwitchToMCOnWarning;
|
||||
chkMCErrors.Checked = Settings.Default.SwitchToMCOnError;
|
||||
}
|
||||
|
||||
public override void SaveSettings()
|
||||
@@ -66,19 +53,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
Settings.Default.DoubleClickOnTabClosesIt = chkDoubleClickClosesTab.Checked;
|
||||
Settings.Default.AlwaysShowPanelSelectionDlg = chkAlwaysShowPanelSelectionDlg.Checked;
|
||||
|
||||
Settings.Default.ShowNoMessageBoxes = chkUseOnlyErrorsAndInfosPanel.Checked;
|
||||
Settings.Default.SwitchToMCOnInformation = chkMCInformation.Checked;
|
||||
Settings.Default.SwitchToMCOnWarning = chkMCWarnings.Checked;
|
||||
Settings.Default.SwitchToMCOnError = chkMCErrors.Checked;
|
||||
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void chkUseOnlyErrorsAndInfosPanel_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
chkMCInformation.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked;
|
||||
chkMCWarnings.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked;
|
||||
chkMCErrors.Enabled = chkUseOnlyErrorsAndInfosPanel.Checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -112,12 +112,12 @@
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.PageIcon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
|
||||
@@ -51,6 +51,7 @@ namespace mRemoteNG.UI.Forms
|
||||
{typeof(StartupExitPage).Name, new StartupExitPage()},
|
||||
{typeof(AppearancePage).Name, new AppearancePage()},
|
||||
{typeof(TabsPanelsPage).Name, new TabsPanelsPage()},
|
||||
{typeof(MessagesPage).Name, new MessagesPage()},
|
||||
{typeof(ConnectionsPage).Name, new ConnectionsPage()},
|
||||
{typeof(SqlServerPage).Name, new SqlServerPage()},
|
||||
{typeof(UpdatesPage).Name, new UpdatesPage()},
|
||||
|
||||
@@ -403,18 +403,6 @@
|
||||
<setting name="InhDefaultRDPAuthenticationLevel" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="ConDefaultRDPMinutesToIdleTimeout" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="InhDefaultRDPMinutesToIdleTimeout" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="ConDefaultRDPAlertIdleTimeout" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="InhDefaultRDPAlertIdleTimeout" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="UVNCSCPort" serializeAs="String">
|
||||
<value>5500</value>
|
||||
</setting>
|
||||
@@ -610,18 +598,21 @@
|
||||
<setting name="InhDefaultRDPMinutesToIdleTimeout" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="InhDefaultCredentialRecord" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="ConDefaultRDPAlertIdleTimeout" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="InhDefaultRDPAlertIdleTimeout" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="InhDefaultCredentialRecord" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="ConDefaultCredentialRecord" serializeAs="String">
|
||||
<value>00000000-0000-0000-0000-000000000000</value>
|
||||
</setting>
|
||||
<setting name="LogFilePath" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
</mRemoteNG.Settings>
|
||||
</userSettings>
|
||||
<applicationSettings>
|
||||
|
||||
@@ -346,6 +346,12 @@
|
||||
<Compile Include="UI\Forms\OptionsPages\AppearancePage.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\Forms\OptionsPages\MessagesPage.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\Forms\OptionsPages\MessagesPage.Designer.cs">
|
||||
<DependentUpon>MessagesPage.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\Forms\OptionsPages\ConnectionsPage.Designer.cs">
|
||||
<DependentUpon>ConnectionsPage.cs</DependentUpon>
|
||||
</Compile>
|
||||
@@ -600,6 +606,9 @@
|
||||
<EmbeddedResource Include="UI\Forms\frmOptions.resx">
|
||||
<DependentUpon>frmOptions.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="UI\Forms\OptionsPages\MessagesPage.resx">
|
||||
<DependentUpon>MessagesPage.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="UI\Forms\OptionsPages\OptionsPage.resx">
|
||||
<DependentUpon>OptionsPage.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
Reference in New Issue
Block a user