mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
285 lines
15 KiB
C#
285 lines
15 KiB
C#
|
|
|
|
namespace mRemoteNG.UI.Forms.OptionsPages
|
|
{
|
|
|
|
public sealed partial class SqlServerPage : OptionsPage
|
|
{
|
|
|
|
//UserControl overrides dispose to clean up the component list.
|
|
[System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing)
|
|
{
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
//NOTE: The following procedure is required by the Windows Form Designer
|
|
//It can be modified using the Windows Form Designer.
|
|
//Do not modify it using the code editor.
|
|
[System.Diagnostics.DebuggerStepThrough()]
|
|
private void InitializeComponent()
|
|
{
|
|
// System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SqlServerPage));
|
|
this.lblSQLDatabaseName = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.txtSQLDatabaseName = new mRemoteNG.UI.Controls.Base.NGTextBox();
|
|
this.lblExperimental = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.chkUseSQLServer = new mRemoteNG.UI.Controls.Base.NGCheckBox();
|
|
this.lblSQLUsername = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.txtSQLPassword = new mRemoteNG.UI.Controls.Base.NGTextBox();
|
|
this.lblSQLInfo = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.lblSQLServer = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.txtSQLUsername = new mRemoteNG.UI.Controls.Base.NGTextBox();
|
|
this.txtSQLServer = new mRemoteNG.UI.Controls.Base.NGTextBox();
|
|
this.lblSQLPassword = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.btnTestConnection = new mRemoteNG.UI.Controls.Base.NGButton();
|
|
this.imgConnectionStatus = new System.Windows.Forms.PictureBox();
|
|
this.lblTestConnectionResults = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.chkSQLReadOnly = new mRemoteNG.UI.Controls.Base.NGCheckBox();
|
|
this.lblSQLReadOnly = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.lblSQLType = new mRemoteNG.UI.Controls.Base.NGLabel();
|
|
this.txtSQLType = new mRemoteNG.UI.Controls.Base.NGComboBox();
|
|
((System.ComponentModel.ISupportInitialize)(this.imgConnectionStatus)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// lblSQLDatabaseName
|
|
//
|
|
this.lblSQLDatabaseName.Enabled = false;
|
|
this.lblSQLDatabaseName.Location = new System.Drawing.Point(23, 156);
|
|
this.lblSQLDatabaseName.Name = "lblSQLDatabaseName";
|
|
this.lblSQLDatabaseName.Size = new System.Drawing.Size(111, 13);
|
|
this.lblSQLDatabaseName.TabIndex = 5;
|
|
this.lblSQLDatabaseName.Text = "Database:";
|
|
this.lblSQLDatabaseName.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
|
//
|
|
// txtSQLDatabaseName
|
|
//
|
|
this.txtSQLDatabaseName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.txtSQLDatabaseName.Enabled = false;
|
|
this.txtSQLDatabaseName.Location = new System.Drawing.Point(140, 154);
|
|
this.txtSQLDatabaseName.Name = "txtSQLDatabaseName";
|
|
this.txtSQLDatabaseName.Size = new System.Drawing.Size(153, 22);
|
|
this.txtSQLDatabaseName.TabIndex = 6;
|
|
//
|
|
// lblExperimental
|
|
//
|
|
this.lblExperimental.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.lblExperimental.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World);
|
|
this.lblExperimental.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
|
this.lblExperimental.Location = new System.Drawing.Point(3, 0);
|
|
this.lblExperimental.Name = "lblExperimental";
|
|
this.lblExperimental.Size = new System.Drawing.Size(596, 26);
|
|
this.lblExperimental.TabIndex = 0;
|
|
this.lblExperimental.Text = "EXPERIMENTAL";
|
|
this.lblExperimental.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// chkUseSQLServer
|
|
//
|
|
this.chkUseSQLServer._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER;
|
|
this.chkUseSQLServer.AutoSize = true;
|
|
this.chkUseSQLServer.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.chkUseSQLServer.Location = new System.Drawing.Point(3, 76);
|
|
this.chkUseSQLServer.Name = "chkUseSQLServer";
|
|
this.chkUseSQLServer.Size = new System.Drawing.Size(244, 17);
|
|
this.chkUseSQLServer.TabIndex = 2;
|
|
this.chkUseSQLServer.Text = "Use SQL Server to load && save connections";
|
|
this.chkUseSQLServer.UseVisualStyleBackColor = true;
|
|
this.chkUseSQLServer.CheckedChanged += new System.EventHandler(this.chkUseSQLServer_CheckedChanged);
|
|
//
|
|
// lblSQLUsername
|
|
//
|
|
this.lblSQLUsername.Enabled = false;
|
|
this.lblSQLUsername.Location = new System.Drawing.Point(23, 182);
|
|
this.lblSQLUsername.Name = "lblSQLUsername";
|
|
this.lblSQLUsername.Size = new System.Drawing.Size(111, 13);
|
|
this.lblSQLUsername.TabIndex = 7;
|
|
this.lblSQLUsername.Text = "Username:";
|
|
this.lblSQLUsername.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
|
//
|
|
// txtSQLPassword
|
|
//
|
|
this.txtSQLPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.txtSQLPassword.Enabled = false;
|
|
this.txtSQLPassword.Location = new System.Drawing.Point(140, 206);
|
|
this.txtSQLPassword.Name = "txtSQLPassword";
|
|
this.txtSQLPassword.Size = new System.Drawing.Size(153, 22);
|
|
this.txtSQLPassword.TabIndex = 10;
|
|
this.txtSQLPassword.UseSystemPasswordChar = true;
|
|
//
|
|
// lblSQLInfo
|
|
//
|
|
this.lblSQLInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.lblSQLInfo.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World);
|
|
this.lblSQLInfo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
|
this.lblSQLInfo.Location = new System.Drawing.Point(3, 25);
|
|
this.lblSQLInfo.Name = "lblSQLInfo";
|
|
this.lblSQLInfo.Size = new System.Drawing.Size(596, 26);
|
|
this.lblSQLInfo.TabIndex = 1;
|
|
this.lblSQLInfo.Text = "Please see Help - Getting started - SQL Configuration for more Info!";
|
|
this.lblSQLInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblSQLServer
|
|
//
|
|
this.lblSQLServer.Enabled = false;
|
|
this.lblSQLServer.Location = new System.Drawing.Point(23, 130);
|
|
this.lblSQLServer.Name = "lblSQLServer";
|
|
this.lblSQLServer.Size = new System.Drawing.Size(111, 13);
|
|
this.lblSQLServer.TabIndex = 3;
|
|
this.lblSQLServer.Text = "SQL Server:";
|
|
this.lblSQLServer.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
|
//
|
|
// txtSQLUsername
|
|
//
|
|
this.txtSQLUsername.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.txtSQLUsername.Enabled = false;
|
|
this.txtSQLUsername.Location = new System.Drawing.Point(140, 180);
|
|
this.txtSQLUsername.Name = "txtSQLUsername";
|
|
this.txtSQLUsername.Size = new System.Drawing.Size(153, 22);
|
|
this.txtSQLUsername.TabIndex = 8;
|
|
//
|
|
// txtSQLServer
|
|
//
|
|
this.txtSQLServer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.txtSQLServer.Enabled = false;
|
|
this.txtSQLServer.Location = new System.Drawing.Point(140, 128);
|
|
this.txtSQLServer.Name = "txtSQLServer";
|
|
this.txtSQLServer.Size = new System.Drawing.Size(153, 22);
|
|
this.txtSQLServer.TabIndex = 4;
|
|
//
|
|
// lblSQLPassword
|
|
//
|
|
this.lblSQLPassword.Enabled = false;
|
|
this.lblSQLPassword.Location = new System.Drawing.Point(23, 208);
|
|
this.lblSQLPassword.Name = "lblSQLPassword";
|
|
this.lblSQLPassword.Size = new System.Drawing.Size(111, 13);
|
|
this.lblSQLPassword.TabIndex = 9;
|
|
this.lblSQLPassword.Text = "Password:";
|
|
this.lblSQLPassword.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
|
//
|
|
// btnTestConnection
|
|
//
|
|
this.btnTestConnection._mice = mRemoteNG.UI.Controls.Base.NGButton.MouseState.HOVER;
|
|
this.btnTestConnection.Enabled = false;
|
|
this.btnTestConnection.Location = new System.Drawing.Point(140, 252);
|
|
this.btnTestConnection.Name = "btnTestConnection";
|
|
this.btnTestConnection.Size = new System.Drawing.Size(153, 23);
|
|
this.btnTestConnection.TabIndex = 11;
|
|
this.btnTestConnection.Text = "Test Connection";
|
|
this.btnTestConnection.UseVisualStyleBackColor = true;
|
|
this.btnTestConnection.Click += new System.EventHandler(this.btnTestConnection_Click);
|
|
//
|
|
// imgConnectionStatus
|
|
//
|
|
this.imgConnectionStatus.Image = global::mRemoteNG.Resources.Help;
|
|
this.imgConnectionStatus.Location = new System.Drawing.Point(297, 255);
|
|
this.imgConnectionStatus.Name = "imgConnectionStatus";
|
|
this.imgConnectionStatus.Size = new System.Drawing.Size(16, 16);
|
|
this.imgConnectionStatus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
|
this.imgConnectionStatus.TabIndex = 12;
|
|
this.imgConnectionStatus.TabStop = false;
|
|
//
|
|
// lblTestConnectionResults
|
|
//
|
|
this.lblTestConnectionResults.AutoSize = true;
|
|
this.lblTestConnectionResults.Location = new System.Drawing.Point(137, 278);
|
|
this.lblTestConnectionResults.Name = "lblTestConnectionResults";
|
|
this.lblTestConnectionResults.Size = new System.Drawing.Size(124, 13);
|
|
this.lblTestConnectionResults.TabIndex = 13;
|
|
this.lblTestConnectionResults.Text = "Test connection details";
|
|
//
|
|
// chkSQLReadOnly
|
|
//
|
|
this.chkSQLReadOnly._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER;
|
|
this.chkSQLReadOnly.AutoSize = true;
|
|
this.chkSQLReadOnly.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.chkSQLReadOnly.Location = new System.Drawing.Point(140, 232);
|
|
this.chkSQLReadOnly.Name = "chkSQLReadOnly";
|
|
this.chkSQLReadOnly.Size = new System.Drawing.Size(15, 14);
|
|
this.chkSQLReadOnly.TabIndex = 14;
|
|
this.chkSQLReadOnly.UseVisualStyleBackColor = true;
|
|
//
|
|
// lblSQLReadOnly
|
|
//
|
|
this.lblSQLReadOnly.Enabled = false;
|
|
this.lblSQLReadOnly.Location = new System.Drawing.Point(23, 232);
|
|
this.lblSQLReadOnly.Name = "lblSQLReadOnly";
|
|
this.lblSQLReadOnly.Size = new System.Drawing.Size(111, 13);
|
|
this.lblSQLReadOnly.TabIndex = 15;
|
|
this.lblSQLReadOnly.Text = "Read Only:";
|
|
this.lblSQLReadOnly.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
|
//
|
|
// lblSQLType
|
|
//
|
|
this.lblSQLType.Enabled = false;
|
|
this.lblSQLType.Location = new System.Drawing.Point(23, 106);
|
|
this.lblSQLType.Name = "lblSQLType";
|
|
this.lblSQLType.Size = new System.Drawing.Size(111, 13);
|
|
this.lblSQLType.TabIndex = 20;
|
|
this.lblSQLType.Text = "SQL Server Type:";
|
|
this.lblSQLType.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
|
//
|
|
// txtSQLType
|
|
//
|
|
this.txtSQLType._mice = mRemoteNG.UI.Controls.Base.NGComboBox.MouseState.HOVER;
|
|
this.txtSQLType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.txtSQLType.FormattingEnabled = true;
|
|
this.txtSQLType.Items.AddRange(new object[] {
|
|
"mssql",
|
|
"mysql"});
|
|
this.txtSQLType.Location = new System.Drawing.Point(140, 102);
|
|
this.txtSQLType.Name = "txtSQLType";
|
|
this.txtSQLType.Size = new System.Drawing.Size(153, 21);
|
|
this.txtSQLType.TabIndex = 21;
|
|
//
|
|
// SqlServerPage
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.Controls.Add(this.txtSQLType);
|
|
this.Controls.Add(this.lblSQLType);
|
|
this.Controls.Add(this.lblSQLReadOnly);
|
|
this.Controls.Add(this.chkSQLReadOnly);
|
|
this.Controls.Add(this.lblTestConnectionResults);
|
|
this.Controls.Add(this.imgConnectionStatus);
|
|
this.Controls.Add(this.btnTestConnection);
|
|
this.Controls.Add(this.lblSQLDatabaseName);
|
|
this.Controls.Add(this.txtSQLDatabaseName);
|
|
this.Controls.Add(this.lblExperimental);
|
|
this.Controls.Add(this.chkUseSQLServer);
|
|
this.Controls.Add(this.lblSQLUsername);
|
|
this.Controls.Add(this.txtSQLPassword);
|
|
this.Controls.Add(this.lblSQLInfo);
|
|
this.Controls.Add(this.lblSQLServer);
|
|
this.Controls.Add(this.txtSQLUsername);
|
|
this.Controls.Add(this.txtSQLServer);
|
|
this.Controls.Add(this.lblSQLPassword);
|
|
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Name = "SqlServerPage";
|
|
this.Size = new System.Drawing.Size(610, 490);
|
|
((System.ComponentModel.ISupportInitialize)(this.imgConnectionStatus)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
internal Controls.Base.NGLabel lblSQLDatabaseName;
|
|
internal Controls.Base.NGTextBox txtSQLDatabaseName;
|
|
internal Controls.Base.NGLabel lblExperimental;
|
|
internal Controls.Base.NGCheckBox chkUseSQLServer;
|
|
internal Controls.Base.NGLabel lblSQLUsername;
|
|
internal Controls.Base.NGTextBox txtSQLPassword;
|
|
internal Controls.Base.NGLabel lblSQLInfo;
|
|
internal Controls.Base.NGLabel lblSQLServer;
|
|
internal Controls.Base.NGTextBox txtSQLUsername;
|
|
internal Controls.Base.NGTextBox txtSQLServer;
|
|
internal Controls.Base.NGLabel lblSQLPassword;
|
|
private Controls.Base.NGButton btnTestConnection;
|
|
private System.Windows.Forms.PictureBox imgConnectionStatus;
|
|
private Controls.Base.NGLabel lblTestConnectionResults;
|
|
private Controls.Base.NGCheckBox chkSQLReadOnly;
|
|
internal Controls.Base.NGLabel lblSQLReadOnly;
|
|
internal Controls.Base.NGLabel lblSQLType;
|
|
private Controls.Base.NGComboBox txtSQLType;
|
|
}
|
|
}
|