mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-06 00:13:33 +00:00
Merge branch 'master' into master
This commit is contained in:
1
AddPortMapForm.Designer.cs
generated
1
AddPortMapForm.Designer.cs
generated
@@ -138,7 +138,6 @@
|
||||
resources.GetString("appComboBox.Items4"),
|
||||
resources.GetString("appComboBox.Items5")});
|
||||
this.appComboBox.Name = "appComboBox";
|
||||
this.appComboBox.Sorted = true;
|
||||
this.appComboBox.SelectedIndexChanged += new System.EventHandler(this.appComboBox_SelectedIndexChanged);
|
||||
//
|
||||
// label5
|
||||
|
||||
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
@@ -43,13 +44,25 @@ namespace MeshCentralRouter
|
||||
if (x == 3) { return 4; } // PuTTY
|
||||
if (x == 4) { return 3; } // RDP
|
||||
if (x == 5) { return 5; } // WinSCP
|
||||
return x;
|
||||
return 0;
|
||||
}
|
||||
public string getAppIdStr()
|
||||
{
|
||||
int x = (int)appComboBox.SelectedIndex;
|
||||
if (x < 6) { return null; } // Custom or pre-defined
|
||||
return apps[x - 6][1];
|
||||
}
|
||||
public NodeClass getNode() { return (NodeClass)nodeComboBox.SelectedItem; }
|
||||
public void setNode(NodeClass node) { selectedNode = node; }
|
||||
|
||||
private List<String[]> apps = null;
|
||||
|
||||
private void AddPortMapForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
// Add any custom applications
|
||||
apps = Settings.GetApplications();
|
||||
if (apps != null) { foreach (String[] app in apps) { appComboBox.Items.Add(app[0]); } }
|
||||
|
||||
if (selectedNode == null)
|
||||
{
|
||||
// Fill the groups
|
||||
|
||||
1
AddRelayMapForm.Designer.cs
generated
1
AddRelayMapForm.Designer.cs
generated
@@ -140,7 +140,6 @@
|
||||
resources.GetString("appComboBox.Items4"),
|
||||
resources.GetString("appComboBox.Items5")});
|
||||
this.appComboBox.Name = "appComboBox";
|
||||
this.appComboBox.Sorted = true;
|
||||
this.appComboBox.SelectedIndexChanged += new System.EventHandler(this.appComboBox_SelectedIndexChanged);
|
||||
//
|
||||
// label5
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
@@ -46,13 +47,25 @@ namespace MeshCentralRouter
|
||||
if (x == 3) { return 4; } // PuTTY
|
||||
if (x == 4) { return 3; } // RDP
|
||||
if (x == 5) { return 5; } // WinSCP
|
||||
return x;
|
||||
return 0;
|
||||
}
|
||||
public string getAppIdStr()
|
||||
{
|
||||
int x = (int)appComboBox.SelectedIndex;
|
||||
if (x < 6) { return null; } // Custom or pre-defined
|
||||
return apps[x - 6][1];
|
||||
}
|
||||
public NodeClass getNode() { return (NodeClass)nodeComboBox.SelectedItem; }
|
||||
public void setNode(NodeClass node) { selectedNode = node; }
|
||||
|
||||
private List<String[]> apps = null;
|
||||
|
||||
private void AddRelayMapForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
// Add any custom applications
|
||||
apps = Settings.GetApplications();
|
||||
if (apps != null) { foreach (String[] app in apps) { appComboBox.Items.Add(app[0]); } }
|
||||
|
||||
if (selectedNode == null)
|
||||
{
|
||||
// Fill the groups
|
||||
|
||||
234
CustomAppsAddForm.Designer.cs
generated
Normal file
234
CustomAppsAddForm.Designer.cs
generated
Normal file
@@ -0,0 +1,234 @@
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
partial class CustomAppsAddForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CustomAppsAddForm));
|
||||
this.okButton = new System.Windows.Forms.Button();
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.nameTextBox = new System.Windows.Forms.TextBox();
|
||||
this.protocolTextBox = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.commandTextBox = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.selectFileButton = new System.Windows.Forms.Button();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.argsTextBox = new System.Windows.Forms.TextBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// okButton
|
||||
//
|
||||
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.okButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.okButton.Location = new System.Drawing.Point(244, 190);
|
||||
this.okButton.Name = "okButton";
|
||||
this.okButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.okButton.TabIndex = 4;
|
||||
this.okButton.Text = "OK";
|
||||
this.okButton.UseVisualStyleBackColor = true;
|
||||
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.cancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.cancelButton.Location = new System.Drawing.Point(325, 190);
|
||||
this.cancelButton.Name = "cancelButton";
|
||||
this.cancelButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.cancelButton.TabIndex = 5;
|
||||
this.cancelButton.Text = "Cancel";
|
||||
this.cancelButton.UseVisualStyleBackColor = true;
|
||||
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(6, 22);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(35, 13);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "Name";
|
||||
//
|
||||
// nameTextBox
|
||||
//
|
||||
this.nameTextBox.Location = new System.Drawing.Point(116, 19);
|
||||
this.nameTextBox.Name = "nameTextBox";
|
||||
this.nameTextBox.Size = new System.Drawing.Size(266, 20);
|
||||
this.nameTextBox.TabIndex = 7;
|
||||
this.nameTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged);
|
||||
//
|
||||
// protocolTextBox
|
||||
//
|
||||
this.protocolTextBox.Location = new System.Drawing.Point(116, 45);
|
||||
this.protocolTextBox.Name = "protocolTextBox";
|
||||
this.protocolTextBox.Size = new System.Drawing.Size(266, 20);
|
||||
this.protocolTextBox.TabIndex = 9;
|
||||
this.protocolTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(6, 48);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(46, 13);
|
||||
this.label2.TabIndex = 8;
|
||||
this.label2.Text = "Protocol";
|
||||
//
|
||||
// commandTextBox
|
||||
//
|
||||
this.commandTextBox.Location = new System.Drawing.Point(116, 71);
|
||||
this.commandTextBox.Name = "commandTextBox";
|
||||
this.commandTextBox.Size = new System.Drawing.Size(238, 20);
|
||||
this.commandTextBox.TabIndex = 11;
|
||||
this.commandTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(6, 74);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(85, 13);
|
||||
this.label3.TabIndex = 10;
|
||||
this.label3.Text = "Executable Path";
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.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.groupBox1.Controls.Add(this.label5);
|
||||
this.groupBox1.Controls.Add(this.argsTextBox);
|
||||
this.groupBox1.Controls.Add(this.selectFileButton);
|
||||
this.groupBox1.Controls.Add(this.nameTextBox);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.commandTextBox);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.protocolTextBox);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 57);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(388, 127);
|
||||
this.groupBox1.TabIndex = 12;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Application";
|
||||
//
|
||||
// selectFileButton
|
||||
//
|
||||
this.selectFileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.selectFileButton.Location = new System.Drawing.Point(360, 71);
|
||||
this.selectFileButton.Name = "selectFileButton";
|
||||
this.selectFileButton.Size = new System.Drawing.Size(21, 20);
|
||||
this.selectFileButton.TabIndex = 12;
|
||||
this.selectFileButton.Text = "...";
|
||||
this.selectFileButton.UseVisualStyleBackColor = true;
|
||||
this.selectFileButton.Click += new System.EventHandler(this.selectFileButton_Click);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label4.Location = new System.Drawing.Point(12, 9);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(388, 45);
|
||||
this.label4.TabIndex = 13;
|
||||
this.label4.Text = "Enter a friendly name, protocol (like HTTP, RDP, VNC) and the command line and ar" +
|
||||
"guments to run the application. In the arguments, use %L for address, %P for con" +
|
||||
"nection port and %N for computer name.";
|
||||
//
|
||||
// openFileDialog
|
||||
//
|
||||
this.openFileDialog.DefaultExt = "exe";
|
||||
this.openFileDialog.Filter = "Executable|*.exe|All Files|*.*";
|
||||
this.openFileDialog.Title = "Select Application Executable";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(6, 100);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(57, 13);
|
||||
this.label5.TabIndex = 13;
|
||||
this.label5.Text = "Arguments";
|
||||
//
|
||||
// argsTextBox
|
||||
//
|
||||
this.argsTextBox.Location = new System.Drawing.Point(116, 97);
|
||||
this.argsTextBox.Name = "argsTextBox";
|
||||
this.argsTextBox.Size = new System.Drawing.Size(265, 20);
|
||||
this.argsTextBox.TabIndex = 14;
|
||||
this.argsTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged);
|
||||
//
|
||||
// CustomAppsAddForm
|
||||
//
|
||||
this.AcceptButton = this.okButton;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.cancelButton;
|
||||
this.ClientSize = new System.Drawing.Size(412, 225);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.okButton);
|
||||
this.Controls.Add(this.cancelButton);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "CustomAppsAddForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Add Custom Application";
|
||||
this.Load += new System.EventHandler(this.CustomAppsAddForm_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button okButton;
|
||||
private System.Windows.Forms.Button cancelButton;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox nameTextBox;
|
||||
private System.Windows.Forms.TextBox protocolTextBox;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox commandTextBox;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Button selectFileButton;
|
||||
private System.Windows.Forms.OpenFileDialog openFileDialog;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox argsTextBox;
|
||||
}
|
||||
}
|
||||
69
CustomAppsAddForm.cs
Normal file
69
CustomAppsAddForm.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
public partial class CustomAppsAddForm : Form
|
||||
{
|
||||
public string appName
|
||||
{
|
||||
get { return nameTextBox.Text; }
|
||||
set { nameTextBox.Text = value; updateInfo(); }
|
||||
}
|
||||
public string appProtocol
|
||||
{
|
||||
get { return protocolTextBox.Text; }
|
||||
set { protocolTextBox.Text = value; updateInfo(); }
|
||||
}
|
||||
public string appCommand
|
||||
{
|
||||
get { return commandTextBox.Text; }
|
||||
set { commandTextBox.Text = value; updateInfo(); }
|
||||
}
|
||||
public string appArgs
|
||||
{
|
||||
get { return argsTextBox.Text; }
|
||||
set { argsTextBox.Text = value; updateInfo(); }
|
||||
}
|
||||
|
||||
public CustomAppsAddForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void updateInfo()
|
||||
{
|
||||
okButton.Enabled = (nameTextBox.Text.Length > 0) && (protocolTextBox.Text.Length > 0) && (commandTextBox.Text.Length > 0) && (nameTextBox.Text.IndexOf(' ') == -1) && (protocolTextBox.Text.IndexOf(' ') == -1) && (File.Exists(commandTextBox.Text));
|
||||
}
|
||||
|
||||
private void CustomAppsAddForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
updateInfo();
|
||||
nameTextBox.Focus();
|
||||
}
|
||||
|
||||
private void nameTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateInfo();
|
||||
}
|
||||
|
||||
private void okButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void cancelButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void selectFileButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (openFileDialog.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
commandTextBox.Text = openFileDialog.FileName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1818
CustomAppsAddForm.resx
Normal file
1818
CustomAppsAddForm.resx
Normal file
File diff suppressed because it is too large
Load Diff
276
CustomAppsForm.Designer.cs
generated
Normal file
276
CustomAppsForm.Designer.cs
generated
Normal file
@@ -0,0 +1,276 @@
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
partial class CustomAppsForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CustomAppsForm));
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.okButton = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.removeButton = new System.Windows.Forms.Button();
|
||||
this.addButton = new System.Windows.Forms.Button();
|
||||
this.mainListView = new System.Windows.Forms.ListView();
|
||||
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.appContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.runToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.editButton = new System.Windows.Forms.Button();
|
||||
this.runButton = new System.Windows.Forms.Button();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.appContextMenuStrip.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.cancelButton.Location = new System.Drawing.Point(320, 280);
|
||||
this.cancelButton.Name = "cancelButton";
|
||||
this.cancelButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.cancelButton.TabIndex = 0;
|
||||
this.cancelButton.Text = "Cancel";
|
||||
this.cancelButton.UseVisualStyleBackColor = true;
|
||||
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
|
||||
//
|
||||
// okButton
|
||||
//
|
||||
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.okButton.Location = new System.Drawing.Point(239, 280);
|
||||
this.okButton.Name = "okButton";
|
||||
this.okButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.okButton.TabIndex = 1;
|
||||
this.okButton.Text = "OK";
|
||||
this.okButton.UseVisualStyleBackColor = true;
|
||||
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(383, 48);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Setup custom applications that MeshCentral Router can open to use port mappings. " +
|
||||
"These applications match a protocol and have a command line to open the applicat" +
|
||||
"ion.";
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.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.groupBox1.Controls.Add(this.runButton);
|
||||
this.groupBox1.Controls.Add(this.editButton);
|
||||
this.groupBox1.Controls.Add(this.removeButton);
|
||||
this.groupBox1.Controls.Add(this.addButton);
|
||||
this.groupBox1.Controls.Add(this.mainListView);
|
||||
this.groupBox1.Location = new System.Drawing.Point(15, 60);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(380, 214);
|
||||
this.groupBox1.TabIndex = 3;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Applications";
|
||||
//
|
||||
// removeButton
|
||||
//
|
||||
this.removeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.removeButton.Location = new System.Drawing.Point(299, 185);
|
||||
this.removeButton.Name = "removeButton";
|
||||
this.removeButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.removeButton.TabIndex = 2;
|
||||
this.removeButton.Text = "Remove";
|
||||
this.removeButton.UseVisualStyleBackColor = true;
|
||||
this.removeButton.Click += new System.EventHandler(this.removeButton_Click);
|
||||
//
|
||||
// addButton
|
||||
//
|
||||
this.addButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.addButton.Location = new System.Drawing.Point(218, 185);
|
||||
this.addButton.Name = "addButton";
|
||||
this.addButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.addButton.TabIndex = 1;
|
||||
this.addButton.Text = "Add";
|
||||
this.addButton.UseVisualStyleBackColor = true;
|
||||
this.addButton.Click += new System.EventHandler(this.addButton_Click);
|
||||
//
|
||||
// mainListView
|
||||
//
|
||||
this.mainListView.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.mainListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.columnHeader1,
|
||||
this.columnHeader2,
|
||||
this.columnHeader3});
|
||||
this.mainListView.ContextMenuStrip = this.appContextMenuStrip;
|
||||
this.mainListView.FullRowSelect = true;
|
||||
this.mainListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.mainListView.Location = new System.Drawing.Point(6, 19);
|
||||
this.mainListView.Name = "mainListView";
|
||||
this.mainListView.Size = new System.Drawing.Size(368, 160);
|
||||
this.mainListView.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||
this.mainListView.TabIndex = 0;
|
||||
this.mainListView.UseCompatibleStateImageBehavior = false;
|
||||
this.mainListView.View = System.Windows.Forms.View.Details;
|
||||
this.mainListView.SelectedIndexChanged += new System.EventHandler(this.mainListView_SelectedIndexChanged);
|
||||
//
|
||||
// columnHeader1
|
||||
//
|
||||
this.columnHeader1.Text = "Name";
|
||||
//
|
||||
// columnHeader2
|
||||
//
|
||||
this.columnHeader2.Text = "Protocol";
|
||||
//
|
||||
// columnHeader3
|
||||
//
|
||||
this.columnHeader3.Text = "Command";
|
||||
this.columnHeader3.Width = 223;
|
||||
//
|
||||
// appContextMenuStrip
|
||||
//
|
||||
this.appContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.editToolStripMenuItem,
|
||||
this.runToolStripMenuItem,
|
||||
this.removeToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.addToolStripMenuItem});
|
||||
this.appContextMenuStrip.Name = "appContextMenuStrip";
|
||||
this.appContextMenuStrip.Size = new System.Drawing.Size(118, 98);
|
||||
this.appContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.appContextMenuStrip_Opening);
|
||||
//
|
||||
// editToolStripMenuItem
|
||||
//
|
||||
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
||||
this.editToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
|
||||
this.editToolStripMenuItem.Text = "&Edit...";
|
||||
this.editToolStripMenuItem.Click += new System.EventHandler(this.editToolStripMenuItem_Click);
|
||||
//
|
||||
// runToolStripMenuItem
|
||||
//
|
||||
this.runToolStripMenuItem.Name = "runToolStripMenuItem";
|
||||
this.runToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
|
||||
this.runToolStripMenuItem.Text = "R&un...";
|
||||
this.runToolStripMenuItem.Click += new System.EventHandler(this.runToolStripMenuItem_Click);
|
||||
//
|
||||
// removeToolStripMenuItem
|
||||
//
|
||||
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
|
||||
this.removeToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
|
||||
this.removeToolStripMenuItem.Text = "&Remove";
|
||||
this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeButton_Click);
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(114, 6);
|
||||
//
|
||||
// addToolStripMenuItem
|
||||
//
|
||||
this.addToolStripMenuItem.Name = "addToolStripMenuItem";
|
||||
this.addToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
|
||||
this.addToolStripMenuItem.Text = "&Add...";
|
||||
this.addToolStripMenuItem.Click += new System.EventHandler(this.addButton_Click);
|
||||
//
|
||||
// editButton
|
||||
//
|
||||
this.editButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.editButton.Location = new System.Drawing.Point(137, 185);
|
||||
this.editButton.Name = "editButton";
|
||||
this.editButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.editButton.TabIndex = 3;
|
||||
this.editButton.Text = "Edit...";
|
||||
this.editButton.UseVisualStyleBackColor = true;
|
||||
this.editButton.Click += new System.EventHandler(this.editToolStripMenuItem_Click);
|
||||
//
|
||||
// runButton
|
||||
//
|
||||
this.runButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.runButton.Location = new System.Drawing.Point(56, 185);
|
||||
this.runButton.Name = "runButton";
|
||||
this.runButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.runButton.TabIndex = 4;
|
||||
this.runButton.Text = "Run...";
|
||||
this.runButton.UseVisualStyleBackColor = true;
|
||||
this.runButton.Click += new System.EventHandler(this.runToolStripMenuItem_Click);
|
||||
//
|
||||
// CustomAppsForm
|
||||
//
|
||||
this.AcceptButton = this.okButton;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.cancelButton;
|
||||
this.ClientSize = new System.Drawing.Size(407, 315);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.okButton);
|
||||
this.Controls.Add(this.cancelButton);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "CustomAppsForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Custom Applications";
|
||||
this.Load += new System.EventHandler(this.CustomAppsForm_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.appContextMenuStrip.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button cancelButton;
|
||||
private System.Windows.Forms.Button okButton;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Button removeButton;
|
||||
private System.Windows.Forms.Button addButton;
|
||||
private System.Windows.Forms.ListView mainListView;
|
||||
private System.Windows.Forms.ColumnHeader columnHeader1;
|
||||
private System.Windows.Forms.ColumnHeader columnHeader2;
|
||||
private System.Windows.Forms.ColumnHeader columnHeader3;
|
||||
private System.Windows.Forms.ContextMenuStrip appContextMenuStrip;
|
||||
private System.Windows.Forms.ToolStripMenuItem runToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem addToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
|
||||
private System.Windows.Forms.Button editButton;
|
||||
private System.Windows.Forms.Button runButton;
|
||||
}
|
||||
}
|
||||
141
CustomAppsForm.cs
Normal file
141
CustomAppsForm.cs
Normal file
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows.Forms;
|
||||
using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
public partial class CustomAppsForm : Form
|
||||
{
|
||||
List<string[]> apps;
|
||||
|
||||
public CustomAppsForm(List<string[]> apps)
|
||||
{
|
||||
this.apps = apps;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void CustomAppsForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (apps != null) {
|
||||
foreach (string[] app in apps) {
|
||||
string[] x = new string[5];
|
||||
x[0] = app[0];
|
||||
x[1] = app[1];
|
||||
x[2] = "\"" + app[2] + "\" " + app[3];
|
||||
x[3] = app[2];
|
||||
x[4] = app[3];
|
||||
mainListView.Items.Add(new ListViewItem(x));
|
||||
}
|
||||
}
|
||||
UpdateInfo();
|
||||
}
|
||||
|
||||
public List<string[]> getApplications()
|
||||
{
|
||||
List<string[]> r = new List<string[]>();
|
||||
foreach (ListViewItem l in mainListView.Items)
|
||||
{
|
||||
string[] x = new string[4];
|
||||
x[0] = l.SubItems[0].Text;
|
||||
x[1] = l.SubItems[1].Text.ToLower();
|
||||
x[2] = l.SubItems[3].Text;
|
||||
x[3] = l.SubItems[4].Text;
|
||||
r.Add(x);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
private void addButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
CustomAppsAddForm f = new CustomAppsAddForm();
|
||||
if (f.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
// Remove any matching protocol
|
||||
List<ListViewItem> list = new List<ListViewItem>();
|
||||
foreach (ListViewItem l in mainListView.Items) { if (l.SubItems[1].Text.ToLower() == f.appProtocol.ToLower()) { list.Add(l); } }
|
||||
foreach (ListViewItem l in list) { mainListView.Items.Remove(l); }
|
||||
|
||||
// Add the new protocol
|
||||
string[] x = new string[5];
|
||||
x[0] = f.appName;
|
||||
x[1] = f.appProtocol.ToLower();
|
||||
x[2] = "\"" + f.appCommand + "\" " + f.appArgs;
|
||||
x[3] = f.appCommand;
|
||||
x[4] = f.appArgs;
|
||||
mainListView.Items.Add(new ListViewItem(x));
|
||||
}
|
||||
}
|
||||
|
||||
private void okButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void cancelButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void mainListView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateInfo();
|
||||
}
|
||||
|
||||
private void UpdateInfo()
|
||||
{
|
||||
removeButton.Enabled = (mainListView.SelectedItems.Count > 0);
|
||||
runButton.Enabled = editButton.Enabled = (mainListView.SelectedItems.Count == 1);
|
||||
}
|
||||
|
||||
private void removeButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (mainListView.SelectedItems.Count == 0) return;
|
||||
List<ListViewItem> list = new List<ListViewItem>();
|
||||
foreach (ListViewItem l in mainListView.SelectedItems) { list.Add(l); }
|
||||
foreach (ListViewItem l in list) { mainListView.Items.Remove(l); }
|
||||
}
|
||||
|
||||
private void appContextMenuStrip_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
runToolStripMenuItem.Visible = (mainListView.SelectedItems.Count == 1);
|
||||
removeToolStripMenuItem.Visible = toolStripMenuItem1.Visible = (mainListView.SelectedItems.Count > 0);
|
||||
}
|
||||
|
||||
private void runToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (mainListView.SelectedItems.Count != 1) return;
|
||||
ListViewItem i = mainListView.SelectedItems[0];
|
||||
CustomAppsRunForm f = new CustomAppsRunForm(i.SubItems[3].Text, i.SubItems[4].Text);
|
||||
if (f.ShowDialog(this) == DialogResult.OK) { Process.Start(i.SubItems[3].Text, f.getFinalArgs()); }
|
||||
}
|
||||
|
||||
private void editToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (mainListView.SelectedItems.Count != 1) return;
|
||||
ListViewItem i = mainListView.SelectedItems[0];
|
||||
CustomAppsAddForm f = new CustomAppsAddForm();
|
||||
f.appName = i.SubItems[0].Text;
|
||||
f.appProtocol = i.SubItems[1].Text;
|
||||
f.appCommand = i.SubItems[3].Text;
|
||||
f.appArgs = i.SubItems[4].Text;
|
||||
if (f.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
// Remove any matching protocol
|
||||
List<ListViewItem> list = new List<ListViewItem>();
|
||||
foreach (ListViewItem l in mainListView.Items) { if (l.SubItems[1].Text.ToLower() == f.appProtocol.ToLower()) { list.Add(l); } }
|
||||
foreach (ListViewItem l in list) { mainListView.Items.Remove(l); }
|
||||
|
||||
// Add the new protocol
|
||||
string[] x = new string[5];
|
||||
x[0] = f.appName;
|
||||
x[1] = f.appProtocol.ToLower();
|
||||
x[2] = "\"" + f.appCommand + "\" " + f.appArgs;
|
||||
x[3] = f.appCommand;
|
||||
x[4] = f.appArgs;
|
||||
mainListView.Items.Add(new ListViewItem(x));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1818
CustomAppsForm.resx
Normal file
1818
CustomAppsForm.resx
Normal file
File diff suppressed because it is too large
Load Diff
243
CustomAppsRunForm.Designer.cs
generated
Normal file
243
CustomAppsRunForm.Designer.cs
generated
Normal file
@@ -0,0 +1,243 @@
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
partial class CustomAppsRunForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CustomAppsRunForm));
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.portTextBox = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.addressTextBox = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.commandTextBox = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.okButton = new System.Windows.Forms.Button();
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.argsTextBox = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.nameTextBox = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.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.groupBox1.Controls.Add(this.nameTextBox);
|
||||
this.groupBox1.Controls.Add(this.label6);
|
||||
this.groupBox1.Controls.Add(this.argsTextBox);
|
||||
this.groupBox1.Controls.Add(this.label5);
|
||||
this.groupBox1.Controls.Add(this.portTextBox);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.addressTextBox);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.commandTextBox);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 49);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(382, 155);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Application Command";
|
||||
//
|
||||
// portTextBox
|
||||
//
|
||||
this.portTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.portTextBox.Location = new System.Drawing.Point(116, 97);
|
||||
this.portTextBox.Name = "portTextBox";
|
||||
this.portTextBox.Size = new System.Drawing.Size(260, 20);
|
||||
this.portTextBox.TabIndex = 13;
|
||||
this.portTextBox.Text = "1234";
|
||||
this.portTextBox.TextChanged += new System.EventHandler(this.portTextBox_TextChanged);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(6, 100);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(44, 13);
|
||||
this.label4.TabIndex = 12;
|
||||
this.label4.Text = "Port %P";
|
||||
//
|
||||
// addressTextBox
|
||||
//
|
||||
this.addressTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.addressTextBox.Location = new System.Drawing.Point(116, 71);
|
||||
this.addressTextBox.Name = "addressTextBox";
|
||||
this.addressTextBox.Size = new System.Drawing.Size(260, 20);
|
||||
this.addressTextBox.TabIndex = 11;
|
||||
this.addressTextBox.Text = "127.0.0.1";
|
||||
this.addressTextBox.TextChanged += new System.EventHandler(this.addressTextBox_TextChanged);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(6, 74);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(62, 13);
|
||||
this.label3.TabIndex = 10;
|
||||
this.label3.Text = "Address %L";
|
||||
//
|
||||
// commandTextBox
|
||||
//
|
||||
this.commandTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.commandTextBox.Location = new System.Drawing.Point(116, 19);
|
||||
this.commandTextBox.Name = "commandTextBox";
|
||||
this.commandTextBox.ReadOnly = true;
|
||||
this.commandTextBox.Size = new System.Drawing.Size(260, 20);
|
||||
this.commandTextBox.TabIndex = 9;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(6, 22);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(54, 13);
|
||||
this.label2.TabIndex = 8;
|
||||
this.label2.Text = "Command";
|
||||
//
|
||||
// okButton
|
||||
//
|
||||
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.okButton.Location = new System.Drawing.Point(238, 210);
|
||||
this.okButton.Name = "okButton";
|
||||
this.okButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.okButton.TabIndex = 3;
|
||||
this.okButton.Text = "OK";
|
||||
this.okButton.UseVisualStyleBackColor = true;
|
||||
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.cancelButton.Location = new System.Drawing.Point(319, 210);
|
||||
this.cancelButton.Name = "cancelButton";
|
||||
this.cancelButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.cancelButton.TabIndex = 2;
|
||||
this.cancelButton.Text = "Cancel";
|
||||
this.cancelButton.UseVisualStyleBackColor = true;
|
||||
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.Location = new System.Drawing.Point(12, 11);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(382, 35);
|
||||
this.label1.TabIndex = 4;
|
||||
this.label1.Text = "Test that the application runs correctly by specifying and address, port and name" +
|
||||
". Then click ok to run the application.";
|
||||
//
|
||||
// argsTextBox
|
||||
//
|
||||
this.argsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.argsTextBox.Location = new System.Drawing.Point(116, 45);
|
||||
this.argsTextBox.Name = "argsTextBox";
|
||||
this.argsTextBox.ReadOnly = true;
|
||||
this.argsTextBox.Size = new System.Drawing.Size(260, 20);
|
||||
this.argsTextBox.TabIndex = 15;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(6, 48);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(57, 13);
|
||||
this.label5.TabIndex = 14;
|
||||
this.label5.Text = "Arguments";
|
||||
//
|
||||
// nameTextBox
|
||||
//
|
||||
this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.nameTextBox.Location = new System.Drawing.Point(116, 123);
|
||||
this.nameTextBox.Name = "nameTextBox";
|
||||
this.nameTextBox.Size = new System.Drawing.Size(260, 20);
|
||||
this.nameTextBox.TabIndex = 17;
|
||||
this.nameTextBox.Text = "MyComputer";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(6, 126);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(54, 13);
|
||||
this.label6.TabIndex = 16;
|
||||
this.label6.Text = "Name %N";
|
||||
//
|
||||
// CustomAppsRunForm
|
||||
//
|
||||
this.AcceptButton = this.okButton;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.cancelButton;
|
||||
this.ClientSize = new System.Drawing.Size(406, 245);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.okButton);
|
||||
this.Controls.Add(this.cancelButton);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "CustomAppsRunForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Test Application";
|
||||
this.Load += new System.EventHandler(this.CustomAppsRunForm_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Button okButton;
|
||||
private System.Windows.Forms.Button cancelButton;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox portTextBox;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox addressTextBox;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox commandTextBox;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox argsTextBox;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox nameTextBox;
|
||||
private System.Windows.Forms.Label label6;
|
||||
}
|
||||
}
|
||||
61
CustomAppsRunForm.cs
Normal file
61
CustomAppsRunForm.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
public partial class CustomAppsRunForm : Form
|
||||
{
|
||||
private string command = null;
|
||||
private string args = null;
|
||||
|
||||
public CustomAppsRunForm(string command, string args)
|
||||
{
|
||||
this.command = command;
|
||||
this.args = args;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public string getFinalArgs()
|
||||
{
|
||||
return args.Replace("%L", addressTextBox.Text).Replace("%P", portTextBox.Text).Replace("%N", nameTextBox.Text);
|
||||
}
|
||||
|
||||
public void UpdateInfo()
|
||||
{
|
||||
commandTextBox.Text = command;
|
||||
argsTextBox.Text = getFinalArgs();
|
||||
}
|
||||
|
||||
private void addressTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateInfo();
|
||||
}
|
||||
|
||||
private void portTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateInfo();
|
||||
}
|
||||
|
||||
private void CustomAppsRunForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
UpdateInfo();
|
||||
}
|
||||
|
||||
private void okButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void cancelButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
}
|
||||
}
|
||||
1815
CustomAppsRunForm.resx
Normal file
1815
CustomAppsRunForm.resx
Normal file
File diff suppressed because it is too large
Load Diff
37
KVMControl.Designer.cs
generated
37
KVMControl.Designer.cs
generated
@@ -28,25 +28,24 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// KVMControl
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.Name = "KVMControl";
|
||||
this.Size = new System.Drawing.Size(585, 364);
|
||||
this.Load += new System.EventHandler(this.KVMControl_Load);
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.KVMControl_Paint);
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KVMControl_KeyDown);
|
||||
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.KVMControl_KeyPress);
|
||||
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.KVMControl_KeyUp);
|
||||
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.KVMControl_MouseDown);
|
||||
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.KVMControl_MouseMove);
|
||||
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.KVMControl_MouseUp);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// KVMControl
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.Name = "KVMControl";
|
||||
this.Size = new System.Drawing.Size(585, 364);
|
||||
this.Load += new System.EventHandler(this.KVMControl_Load);
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.KVMControl_Paint);
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KVMControl_KeyDown);
|
||||
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.KVMControl_KeyPress);
|
||||
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.KVMControl_KeyUp);
|
||||
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.KVMControl_MouseDown);
|
||||
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.KVMControl_MouseMove);
|
||||
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.KVMControl_MouseUp);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
168
KVMControl.cs
168
KVMControl.cs
@@ -30,7 +30,7 @@ namespace MeshCentralRouter
|
||||
public partial class KVMControl : UserControl
|
||||
{
|
||||
private bool remotepause = true;
|
||||
private Bitmap desktop = null;
|
||||
public Bitmap desktop = null;
|
||||
private Graphics desktopGraphics = null;
|
||||
public uint screenWidth = 0;
|
||||
public uint screenHeight = 0;
|
||||
@@ -42,6 +42,7 @@ namespace MeshCentralRouter
|
||||
private bool swamMouseButtons = false;
|
||||
private bool remoteKeyboardMap = false;
|
||||
private bool autoSendClipboard = false;
|
||||
public bool AutoReconnect = false;
|
||||
private double scalefactor = 1;
|
||||
public List<ushort> displays = new List<ushort>();
|
||||
public ushort currentDisp = 0;
|
||||
@@ -51,13 +52,17 @@ namespace MeshCentralRouter
|
||||
public double DpiX = 96;
|
||||
public double DpiY = 96;
|
||||
public KVMViewer parent = null;
|
||||
public KVMViewerExtra parentEx = null;
|
||||
private readonly KVMControlHook ControlHook;
|
||||
private readonly KVMControlHook.KVMCallback KeyboardCallback;
|
||||
private bool isHookWanted;
|
||||
private bool isHookPriority;
|
||||
private bool keyboardIsAttached;
|
||||
private long killNextKeyPress = 0;
|
||||
|
||||
private bool controlLoaded = false;
|
||||
public Rectangle[] displayInfo = null;
|
||||
public Rectangle displayCrop = Rectangle.Empty;
|
||||
public Point displayOrigin = Point.Empty;
|
||||
|
||||
|
||||
//System level functions to be used for hook and unhook keyboard input
|
||||
@@ -132,6 +137,7 @@ namespace MeshCentralRouter
|
||||
Jumbo = 27,
|
||||
Disconnect = 59,
|
||||
Alert = 65,
|
||||
DisplayInfo = 82,
|
||||
KeyUnicode = 85,
|
||||
MouseCursor = 88
|
||||
}
|
||||
@@ -154,6 +160,9 @@ namespace MeshCentralRouter
|
||||
[Description("Fires when it receives the display list.")]
|
||||
public event EventHandler DisplaysReceived;
|
||||
|
||||
public delegate void ScreenAreaUpdatedHandler(Bitmap desktop, Rectangle r);
|
||||
public event ScreenAreaUpdatedHandler ScreenAreaUpdated;
|
||||
|
||||
public enum ConnectState
|
||||
{
|
||||
Disconnected,
|
||||
@@ -171,8 +180,14 @@ namespace MeshCentralRouter
|
||||
public double ScaleFactor { get { return scalefactor; } set { scalefactor = value; } }
|
||||
|
||||
public void SetCompressionParams(int level, int scaling, int framerate) { compressionlevel = level; scalinglevel = scaling; frameRate = framerate; SendCompressionLevel(); }
|
||||
public int DesktopWidth { get { return (int)screenWidth; } }
|
||||
public int DesktopHeight { get { return (int)screenHeight; } }
|
||||
public int DesktopWidth
|
||||
{
|
||||
get { if (displayCrop == Rectangle.Empty) { return (int)screenWidth; } else { return displayCrop.Width; } }
|
||||
}
|
||||
public int DesktopHeight
|
||||
{
|
||||
get { if (displayCrop == Rectangle.Empty) { return (int)screenHeight; } else { return displayCrop.Height; } }
|
||||
}
|
||||
|
||||
// Debug
|
||||
public int bytesent = 0;
|
||||
@@ -299,7 +314,41 @@ namespace MeshCentralRouter
|
||||
desktopGraphics.DrawString(string.Format("{0} / {1}kb", tilecount, blen / 2014), DebugFont, RedPen.Brush, new Point((int)tile_x, (int)tile_y));
|
||||
}
|
||||
}
|
||||
if (scalefactor == 1) Invalidate(r, false); else Invalidate(r3, false);
|
||||
|
||||
// Update extra displays if needed
|
||||
Rectangle r = new Rectangle((int)tile_x, (int)tile_y, newtile.Width, newtile.Height);
|
||||
Rectangle rx = new Rectangle(r.X + displayOrigin.X, r.Y + displayOrigin.Y, r.Width, r.Height);
|
||||
//Console.WriteLine(rx.ToString());
|
||||
if (ScreenAreaUpdated != null) ScreenAreaUpdated(desktop, rx);
|
||||
|
||||
if (displayCrop == Rectangle.Empty)
|
||||
{
|
||||
if (scalefactor == 1)
|
||||
{
|
||||
Invalidate(r, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Rectangle r3 = new Rectangle((int)((double)tile_x / (double)scalefactor) - 2, (int)((double)tile_y / (double)scalefactor) - 2, (int)((double)newtile.Width / (double)scalefactor) + 4, (int)((double)newtile.Height / (double)scalefactor) + 4);
|
||||
Invalidate(r3, false);
|
||||
}
|
||||
}
|
||||
else if (displayCrop.IntersectsWith(rx) == true)
|
||||
{
|
||||
Rectangle r2 = new Rectangle(rx.X, rx.Y, rx.Width, rx.Height);
|
||||
r2.Intersect(displayCrop);
|
||||
|
||||
if (scalefactor == 1)
|
||||
{
|
||||
Rectangle r3 = new Rectangle(r2.X - displayCrop.X, r2.Y - displayCrop.Y, r2.Width, r2.Height);
|
||||
Invalidate(r, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Rectangle r3 = new Rectangle((int)((double)(r2.X - displayCrop.X) / (double)scalefactor) - 2, (int)((double)(r2.Y - displayCrop.Y) / (double)scalefactor) - 2, (int)((double)r2.Width / (double)scalefactor) + 4, (int)((double)r2.Height / (double)scalefactor) + 4);
|
||||
Invalidate(r3, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return blen + jumboHeaderSize;
|
||||
@@ -355,6 +404,31 @@ namespace MeshCentralRouter
|
||||
ChangeMouseCursor(buffer[off + 4]);
|
||||
break;
|
||||
}
|
||||
case KvmCommands.DisplayInfo:
|
||||
{
|
||||
if ((blen < 4) || (((blen - 4) % 10) != 0)) break;
|
||||
int screenCount = ((blen - 4) / 10);
|
||||
int ptr = off + 4;
|
||||
Rectangle[] xDisplayInfo = new Rectangle[screenCount];
|
||||
|
||||
for (var i = 0; i < screenCount; i++)
|
||||
{
|
||||
int id = ((buffer[ptr + 0] << 8) + buffer[ptr + 1]);
|
||||
int x = ((buffer[ptr + 2] << 8) + buffer[ptr + 3]);
|
||||
int y = ((buffer[ptr + 4] << 8) + buffer[ptr + 5]);
|
||||
int w = ((buffer[ptr + 6] << 8) + buffer[ptr + 7]);
|
||||
int h = ((buffer[ptr + 8] << 8) + buffer[ptr + 9]);
|
||||
if (x > 32766) { x -= 65536; }
|
||||
if (y > 32766) { y -= 65536; }
|
||||
Rectangle r = new Rectangle(x, y, w, h);
|
||||
xDisplayInfo[id - 1] = r;
|
||||
ptr += 10;
|
||||
}
|
||||
|
||||
// Set display information
|
||||
displayInfo = xDisplayInfo;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
// MessageBox.Show("Should never happen!");
|
||||
@@ -399,6 +473,11 @@ namespace MeshCentralRouter
|
||||
Invalidate(region);
|
||||
}
|
||||
|
||||
public void Repaint(Rectangle rect)
|
||||
{
|
||||
Invalidate(rect);
|
||||
}
|
||||
|
||||
protected override void OnPaintBackground(PaintEventArgs e)
|
||||
{
|
||||
// Do not paint background.
|
||||
@@ -421,14 +500,28 @@ namespace MeshCentralRouter
|
||||
{
|
||||
lock (desktop)
|
||||
{
|
||||
if (scalefactor == 1)
|
||||
if (displayCrop == Rectangle.Empty) // No cropping
|
||||
{
|
||||
g.DrawImage(desktop, e.ClipRectangle, e.ClipRectangle, GraphicsUnit.Pixel);
|
||||
if (scalefactor == 1)
|
||||
{
|
||||
g.DrawImage(desktop, e.ClipRectangle, e.ClipRectangle, GraphicsUnit.Pixel);
|
||||
}
|
||||
else
|
||||
{
|
||||
g.DrawImage((Image)desktop, e.ClipRectangle, (int)((double)e.ClipRectangle.Left * (double)scalefactor), (int)((double)e.ClipRectangle.Top * (double)scalefactor), (int)((double)e.ClipRectangle.Width * (double)scalefactor), (int)((double)e.ClipRectangle.Height * (double)scalefactor), GraphicsUnit.Pixel);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//g.DrawImage((Image)desktop, new Rectangle(0, 0, Width, Height), 0, 0, screenWidth, screenHeight, GraphicsUnit.Pixel);
|
||||
g.DrawImage((Image)desktop, e.ClipRectangle, (float)((double)e.ClipRectangle.Left * (double)scalefactor), (float)((double)e.ClipRectangle.Top * (double)scalefactor), (float)((double)e.ClipRectangle.Width * (double)scalefactor), (float)((double)e.ClipRectangle.Height * (double)scalefactor), GraphicsUnit.Pixel);
|
||||
if (scalefactor == 1) // Cropping in effect, this is when we show different displays in different windows
|
||||
{
|
||||
g.DrawImage(desktop, e.ClipRectangle, new Rectangle(e.ClipRectangle.X - displayOrigin.X + displayCrop.X, e.ClipRectangle.Y - displayOrigin.Y + displayCrop.Y, e.ClipRectangle.Width, e.ClipRectangle.Height), GraphicsUnit.Pixel);
|
||||
}
|
||||
else
|
||||
{
|
||||
Rectangle srcRect = new Rectangle((int)((double)(e.ClipRectangle.Left) * (double)scalefactor) - displayOrigin.X + displayCrop.X, (int)((double)(e.ClipRectangle.Top) * (double)scalefactor) - displayOrigin.Y + displayCrop.Y, (int)((double)e.ClipRectangle.Width * (double)scalefactor), (int)((double)e.ClipRectangle.Height * (double)scalefactor));
|
||||
g.DrawImage((Image)desktop, e.ClipRectangle, srcRect, GraphicsUnit.Pixel);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -545,8 +638,16 @@ namespace MeshCentralRouter
|
||||
}
|
||||
}
|
||||
|
||||
LastX = (short)((double)e.X * (double)scalefactor);
|
||||
LastY = (short)((double)e.Y * (double)scalefactor);
|
||||
if (displayCrop == Rectangle.Empty)
|
||||
{
|
||||
LastX = (short)((double)e.X * (double)scalefactor);
|
||||
LastY = (short)((double)e.Y * (double)scalefactor);
|
||||
}
|
||||
else
|
||||
{
|
||||
LastX = (short)((int)((double)e.X * (double)scalefactor) - displayOrigin.X + displayCrop.X);
|
||||
LastY = (short)((int)((double)e.Y * (double)scalefactor) - displayOrigin.Y + displayCrop.Y);
|
||||
}
|
||||
|
||||
BinaryWriter bw = GetBinaryWriter();
|
||||
bw.Write(IPAddress.HostToNetworkOrder((short)KvmCommands.Mouse));
|
||||
@@ -629,9 +730,16 @@ namespace MeshCentralRouter
|
||||
//if (state == ConnectState.Disconnected) return;
|
||||
try
|
||||
{
|
||||
parent.bytesOut += buffer.Length;
|
||||
parent.bytesOutCompressed += parent.wc.SendBinary(buffer, 0, buffer.Length);
|
||||
bytesent += buffer.Length;
|
||||
if (parent != null)
|
||||
{
|
||||
parent.bytesOut += buffer.Length;
|
||||
parent.bytesOutCompressed += parent.wc.SendBinary(buffer, 0, buffer.Length);
|
||||
bytesent += buffer.Length;
|
||||
}
|
||||
else if (parentEx != null)
|
||||
{
|
||||
parentEx.mainKvmControl.Send(buffer);
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
@@ -641,9 +749,16 @@ namespace MeshCentralRouter
|
||||
//if (state == ConnectState.Disconnected) return;
|
||||
try
|
||||
{
|
||||
parent.bytesOut += str.Length;
|
||||
parent.bytesOutCompressed += parent.wc.SendString(str);
|
||||
bytesent += str.Length;
|
||||
if (parent != null)
|
||||
{
|
||||
parent.bytesOut += str.Length;
|
||||
parent.bytesOutCompressed += parent.wc.SendString(str);
|
||||
bytesent += str.Length;
|
||||
}
|
||||
else if (parentEx != null)
|
||||
{
|
||||
parentEx.mainKvmControl.Send(str);
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
@@ -661,6 +776,10 @@ namespace MeshCentralRouter
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
else if (parentEx != null)
|
||||
{
|
||||
parentEx.mainKvmControl.Send(bw);
|
||||
}
|
||||
RecycleBinaryWriter(bw);
|
||||
}
|
||||
|
||||
@@ -815,7 +934,22 @@ namespace MeshCentralRouter
|
||||
public IntPtr extra;
|
||||
}
|
||||
|
||||
public void cropDisplay(Point o, Rectangle r)
|
||||
{
|
||||
if (IsDisposed || Disposing) return;
|
||||
displayCrop = r;
|
||||
displayOrigin = o;
|
||||
if (controlLoaded)
|
||||
{
|
||||
Invoke(new SetSizeHandler(SetSize));
|
||||
Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
private void KVMControl_Load(object sender, EventArgs e)
|
||||
{
|
||||
controlLoaded = true;
|
||||
}
|
||||
|
||||
//Declaring Global objects
|
||||
private IntPtr ptrHook;
|
||||
|
||||
4
KVMResizeControl.Designer.cs
generated
4
KVMResizeControl.Designer.cs
generated
@@ -89,14 +89,18 @@
|
||||
//
|
||||
// kvmControl
|
||||
//
|
||||
this.kvmControl.AutoSendClipboard = false;
|
||||
this.kvmControl.BackColor = System.Drawing.Color.LightCoral;
|
||||
this.kvmControl.CompressionLevel = 60;
|
||||
this.kvmControl.FrameRate = 100;
|
||||
this.kvmControl.Location = new System.Drawing.Point(33, 31);
|
||||
this.kvmControl.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.kvmControl.Name = "kvmControl";
|
||||
this.kvmControl.RemoteKeyboardMap = false;
|
||||
this.kvmControl.ScaleFactor = 1D;
|
||||
this.kvmControl.ScalingLevel = 1024;
|
||||
this.kvmControl.Size = new System.Drawing.Size(450, 314);
|
||||
this.kvmControl.SwamMouseButtons = false;
|
||||
this.kvmControl.TabIndex = 14;
|
||||
this.kvmControl.DesktopSizeChanged += new System.EventHandler(this.kvmControl_DesktopSizeChanged);
|
||||
this.kvmControl.Resize += new System.EventHandler(this.kvmControl_Resize);
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace MeshCentralRouter
|
||||
CenterKvmControl(false);
|
||||
}
|
||||
|
||||
/*
|
||||
void KVM_StateChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (InvokeRequired) { Invoke(new EventHandler(KVM_StateChanged), sender, e); return; }
|
||||
@@ -55,6 +56,7 @@ namespace MeshCentralRouter
|
||||
//kvmControl.Visible = (kvmControl.State == KVMControl.ConnectState.Connected);
|
||||
if (StateChanged != null) StateChanged(this, e);
|
||||
}
|
||||
*/
|
||||
|
||||
void KVM_DisplaysReceived(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
19
KVMSettingsForm.Designer.cs
generated
19
KVMSettingsForm.Designer.cs
generated
@@ -32,6 +32,7 @@
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.okButton = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.autoSendClipboardCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.remoteKeyboardMapCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.swapMouseButtonsCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.frameRateComboBox = new System.Windows.Forms.ComboBox();
|
||||
@@ -42,7 +43,7 @@
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.autoSendClipboardCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.autoReconnectCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -65,6 +66,7 @@
|
||||
// groupBox1
|
||||
//
|
||||
resources.ApplyResources(this.groupBox1, "groupBox1");
|
||||
this.groupBox1.Controls.Add(this.autoReconnectCheckBox);
|
||||
this.groupBox1.Controls.Add(this.autoSendClipboardCheckBox);
|
||||
this.groupBox1.Controls.Add(this.remoteKeyboardMapCheckBox);
|
||||
this.groupBox1.Controls.Add(this.swapMouseButtonsCheckBox);
|
||||
@@ -77,6 +79,12 @@
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.TabStop = false;
|
||||
//
|
||||
// autoSendClipboardCheckBox
|
||||
//
|
||||
resources.ApplyResources(this.autoSendClipboardCheckBox, "autoSendClipboardCheckBox");
|
||||
this.autoSendClipboardCheckBox.Name = "autoSendClipboardCheckBox";
|
||||
this.autoSendClipboardCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// remoteKeyboardMapCheckBox
|
||||
//
|
||||
resources.ApplyResources(this.remoteKeyboardMapCheckBox, "remoteKeyboardMapCheckBox");
|
||||
@@ -137,11 +145,11 @@
|
||||
resources.ApplyResources(this.label4, "label4");
|
||||
this.label4.Name = "label4";
|
||||
//
|
||||
// autoSendClipboardCheckBox
|
||||
// autoReconnectCheckBox
|
||||
//
|
||||
resources.ApplyResources(this.autoSendClipboardCheckBox, "autoSendClipboardCheckBox");
|
||||
this.autoSendClipboardCheckBox.Name = "autoSendClipboardCheckBox";
|
||||
this.autoSendClipboardCheckBox.UseVisualStyleBackColor = true;
|
||||
resources.ApplyResources(this.autoReconnectCheckBox, "autoReconnectCheckBox");
|
||||
this.autoReconnectCheckBox.Name = "autoReconnectCheckBox";
|
||||
this.autoReconnectCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KVMSettingsForm
|
||||
//
|
||||
@@ -182,5 +190,6 @@
|
||||
private System.Windows.Forms.CheckBox swapMouseButtonsCheckBox;
|
||||
private System.Windows.Forms.CheckBox remoteKeyboardMapCheckBox;
|
||||
private System.Windows.Forms.CheckBox autoSendClipboardCheckBox;
|
||||
private System.Windows.Forms.CheckBox autoReconnectCheckBox;
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@ namespace MeshCentralRouter
|
||||
{
|
||||
InitializeComponent();
|
||||
Translate.TranslateControl(this);
|
||||
qualityComboBox.Items.Add(new DropListItem(100, "100%"));
|
||||
qualityComboBox.Items.Add(new DropListItem(90, "90%"));
|
||||
qualityComboBox.Items.Add(new DropListItem(80, "80%"));
|
||||
qualityComboBox.Items.Add(new DropListItem(70, "70%"));
|
||||
@@ -76,17 +77,18 @@ namespace MeshCentralRouter
|
||||
get { return ((DropListItem)qualityComboBox.SelectedItem).value; }
|
||||
set
|
||||
{
|
||||
if (value >= 90) { qualityComboBox.SelectedIndex = 0; return; }
|
||||
if (value >= 80) { qualityComboBox.SelectedIndex = 1; return; }
|
||||
if (value >= 70) { qualityComboBox.SelectedIndex = 2; return; }
|
||||
if (value >= 60) { qualityComboBox.SelectedIndex = 3; return; }
|
||||
if (value >= 50) { qualityComboBox.SelectedIndex = 4; return; }
|
||||
if (value >= 40) { qualityComboBox.SelectedIndex = 5; return; }
|
||||
if (value >= 30) { qualityComboBox.SelectedIndex = 6; return; }
|
||||
if (value >= 20) { qualityComboBox.SelectedIndex = 7; return; }
|
||||
if (value >= 10) { qualityComboBox.SelectedIndex = 8; return; }
|
||||
if (value >= 5) { qualityComboBox.SelectedIndex = 9; return; }
|
||||
qualityComboBox.SelectedIndex = 10;
|
||||
if (value >= 100) { qualityComboBox.SelectedIndex = 0; return; }
|
||||
if (value >= 90) { qualityComboBox.SelectedIndex = 1; return; }
|
||||
if (value >= 80) { qualityComboBox.SelectedIndex = 2; return; }
|
||||
if (value >= 70) { qualityComboBox.SelectedIndex = 3; return; }
|
||||
if (value >= 60) { qualityComboBox.SelectedIndex = 4; return; }
|
||||
if (value >= 50) { qualityComboBox.SelectedIndex = 5; return; }
|
||||
if (value >= 40) { qualityComboBox.SelectedIndex = 6; return; }
|
||||
if (value >= 30) { qualityComboBox.SelectedIndex = 7; return; }
|
||||
if (value >= 20) { qualityComboBox.SelectedIndex = 8; return; }
|
||||
if (value >= 10) { qualityComboBox.SelectedIndex = 9; return; }
|
||||
if (value >= 5) { qualityComboBox.SelectedIndex = 10; return; }
|
||||
qualityComboBox.SelectedIndex = 11;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,6 +137,12 @@ namespace MeshCentralRouter
|
||||
set { autoSendClipboardCheckBox.Checked = value; }
|
||||
}
|
||||
|
||||
public bool AutoReconnect
|
||||
{
|
||||
get { return autoReconnectCheckBox.Checked; }
|
||||
set { autoReconnectCheckBox.Checked = value; }
|
||||
}
|
||||
|
||||
private void okButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="cancelButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>312, 254</value>
|
||||
<value>312, 276</value>
|
||||
</data>
|
||||
<data name="cancelButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>75, 23</value>
|
||||
@@ -151,7 +151,7 @@
|
||||
<value>Bottom, Right</value>
|
||||
</data>
|
||||
<data name="okButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>231, 254</value>
|
||||
<value>231, 276</value>
|
||||
</data>
|
||||
<data name="okButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>75, 23</value>
|
||||
@@ -177,6 +177,36 @@
|
||||
<data name="groupBox1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Bottom, Left, Right</value>
|
||||
</data>
|
||||
<data name="autoReconnectCheckBox.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="autoReconnectCheckBox.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="autoReconnectCheckBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>128, 174</value>
|
||||
</data>
|
||||
<data name="autoReconnectCheckBox.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>144, 17</value>
|
||||
</data>
|
||||
<data name="autoReconnectCheckBox.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>10</value>
|
||||
</data>
|
||||
<data name="autoReconnectCheckBox.Text" xml:space="preserve">
|
||||
<value>Automatically Reconnect</value>
|
||||
</data>
|
||||
<data name=">>autoReconnectCheckBox.Name" xml:space="preserve">
|
||||
<value>autoReconnectCheckBox</value>
|
||||
</data>
|
||||
<data name=">>autoReconnectCheckBox.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>autoReconnectCheckBox.Parent" xml:space="preserve">
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>autoReconnectCheckBox.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="autoSendClipboardCheckBox.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
</data>
|
||||
@@ -205,7 +235,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>autoSendClipboardCheckBox.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="remoteKeyboardMapCheckBox.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@@ -235,7 +265,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>remoteKeyboardMapCheckBox.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="swapMouseButtonsCheckBox.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@@ -262,7 +292,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>swapMouseButtonsCheckBox.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name="frameRateComboBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Left, Right</value>
|
||||
@@ -286,7 +316,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>frameRateComboBox.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@@ -313,7 +343,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>label2.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="scalingComboBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Left, Right</value>
|
||||
@@ -337,7 +367,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>scalingComboBox.ZOrder" xml:space="preserve">
|
||||
<value>5</value>
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@@ -364,7 +394,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>label1.ZOrder" xml:space="preserve">
|
||||
<value>6</value>
|
||||
<value>7</value>
|
||||
</data>
|
||||
<data name="qualityComboBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Left, Right</value>
|
||||
@@ -391,7 +421,7 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>qualityComboBox.ZOrder" xml:space="preserve">
|
||||
<value>7</value>
|
||||
<value>8</value>
|
||||
</data>
|
||||
<data name="label3.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@@ -418,13 +448,13 @@
|
||||
<value>groupBox1</value>
|
||||
</data>
|
||||
<data name=">>label3.ZOrder" xml:space="preserve">
|
||||
<value>8</value>
|
||||
<value>9</value>
|
||||
</data>
|
||||
<data name="groupBox1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>12, 68</value>
|
||||
</data>
|
||||
<data name="groupBox1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>375, 180</value>
|
||||
<value>375, 202</value>
|
||||
</data>
|
||||
<data name="groupBox1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>2</value>
|
||||
@@ -502,7 +532,7 @@
|
||||
<value>6, 13</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>399, 289</value>
|
||||
<value>399, 311</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
|
||||
43
KVMViewer.Designer.cs
generated
43
KVMViewer.Designer.cs
generated
@@ -51,10 +51,11 @@ namespace MeshCentralRouter
|
||||
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.updateTimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.topPanel = new System.Windows.Forms.Panel();
|
||||
this.extraButtonsPanel = new System.Windows.Forms.Panel();
|
||||
this.splitButton = new System.Windows.Forms.Button();
|
||||
this.clipOutboundButton = new System.Windows.Forms.Button();
|
||||
this.clipInboundButton = new System.Windows.Forms.Button();
|
||||
this.statsButton = new System.Windows.Forms.Button();
|
||||
this.displaySelectComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.settingsButton = new System.Windows.Forms.Button();
|
||||
this.zoomButton = new System.Windows.Forms.Button();
|
||||
this.cadButton = new System.Windows.Forms.Button();
|
||||
@@ -67,6 +68,7 @@ namespace MeshCentralRouter
|
||||
this.consoleTimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.mainToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.resizeKvmControl = new MeshCentralRouter.KVMResizeControl();
|
||||
this.displaySelectorImageList = new System.Windows.Forms.ImageList(this.components);
|
||||
this.mainStatusStrip.SuspendLayout();
|
||||
this.topPanel.SuspendLayout();
|
||||
this.consentContextMenuStrip.SuspendLayout();
|
||||
@@ -75,6 +77,7 @@ namespace MeshCentralRouter
|
||||
// mainStatusStrip
|
||||
//
|
||||
this.mainStatusStrip.BackColor = System.Drawing.SystemColors.Menu;
|
||||
this.mainStatusStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.mainStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.mainToolStripStatusLabel,
|
||||
this.toolStripStatusLabel1});
|
||||
@@ -101,10 +104,11 @@ namespace MeshCentralRouter
|
||||
// topPanel
|
||||
//
|
||||
this.topPanel.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.topPanel.Controls.Add(this.extraButtonsPanel);
|
||||
this.topPanel.Controls.Add(this.splitButton);
|
||||
this.topPanel.Controls.Add(this.clipOutboundButton);
|
||||
this.topPanel.Controls.Add(this.clipInboundButton);
|
||||
this.topPanel.Controls.Add(this.statsButton);
|
||||
this.topPanel.Controls.Add(this.displaySelectComboBox);
|
||||
this.topPanel.Controls.Add(this.settingsButton);
|
||||
this.topPanel.Controls.Add(this.zoomButton);
|
||||
this.topPanel.Controls.Add(this.cadButton);
|
||||
@@ -112,6 +116,19 @@ namespace MeshCentralRouter
|
||||
resources.ApplyResources(this.topPanel, "topPanel");
|
||||
this.topPanel.Name = "topPanel";
|
||||
//
|
||||
// extraButtonsPanel
|
||||
//
|
||||
resources.ApplyResources(this.extraButtonsPanel, "extraButtonsPanel");
|
||||
this.extraButtonsPanel.Name = "extraButtonsPanel";
|
||||
//
|
||||
// splitButton
|
||||
//
|
||||
resources.ApplyResources(this.splitButton, "splitButton");
|
||||
this.splitButton.Name = "splitButton";
|
||||
this.splitButton.TabStop = false;
|
||||
this.splitButton.UseVisualStyleBackColor = true;
|
||||
this.splitButton.Click += new System.EventHandler(this.splitButton_Click);
|
||||
//
|
||||
// clipOutboundButton
|
||||
//
|
||||
resources.ApplyResources(this.clipOutboundButton, "clipOutboundButton");
|
||||
@@ -139,14 +156,6 @@ namespace MeshCentralRouter
|
||||
this.statsButton.UseVisualStyleBackColor = true;
|
||||
this.statsButton.Click += new System.EventHandler(this.statsButton_Click);
|
||||
//
|
||||
// displaySelectComboBox
|
||||
//
|
||||
this.displaySelectComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
resources.ApplyResources(this.displaySelectComboBox, "displaySelectComboBox");
|
||||
this.displaySelectComboBox.Name = "displaySelectComboBox";
|
||||
this.displaySelectComboBox.TabStop = false;
|
||||
this.displaySelectComboBox.SelectionChangeCommitted += new System.EventHandler(this.displaySelectComboBox_SelectionChangeCommitted);
|
||||
//
|
||||
// settingsButton
|
||||
//
|
||||
resources.ApplyResources(this.settingsButton, "settingsButton");
|
||||
@@ -183,6 +192,7 @@ namespace MeshCentralRouter
|
||||
//
|
||||
// consentContextMenuStrip
|
||||
//
|
||||
this.consentContextMenuStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.consentContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.askConsentBarToolStripMenuItem,
|
||||
this.askConsentToolStripMenuItem,
|
||||
@@ -231,6 +241,15 @@ namespace MeshCentralRouter
|
||||
this.resizeKvmControl.Enter += new System.EventHandler(this.resizeKvmControl_Enter);
|
||||
this.resizeKvmControl.Leave += new System.EventHandler(this.resizeKvmControl_Leave);
|
||||
//
|
||||
// displaySelectorImageList
|
||||
//
|
||||
this.displaySelectorImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("displaySelectorImageList.ImageStream")));
|
||||
this.displaySelectorImageList.TransparentColor = System.Drawing.Color.Transparent;
|
||||
this.displaySelectorImageList.Images.SetKeyName(0, "icon-monitor1.png");
|
||||
this.displaySelectorImageList.Images.SetKeyName(1, "icon-monitor1b.png");
|
||||
this.displaySelectorImageList.Images.SetKeyName(2, "icon-monitor2.png");
|
||||
this.displaySelectorImageList.Images.SetKeyName(3, "icon-monitor2b.png");
|
||||
//
|
||||
// KVMViewer
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
@@ -266,7 +285,6 @@ namespace MeshCentralRouter
|
||||
private Button cadButton;
|
||||
private Button zoomButton;
|
||||
private Button settingsButton;
|
||||
private ComboBox displaySelectComboBox;
|
||||
private Label consoleMessage;
|
||||
private Timer consoleTimer;
|
||||
private Button statsButton;
|
||||
@@ -277,6 +295,9 @@ namespace MeshCentralRouter
|
||||
private ToolStripMenuItem askConsentBarToolStripMenuItem;
|
||||
private ToolStripMenuItem askConsentToolStripMenuItem;
|
||||
private ToolStripMenuItem privacyBarToolStripMenuItem;
|
||||
private Button splitButton;
|
||||
private Panel extraButtonsPanel;
|
||||
private ImageList displaySelectorImageList;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
176
KVMViewer.cs
176
KVMViewer.cs
@@ -41,6 +41,11 @@ namespace MeshCentralRouter
|
||||
private string lastClipboardSent = null;
|
||||
private DateTime lastClipboardTime = DateTime.MinValue;
|
||||
public string lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName;
|
||||
private bool splitMode = false;
|
||||
private KVMViewerExtra[] extraDisplays = null;
|
||||
private System.Windows.Forms.Timer delayedConnectionTimer = null;
|
||||
private bool localAutoReconnect = true;
|
||||
private Dictionary<int, Button> displaySelectionButtons = new Dictionary<int, Button>();
|
||||
|
||||
// Stats
|
||||
public long bytesIn = 0;
|
||||
@@ -48,16 +53,6 @@ namespace MeshCentralRouter
|
||||
public long bytesOut = 0;
|
||||
public long bytesOutCompressed = 0;
|
||||
|
||||
public class displayTag
|
||||
{
|
||||
public ushort num;
|
||||
public string name;
|
||||
|
||||
public displayTag(ushort num, string name) { this.num = num; this.name = name; }
|
||||
|
||||
public override string ToString() { return name; }
|
||||
}
|
||||
|
||||
public KVMViewer(MainForm parent, MeshCentralServer server, NodeClass node)
|
||||
{
|
||||
this.parent = parent;
|
||||
@@ -69,6 +64,7 @@ namespace MeshCentralRouter
|
||||
kvmControl = resizeKvmControl.KVM;
|
||||
kvmControl.parent = this;
|
||||
kvmControl.DesktopSizeChanged += KvmControl_DesktopSizeChanged;
|
||||
kvmControl.ScreenAreaUpdated += KvmControl_ScreenAreaUpdated;
|
||||
resizeKvmControl.ZoomToFit = true;
|
||||
UpdateStatus();
|
||||
this.MouseWheel += MainForm_MouseWheel;
|
||||
@@ -81,7 +77,27 @@ namespace MeshCentralRouter
|
||||
mainToolTip.SetToolTip(clipInboundButton, Translate.T(Properties.Resources.PullClipboardFromRemoteDevice, lang));
|
||||
mainToolTip.SetToolTip(zoomButton, Translate.T(Properties.Resources.ToggleZoomToFitMode, lang));
|
||||
mainToolTip.SetToolTip(statsButton, Translate.T(Properties.Resources.DisplayConnectionStatistics, lang));
|
||||
|
||||
// Load remote desktop settings
|
||||
int CompressionLevel = 60;
|
||||
try { CompressionLevel = int.Parse(Settings.GetRegValue("kvmCompression", "60")); } catch (Exception) { }
|
||||
int ScalingLevel = 1024;
|
||||
try { ScalingLevel = int.Parse(Settings.GetRegValue("kvmScaling", "1024")); } catch (Exception) { }
|
||||
int FrameRate = 100;
|
||||
try { FrameRate = int.Parse(Settings.GetRegValue("kvmFrameRate", "100")); } catch (Exception) { }
|
||||
kvmControl.SetCompressionParams(CompressionLevel, ScalingLevel, FrameRate);
|
||||
kvmControl.SwamMouseButtons = Settings.GetRegValue("kvmSwamMouseButtons", "0").Equals("1");
|
||||
kvmControl.RemoteKeyboardMap = Settings.GetRegValue("kvmSwamMouseButtons", "0").Equals("1");
|
||||
kvmControl.AutoSendClipboard = Settings.GetRegValue("kvmAutoClipboard", "0").Equals("1");
|
||||
kvmControl.AutoReconnect = Settings.GetRegValue("kvmAutoReconnect", "0").Equals("1");
|
||||
}
|
||||
|
||||
private void KvmControl_ScreenAreaUpdated(Bitmap desktop, Rectangle r)
|
||||
{
|
||||
if (extraDisplays == null) return;
|
||||
foreach (KVMViewerExtra x in extraDisplays) {
|
||||
if (x != null) { x.UpdateScreenArea(desktop, r); }
|
||||
}
|
||||
}
|
||||
|
||||
private void Parent_ClipboardChanged()
|
||||
@@ -106,6 +122,25 @@ namespace MeshCentralRouter
|
||||
}
|
||||
}
|
||||
|
||||
public void TryAutoConnect()
|
||||
{
|
||||
if ((localAutoReconnect == false) || (kvmControl.AutoReconnect == false)) return;
|
||||
if ((state == 0) && (wc == null) && (delayedConnectionTimer == null)) {
|
||||
// Hold half a second before trying to connect
|
||||
delayedConnectionTimer = new System.Windows.Forms.Timer(this.components);
|
||||
delayedConnectionTimer.Tick += new EventHandler(updateTimerTick);
|
||||
delayedConnectionTimer.Interval = 500;
|
||||
delayedConnectionTimer.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void updateTimerTick(object sender, EventArgs e)
|
||||
{
|
||||
delayedConnectionTimer.Dispose();
|
||||
delayedConnectionTimer = null;
|
||||
if ((state == 0) && (wc == null)) { MenuItemConnect_Click(this, null); }
|
||||
}
|
||||
|
||||
private void KvmControl_DesktopSizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
kvmControl.Visible = true;
|
||||
@@ -301,10 +336,13 @@ namespace MeshCentralRouter
|
||||
if (wc != null)
|
||||
{
|
||||
// Disconnect
|
||||
if (splitMode) { splitButton_Click(this, null); }
|
||||
splitButton.Visible = false;
|
||||
state = 0;
|
||||
wc.Dispose();
|
||||
wc = null;
|
||||
UpdateStatus();
|
||||
localAutoReconnect = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -312,6 +350,7 @@ namespace MeshCentralRouter
|
||||
if (sender != null) { consentFlags = 0; }
|
||||
MenuItemConnect_Click(null, null);
|
||||
kvmControl.AttachKeyboard();
|
||||
localAutoReconnect = true;
|
||||
}
|
||||
displayMessage(null);
|
||||
}
|
||||
@@ -328,7 +367,7 @@ namespace MeshCentralRouter
|
||||
{
|
||||
case 0: // Disconnected
|
||||
mainToolStripStatusLabel.Text = Translate.T(Properties.Resources.Disconnected, lang);
|
||||
displaySelectComboBox.Visible = false;
|
||||
extraButtonsPanel.Visible = false;
|
||||
kvmControl.Visible = false;
|
||||
kvmControl.screenWidth = 0;
|
||||
kvmControl.screenHeight = 0;
|
||||
@@ -336,13 +375,13 @@ namespace MeshCentralRouter
|
||||
break;
|
||||
case 1: // Connecting
|
||||
mainToolStripStatusLabel.Text = Translate.T(Properties.Resources.Connecting, lang);
|
||||
displaySelectComboBox.Visible = false;
|
||||
extraButtonsPanel.Visible = false;
|
||||
kvmControl.Visible = false;
|
||||
connectButton.Text = Translate.T(Properties.Resources.Disconnect, lang);
|
||||
break;
|
||||
case 2: // Setup
|
||||
mainToolStripStatusLabel.Text = "Setup...";
|
||||
displaySelectComboBox.Visible = false;
|
||||
extraButtonsPanel.Visible = false;
|
||||
kvmControl.Visible = false;
|
||||
connectButton.Text = Translate.T(Properties.Resources.Disconnect, lang);
|
||||
break;
|
||||
@@ -392,6 +431,9 @@ namespace MeshCentralRouter
|
||||
|
||||
// Save window location
|
||||
Settings.SetRegValue("kvmlocation", Location.X + "," + Location.Y + "," + Size.Width + "," + Size.Height);
|
||||
|
||||
// Close any extra windows
|
||||
extraScreenClosed();
|
||||
}
|
||||
|
||||
private void toolStripMenuItem2_DropDownOpening(object sender, EventArgs e)
|
||||
@@ -418,11 +460,21 @@ namespace MeshCentralRouter
|
||||
form.SwamMouseButtons = kvmControl.SwamMouseButtons;
|
||||
form.RemoteKeyboardMap = kvmControl.RemoteKeyboardMap;
|
||||
form.AutoSendClipboard = kvmControl.AutoSendClipboard;
|
||||
form.AutoReconnect = kvmControl.AutoReconnect;
|
||||
if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
kvmControl.SetCompressionParams(form.Compression, form.Scaling, form.FrameRate);
|
||||
kvmControl.SwamMouseButtons = form.SwamMouseButtons;
|
||||
kvmControl.RemoteKeyboardMap = form.RemoteKeyboardMap;
|
||||
kvmControl.AutoReconnect = form.AutoReconnect;
|
||||
|
||||
Settings.SetRegValue("kvmCompression", kvmControl.CompressionLevel.ToString());
|
||||
Settings.SetRegValue("kvmScaling", kvmControl.ScalingLevel.ToString());
|
||||
Settings.SetRegValue("kvmFrameRate", kvmControl.FrameRate.ToString());
|
||||
Settings.SetRegValue("kvmSwamMouseButtons", kvmControl.SwamMouseButtons ? "1" : "0");
|
||||
Settings.SetRegValue("kvmRemoteKeyboardMap", kvmControl.RemoteKeyboardMap ? "1" : "0");
|
||||
Settings.SetRegValue("kvmAutoReconnect", kvmControl.AutoReconnect ? "1" : "0");
|
||||
|
||||
if (kvmControl.AutoSendClipboard != form.AutoSendClipboard)
|
||||
{
|
||||
kvmControl.AutoSendClipboard = form.AutoSendClipboard;
|
||||
@@ -454,41 +506,70 @@ namespace MeshCentralRouter
|
||||
resizeKvmControl.ZoomToFit = !resizeKvmControl.ZoomToFit;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void resizeKvmControl_DisplaysReceived(object sender, EventArgs e)
|
||||
{
|
||||
if (kvmControl == null || kvmControl.displays.Count == 0) return;
|
||||
|
||||
if (kvmControl.displays.Count > 0)
|
||||
{
|
||||
displaySelectComboBox.Visible = true;
|
||||
displaySelectComboBox.Items.Clear();
|
||||
extraButtonsPanel.Visible = true;
|
||||
extraButtonsPanel.Controls.Clear();
|
||||
displaySelectionButtons.Clear();
|
||||
foreach (ushort displayNum in kvmControl.displays)
|
||||
{
|
||||
displayTag t;
|
||||
if (displayNum == 0xFFFF)
|
||||
{
|
||||
t = new displayTag(displayNum, Translate.T(Properties.Resources.AllDisplays, lang));
|
||||
displaySelectComboBox.Items.Add(t);
|
||||
Button b = new Button();
|
||||
b.ImageList = displaySelectorImageList;
|
||||
b.ImageIndex = (kvmControl.currentDisp == displayNum) ? 2 : 3; // All displayes
|
||||
b.Width = 32;
|
||||
b.Height = 32;
|
||||
mainToolTip.SetToolTip(b, Translate.T(Properties.Resources.AllDisplays, lang));
|
||||
b.Click += new System.EventHandler(this.displaySelectComboBox_SelectionChangeCommitted);
|
||||
b.Tag = displayNum;
|
||||
b.Dock = DockStyle.Left;
|
||||
extraButtonsPanel.Controls.Add(b);
|
||||
displaySelectionButtons.Add(displayNum, b);
|
||||
}
|
||||
else
|
||||
{
|
||||
t = new displayTag(displayNum, string.Format(Translate.T(Properties.Resources.DisplayX, lang), displayNum));
|
||||
displaySelectComboBox.Items.Add(t);
|
||||
Button b = new Button();
|
||||
b.ImageList = displaySelectorImageList;
|
||||
b.ImageIndex = (kvmControl.currentDisp == displayNum) ? 0 : 1; // One display grayed out
|
||||
b.Width = 32;
|
||||
b.Height = 32;
|
||||
mainToolTip.SetToolTip(b, string.Format(Translate.T(Properties.Resources.DisplayX, lang), displayNum));
|
||||
b.Click += new System.EventHandler(this.displaySelectComboBox_SelectionChangeCommitted);
|
||||
b.Tag = displayNum;
|
||||
b.Dock = DockStyle.Left;
|
||||
extraButtonsPanel.Controls.Add(b);
|
||||
displaySelectionButtons.Add(displayNum, b);
|
||||
}
|
||||
|
||||
if (kvmControl.currentDisp == displayNum) { displaySelectComboBox.SelectedItem = t; }
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
displaySelectComboBox.Visible = false;
|
||||
displaySelectComboBox.Items.Clear();
|
||||
extraButtonsPanel.Visible = false;
|
||||
extraButtonsPanel.Controls.Clear();
|
||||
displaySelectionButtons.Clear();
|
||||
}
|
||||
|
||||
// If there are many displays and all displays is selected, enable split/join button.
|
||||
splitButton.Visible = ((kvmControl.currentDisp == 65535) && (kvmControl.displays.Count > 1));
|
||||
}
|
||||
|
||||
private void displaySelectComboBox_SelectionChangeCommitted(object sender, EventArgs e)
|
||||
{
|
||||
if (kvmControl != null) kvmControl.SendDisplay(((displayTag)displaySelectComboBox.SelectedItem).num);
|
||||
if (splitMode) { splitButton_Click(this, null); }
|
||||
if (kvmControl != null) {
|
||||
ushort displayNum = (ushort)((Button)sender).Tag;
|
||||
kvmControl.SendDisplay(displayNum);
|
||||
}
|
||||
}
|
||||
|
||||
private void resizeKvmControl_TouchEnabledChanged(object sender, EventArgs e)
|
||||
@@ -630,5 +711,50 @@ namespace MeshCentralRouter
|
||||
{
|
||||
if (wc != null) { e.Cancel = true; }
|
||||
}
|
||||
|
||||
public void extraScreenClosed()
|
||||
{
|
||||
if (splitMode) { splitButton_Click(this, null); }
|
||||
}
|
||||
|
||||
private void splitButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (splitMode)
|
||||
{
|
||||
kvmControl.cropDisplay(Point.Empty, Rectangle.Empty);
|
||||
splitButton.Text = Translate.T(Properties.Resources.Split, lang);
|
||||
splitMode = false;
|
||||
if (extraDisplays != null)
|
||||
{
|
||||
// Close all extra displays
|
||||
for (int i = 0; i < extraDisplays.Length; i++)
|
||||
{
|
||||
KVMViewerExtra extraDisplay = extraDisplays[i];
|
||||
extraDisplay.Close();
|
||||
}
|
||||
extraDisplays = null;
|
||||
}
|
||||
}
|
||||
else if ((kvmControl.displayInfo != null) && (kvmControl.displayInfo.Length > 1))
|
||||
{
|
||||
int minx = 0;
|
||||
int miny = 0;
|
||||
foreach (Rectangle r in kvmControl.displayInfo) { if (r.X < minx) { minx = r.X; } if (r.Y < miny) { miny = r.Y; } }
|
||||
kvmControl.cropDisplay(new Point(minx, miny), kvmControl.displayInfo[0]);
|
||||
splitButton.Text = Translate.T(Properties.Resources.Join, lang);
|
||||
splitMode = true;
|
||||
|
||||
// Open extra displays
|
||||
extraDisplays = new KVMViewerExtra[kvmControl.displayInfo.Length - 1];
|
||||
for (int i = 1; i < kvmControl.displayInfo.Length; i++)
|
||||
{
|
||||
KVMViewerExtra extraDisplay = new KVMViewerExtra(parent, this, node, kvmControl, i);
|
||||
extraDisplays[i - 1] = extraDisplay;
|
||||
extraDisplay.Show(parent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
278
KVMViewer.resx
278
KVMViewer.resx
@@ -122,7 +122,7 @@
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="mainToolStripStatusLabel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1029, 17</value>
|
||||
<value>1372, 20</value>
|
||||
</data>
|
||||
<data name="mainToolStripStatusLabel.Text" xml:space="preserve">
|
||||
<value>---</value>
|
||||
@@ -131,7 +131,7 @@
|
||||
<value>MiddleLeft</value>
|
||||
</data>
|
||||
<data name="toolStripStatusLabel1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>13, 17</value>
|
||||
<value>16, 20</value>
|
||||
</data>
|
||||
<data name="toolStripStatusLabel1.Text" xml:space="preserve">
|
||||
<value>v</value>
|
||||
@@ -141,10 +141,14 @@
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="mainStatusStrip.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 727</value>
|
||||
<value>0, 897</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="mainStatusStrip.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>1, 0, 19, 0</value>
|
||||
</data>
|
||||
<data name="mainStatusStrip.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1044, 22</value>
|
||||
<value>1392, 25</value>
|
||||
</data>
|
||||
<data name="mainStatusStrip.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>9</value>
|
||||
@@ -167,7 +171,66 @@
|
||||
<metadata name="updateTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>154, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="extraButtonsPanel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Left, Right</value>
|
||||
</data>
|
||||
<data name="extraButtonsPanel.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>383, 4</value>
|
||||
</data>
|
||||
<data name="extraButtonsPanel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>658, 32</value>
|
||||
</data>
|
||||
<data name="extraButtonsPanel.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>10</value>
|
||||
</data>
|
||||
<data name=">>extraButtonsPanel.Name" xml:space="preserve">
|
||||
<value>extraButtonsPanel</value>
|
||||
</data>
|
||||
<data name=">>extraButtonsPanel.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>extraButtonsPanel.Parent" xml:space="preserve">
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>extraButtonsPanel.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="splitButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="splitButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="splitButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>1048, 4</value>
|
||||
</data>
|
||||
<data name="splitButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="splitButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>119, 32</value>
|
||||
</data>
|
||||
<data name="splitButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>8</value>
|
||||
</data>
|
||||
<data name="splitButton.Text" xml:space="preserve">
|
||||
<value>Split</value>
|
||||
</data>
|
||||
<data name="splitButton.Visible" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name=">>splitButton.Name" xml:space="preserve">
|
||||
<value>splitButton</value>
|
||||
</data>
|
||||
<data name=">>splitButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>splitButton.Parent" xml:space="preserve">
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>splitButton.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="clipOutboundButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
@@ -178,10 +241,13 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="clipOutboundButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>881, 3</value>
|
||||
<value>1175, 4</value>
|
||||
</data>
|
||||
<data name="clipOutboundButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="clipOutboundButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>30, 26</value>
|
||||
<value>40, 32</value>
|
||||
</data>
|
||||
<data name="clipOutboundButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>3</value>
|
||||
@@ -196,7 +262,7 @@
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>clipOutboundButton.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="clipInboundButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
@@ -208,10 +274,13 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="clipInboundButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>917, 3</value>
|
||||
<value>1223, 4</value>
|
||||
</data>
|
||||
<data name="clipInboundButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="clipInboundButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>30, 26</value>
|
||||
<value>40, 32</value>
|
||||
</data>
|
||||
<data name="clipInboundButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>4</value>
|
||||
@@ -232,7 +301,7 @@
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>clipInboundButton.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name="statsButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
@@ -241,10 +310,13 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="statsButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>989, 3</value>
|
||||
<value>1319, 4</value>
|
||||
</data>
|
||||
<data name="statsButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="statsButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>52, 26</value>
|
||||
<value>69, 32</value>
|
||||
</data>
|
||||
<data name="statsButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>7</value>
|
||||
@@ -262,43 +334,19 @@
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>statsButton.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="displaySelectComboBox.ItemHeight" type="System.Int32, mscorlib">
|
||||
<value>13</value>
|
||||
</data>
|
||||
<data name="displaySelectComboBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>288, 5</value>
|
||||
</data>
|
||||
<data name="displaySelectComboBox.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>128, 21</value>
|
||||
</data>
|
||||
<data name="displaySelectComboBox.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="displaySelectComboBox.Visible" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name=">>displaySelectComboBox.Name" xml:space="preserve">
|
||||
<value>displaySelectComboBox</value>
|
||||
</data>
|
||||
<data name=">>displaySelectComboBox.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>displaySelectComboBox.Parent" xml:space="preserve">
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>displaySelectComboBox.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="settingsButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="settingsButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>193, 3</value>
|
||||
<value>257, 4</value>
|
||||
</data>
|
||||
<data name="settingsButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="settingsButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>89, 26</value>
|
||||
<value>119, 32</value>
|
||||
</data>
|
||||
<data name="settingsButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>2</value>
|
||||
@@ -316,7 +364,7 @@
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>settingsButton.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="zoomButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
@@ -325,10 +373,13 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="zoomButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>953, 3</value>
|
||||
<value>1271, 4</value>
|
||||
</data>
|
||||
<data name="zoomButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="zoomButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>30, 26</value>
|
||||
<value>40, 32</value>
|
||||
</data>
|
||||
<data name="zoomButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>6</value>
|
||||
@@ -343,7 +394,7 @@
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>zoomButton.ZOrder" xml:space="preserve">
|
||||
<value>5</value>
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name="cadButton.Enabled" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
@@ -352,10 +403,13 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="cadButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>98, 3</value>
|
||||
<value>131, 4</value>
|
||||
</data>
|
||||
<data name="cadButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="cadButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>89, 26</value>
|
||||
<value>119, 32</value>
|
||||
</data>
|
||||
<data name="cadButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
@@ -373,31 +427,31 @@
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>cadButton.ZOrder" xml:space="preserve">
|
||||
<value>6</value>
|
||||
<value>7</value>
|
||||
</data>
|
||||
<metadata name="consentContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>518, 17</value>
|
||||
</metadata>
|
||||
<data name="askConsentBarToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>171, 22</value>
|
||||
<value>198, 24</value>
|
||||
</data>
|
||||
<data name="askConsentBarToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Ask Consent + Bar</value>
|
||||
</data>
|
||||
<data name="askConsentToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>171, 22</value>
|
||||
<value>198, 24</value>
|
||||
</data>
|
||||
<data name="askConsentToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Ask Consent</value>
|
||||
</data>
|
||||
<data name="privacyBarToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>171, 22</value>
|
||||
<value>198, 24</value>
|
||||
</data>
|
||||
<data name="privacyBarToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Privacy Bar</value>
|
||||
</data>
|
||||
<data name="consentContextMenuStrip.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>172, 70</value>
|
||||
<value>199, 76</value>
|
||||
</data>
|
||||
<data name=">>consentContextMenuStrip.Name" xml:space="preserve">
|
||||
<value>consentContextMenuStrip</value>
|
||||
@@ -409,10 +463,13 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="connectButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>3, 3</value>
|
||||
<value>4, 4</value>
|
||||
</data>
|
||||
<data name="connectButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="connectButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>89, 26</value>
|
||||
<value>119, 32</value>
|
||||
</data>
|
||||
<data name="connectButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
@@ -430,7 +487,7 @@
|
||||
<value>topPanel</value>
|
||||
</data>
|
||||
<data name=">>connectButton.ZOrder" xml:space="preserve">
|
||||
<value>7</value>
|
||||
<value>8</value>
|
||||
</data>
|
||||
<data name="topPanel.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Top</value>
|
||||
@@ -438,8 +495,11 @@
|
||||
<data name="topPanel.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 0</value>
|
||||
</data>
|
||||
<data name="topPanel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="topPanel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1044, 32</value>
|
||||
<value>1392, 39</value>
|
||||
</data>
|
||||
<data name="topPanel.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>11</value>
|
||||
@@ -469,10 +529,13 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="consoleMessage.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>12, 59</value>
|
||||
<value>16, 73</value>
|
||||
</data>
|
||||
<data name="consoleMessage.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 0, 4, 0</value>
|
||||
</data>
|
||||
<data name="consoleMessage.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>70, 25</value>
|
||||
<value>86, 31</value>
|
||||
</data>
|
||||
<data name="consoleMessage.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>12</value>
|
||||
@@ -502,10 +565,13 @@
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<data name="resizeKvmControl.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 32</value>
|
||||
<value>0, 39</value>
|
||||
</data>
|
||||
<data name="resizeKvmControl.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="resizeKvmControl.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1044, 695</value>
|
||||
<value>1392, 858</value>
|
||||
</data>
|
||||
<data name="resizeKvmControl.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>10</value>
|
||||
@@ -514,7 +580,7 @@
|
||||
<value>resizeKvmControl</value>
|
||||
</data>
|
||||
<data name=">>resizeKvmControl.Type" xml:space="preserve">
|
||||
<value>MeshCentralRouter.KVMResizeControl, MeshCentralRouter, Version=1.7.7835.29677, Culture=neutral, PublicKeyToken=null</value>
|
||||
<value>MeshCentralRouter.KVMResizeControl, MeshCentralRouter, Version=1.8.8096.29519, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>resizeKvmControl.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
@@ -522,14 +588,88 @@
|
||||
<data name=">>resizeKvmControl.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<metadata name="displaySelectorImageList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>752, 17</value>
|
||||
</metadata>
|
||||
<data name="displaySelectorImageList.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADs
|
||||
DgAAAk1TRnQBSQFMAgEBBAEAARABAAEQAQABEAEAARABAAT/AREBAAj/AUIBTQE2BwABNgMAASgDAAFA
|
||||
AwABIAMAAQEBAAEQBgABEP8A/wD/AP8A/wD/AP8A/wAiAAH3AV4BpQEUAaUBFAGlARQBpQEUAaUBFAGl
|
||||
ARQB9wFeEAAB9wFeAaUBFAGlARQBpQEUAaUBFAGlARQBpQEUAfcBXhAAAfcBXgGlARQBpQEUAaUBFAGl
|
||||
ARQBpQEUAaUBFAH3AV4QAAH3AV4BpQEUAaUBFAGlARQBpQEUAaUBFAGlARQB9wFeEAAB3gF7ARgBYwFr
|
||||
AS0BYwEQAYQBEAFrAS0BGAFjAd4BexAAAd4BewEYAWMBawEtAYQBEAGEARABawEtARgB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FWAbUBVgG1AVYBtQFWAbUBVgG1AVYBSgEpAUwBGQE/ASMBPwEjAT8BIwE/
|
||||
ASMBPwEjAT8BIwE/ASMBPwEjAT8BIwE/ASMBPwEjAT8BIwE/ASMBPwEjAW0BGQEpASUBtQFWAbUBVgG1
|
||||
AVYBtQFWAbUBVgG1AVYBtQFWAbUBVgG1AVYBtQFWAbUBVgG1AVYBtQFWAbUBVgFKASkBTAEZAT8BIwE/
|
||||
ASMBPwEjAT8BIwE/ASMBPwEjAT8BIwE/ASMBPwEjAT8BIwE/ASMBPwEjAT8BIwE/ASMBbQEZASkBJQG1
|
||||
AVYBtQFWAbUBVgG1AVYBtQFWAbUBVgG1AVYBtQFWAbUBVgG1AVYBtQFWAbUBVgG1AVYBtQFWAUoBKQHw
|
||||
AT0B6AEYAegBGAHoARgB6AEYAegBGAHoARgB6AEYAegBGAHoARgB6AEYAegBGAHoARgB6AEYAegBGAHv
|
||||
AT0B7wE9AecBHAHnARwB5wEcAecBHAHnARwB5wEcAecBHAHnARwB5wEcAecBHAHnARwB5wEcAecBHAHn
|
||||
ARwB7wE9AfABPQHoARgB6AEYAegBGAHoARgB6AEYAegBGAHoARgB6AEYAegBGAHoARgB6AEYAegBGAHo
|
||||
ARgB6AEYAe8BPQHvAT0B5wEcAecBHAHnARwB5wEcAecBHAHnARwB5wEcAecBHAHnARwB5wEcAecBHAHn
|
||||
ARwB5wEcAecBHAHvAT0BQgFNAT4HAAE+AwABKAMAAUADAAEgAwABAQEAAQEGAAEBFgAD/4EAAfABDwHw
|
||||
AQ8B8AEPAfABDwHwAQ8B8AEPAfABDwHwAQ8B/AE/AfwBPwH8AT8B/AE/aAAL
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
<value>8, 16</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1044, 749</value>
|
||||
<value>1392, 922</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
@@ -957,7 +1097,7 @@
|
||||
</value>
|
||||
</data>
|
||||
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>2, 2, 2, 2</value>
|
||||
<value>3, 2, 3, 2</value>
|
||||
</data>
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterScreen</value>
|
||||
@@ -1013,6 +1153,12 @@
|
||||
<data name=">>mainToolTip.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolTip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>displaySelectorImageList.Name" xml:space="preserve">
|
||||
<value>displaySelectorImageList</value>
|
||||
</data>
|
||||
<data name=">>displaySelectorImageList.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ImageList, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>KVMViewer</value>
|
||||
</data>
|
||||
|
||||
65
KVMViewerExtra.Designer.cs
generated
Normal file
65
KVMViewerExtra.Designer.cs
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
partial class KVMViewerExtra
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(KVMViewerExtra));
|
||||
this.resizeKvmControl = new MeshCentralRouter.KVMResizeControl();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// resizeKvmControl
|
||||
//
|
||||
this.resizeKvmControl.BackColor = System.Drawing.Color.Gray;
|
||||
resources.ApplyResources(this.resizeKvmControl, "resizeKvmControl");
|
||||
this.resizeKvmControl.Name = "resizeKvmControl";
|
||||
this.resizeKvmControl.ZoomToFit = false;
|
||||
this.resizeKvmControl.Enter += new System.EventHandler(this.resizeKvmControl_Enter);
|
||||
this.resizeKvmControl.Leave += new System.EventHandler(this.resizeKvmControl_Leave);
|
||||
//
|
||||
// KVMViewerExtra
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.Gray;
|
||||
this.Controls.Add(this.resizeKvmControl);
|
||||
this.Name = "KVMViewerExtra";
|
||||
this.Activated += new System.EventHandler(this.KVMViewer_Activated);
|
||||
this.Deactivate += new System.EventHandler(this.KVMViewer_Deactivate);
|
||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.KVMViewerExtra_FormClosed);
|
||||
this.Load += new System.EventHandler(this.MainForm_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private KVMResizeControl resizeKvmControl;
|
||||
}
|
||||
}
|
||||
|
||||
125
KVMViewerExtra.cs
Normal file
125
KVMViewerExtra.cs
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
Copyright 2009-2022 Intel Corporation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.Threading;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
public partial class KVMViewerExtra : Form
|
||||
{
|
||||
private MainForm parent = null;
|
||||
private KVMViewer mainViewer = null;
|
||||
private KVMControl kvmControl = null;
|
||||
public KVMControl mainKvmControl = null;
|
||||
private int displayId;
|
||||
public string lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName;
|
||||
|
||||
public KVMViewerExtra(MainForm parent, KVMViewer mainViewer, NodeClass node, KVMControl mainKvmControl, int displayId)
|
||||
{
|
||||
this.parent = parent;
|
||||
this.mainViewer = mainViewer;
|
||||
this.mainKvmControl = mainKvmControl;
|
||||
this.displayId = displayId;
|
||||
InitializeComponent();
|
||||
Translate.TranslateControl(this);
|
||||
this.Text += " - " + node.name + " (" + displayId + ")";
|
||||
kvmControl = resizeKvmControl.KVM;
|
||||
kvmControl.desktop = mainKvmControl.desktop;
|
||||
kvmControl.parentEx = this;
|
||||
//kvmControl.Visible = true;
|
||||
kvmControl.DesktopSizeChanged += KvmControl_DesktopSizeChanged;
|
||||
kvmControl.cropDisplay(mainKvmControl.displayOrigin, mainKvmControl.displayInfo[displayId]);
|
||||
resizeKvmControl.ZoomToFit = true;
|
||||
this.MouseWheel += MainForm_MouseWheel;
|
||||
}
|
||||
|
||||
public void UpdateScreenArea(Bitmap desktop, Rectangle r)
|
||||
{
|
||||
if (kvmControl.displayCrop.IntersectsWith(r) == false) return;
|
||||
Rectangle r2 = new Rectangle(r.X, r.Y, r.Width, r.Height);
|
||||
r2.Intersect(kvmControl.displayCrop);
|
||||
kvmControl.desktop = desktop;
|
||||
if (kvmControl.ScaleFactor == 1)
|
||||
{
|
||||
Rectangle r3 = new Rectangle(r2.X - kvmControl.displayCrop.X, r2.Y - kvmControl.displayCrop.Y, r2.Width, r2.Height);
|
||||
kvmControl.Repaint(r3);
|
||||
}
|
||||
else
|
||||
{
|
||||
Rectangle r3 = new Rectangle((int)(((double)(r2.X - kvmControl.displayCrop.X)) / kvmControl.ScaleFactor) - 2, (int)(((double)(r2.Y - kvmControl.displayCrop.Y)) / kvmControl.ScaleFactor) - 2, (int)(((double)r2.Width) / kvmControl.ScaleFactor) + 4, (int)(((double)r2.Height) / kvmControl.ScaleFactor) + 4);
|
||||
kvmControl.Repaint(r3);
|
||||
}
|
||||
}
|
||||
|
||||
private void KvmControl_DesktopSizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
//kvmControl.Visible = true;
|
||||
}
|
||||
|
||||
void MainForm_MouseWheel(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (e.Delta == 0) return;
|
||||
Control c = this.GetChildAtPoint(e.Location);
|
||||
if (c != null && c == resizeKvmControl) resizeKvmControl.MouseWheelEx(sender, e);
|
||||
}
|
||||
|
||||
private void MainForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Size = new Size(820, 480);
|
||||
resizeKvmControl.CenterKvmControl(false);
|
||||
kvmControl.Repaint(null);
|
||||
}
|
||||
|
||||
public void OnScreenChanged()
|
||||
{
|
||||
resizeKvmControl.CenterKvmControl(true);
|
||||
}
|
||||
|
||||
private void resizeKvmControl_Enter(object sender, EventArgs e)
|
||||
{
|
||||
kvmControl.AttachKeyboard();
|
||||
}
|
||||
|
||||
private void resizeKvmControl_Leave(object sender, EventArgs e)
|
||||
{
|
||||
kvmControl.DetacheKeyboard();
|
||||
}
|
||||
|
||||
private void KVMViewer_Deactivate(object sender, EventArgs e)
|
||||
{
|
||||
kvmControl.DetacheKeyboard();
|
||||
}
|
||||
|
||||
private void KVMViewer_Activated(object sender, EventArgs e)
|
||||
{
|
||||
kvmControl.AttachKeyboard();
|
||||
}
|
||||
|
||||
bool isPointVisibleOnAScreen(Point p)
|
||||
{
|
||||
foreach (Screen s in Screen.AllScreens) { if ((p.X < s.Bounds.Right) && (p.X > s.Bounds.Left) && (p.Y > s.Bounds.Top) && (p.Y < s.Bounds.Bottom)) return true; }
|
||||
return false;
|
||||
}
|
||||
|
||||
private void KVMViewerExtra_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
mainViewer.extraScreenClosed();
|
||||
}
|
||||
}
|
||||
}
|
||||
599
KVMViewerExtra.resx
Normal file
599
KVMViewerExtra.resx
Normal file
@@ -0,0 +1,599 @@
|
||||
<?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>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="resizeKvmControl.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="resizeKvmControl.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 0</value>
|
||||
</data>
|
||||
<data name="resizeKvmControl.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>4, 4, 4, 4</value>
|
||||
</data>
|
||||
<data name="resizeKvmControl.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>826, 522</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="resizeKvmControl.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>10</value>
|
||||
</data>
|
||||
<data name=">>resizeKvmControl.Name" xml:space="preserve">
|
||||
<value>resizeKvmControl</value>
|
||||
</data>
|
||||
<data name=">>resizeKvmControl.Type" xml:space="preserve">
|
||||
<value>MeshCentralRouter.KVMResizeControl, MeshCentralRouter, Version=1.8.8062.29471, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>resizeKvmControl.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>resizeKvmControl.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>8, 16</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>826, 522</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAkAEBAQAAEABAAoAQAAlgAAABAQAAABAAgAaAUAAL4BAAAgIBAAAQAEAOgCAAAmBwAAICAAAAEA
|
||||
CACoCAAADgoAADAwEAABAAQAaAYAALYSAAAwMAAAAQAIAKgOAAAeGQAAEBAAAAEAIABoBAAAxicAACAg
|
||||
AAABACAAqBAAAC4sAAAwMAAAAQAgAKglAADWPAAAKAAAABAAAAAgAAAAAQAEAAAAAACAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAIAAAIAAAACAgACAAAAAgACAAICAAACAgIAAwMDAAAAA/wAA/wAAAP//AP8A
|
||||
AAD/AP8A//8AAP///wAACIiHh4eAAAAPiIh4eAAAAAAIh3eAAACIiIiIiIh4eI+IiIiIiIiIiEREREZE
|
||||
Z4iIRGRMfIyMiIhlxMTIeMeIiFZEbHjIjoiIbExMiIiHiIhWxsyIiIiIiExMx4iIiIiITGzIj4+IiIhM
|
||||
TM6I6OiIiHiIiIeIiIgI+IiIiIiIiOAHAADgDwAA+B8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAoAAAAEAAAACAAAAABAAgAAAAAAAABAAAAAAAAAAAAAAAB
|
||||
AAAAAQAAAAAAAIAAAACGCwkAlAAAAJQNAgCfEQAAnBsQAJgdEQCiDgAAqQ0AAKgSAACqFQAApxkNAKUc
|
||||
DwCyEgAAsRUAALQXAAC/FgIAuBgAAL0YAACaJhwArCcVAKMnHQC7M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FgkAnhsNAIwaEgCnDAAAtAYAAKMSAACqFAAAphgGAKMbCwCqHgwAshUAALYYAAC7GQAAsR4LAIsj
|
||||
GgCVJRsAtSILALkgCwCnJBUAqyQSAK4oFwCxJRIAsCoXALsrFwCzLBoAuS4aALIwHwC6MBwAii8oAJUq
|
||||
IwCJMCkAmTAnAJkzKwCcOS8Aijs0AJw8NACvNicApTYrALUzIAC8NSIAtzopALo7KQClPDIAwxsAAMsd
|
||||
AADTHQAA5RoAAMYjCADYIQAAzzAVAOckAADwKAIA9TEKAO85FgD0OBIAwTciAMI5JADBPisAyT4oANY8
|
||||
IgClQzsAvUQ0ALdKNwDFQS0AykQvANBDLADCRjQAykUwAMRINgDKSjYAwko6AM5NOADXTjYA0VA8APRK
|
||||
KACNSUEAk0pFAJtTTgCXWFQApktEAKpRSgCzUEUAuVBCALFWTAC4VEoArVdQAKtYUgCmXVgAtF1TALBf
|
||||
WgCbY14At2BUAJVlYQCcfHkAomZhALhrYwC7c2wAoHRzAL54cAC2f3sAylVDANVaRgDiWkIA12JOANlo
|
||||
VQDpZUwA+GFDAORrVQDncl0AxHVqAM56bgDRcGIA3XRiAN57awDBfHUA5XpnAPt+ZQCugXsA3oFvAMWF
|
||||
fADYinwA5oBuAPOBawDqiHYA9Yp1APaRfQCCgoMAioqMAJ2EgwCIkI4AgJ2MAIyNkQCOkZUAjJOYAJKS
|
||||
lACWlpkAmpqbAKSKigC0iIUAs42LALGSjgCmmJgAh6SYAJ2eogCaoaYAnaWpAJ+trACjo6MApKaqAKim
|
||||
qACjqawAq6urALWpqQCurrAArLK1AK+4uwC0tLQAurO0ALW2uAC8t7gAtby/ALu7uwDOkIUAyZaPAMSf
|
||||
nADan5QA6peHAPWZhwDtn5EA8Z+QAMWhmgDaqpgA+qWNAOeolQD3qJgA97SaAMGlpADDrKsAyK2qAMqx
|
||||
rgDRsacA2LOjANSyrgDatKwAw7W0AMa4twDHvLwAyb28ANu7tADUvbgA5a+jAPOvogDks6gA+7enAOjA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f/9tqb//7en//+6rP//sJ3/766e/9bd3/+goKD8mJiYPwAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAvcDEoLKnqf+YMy3/uW1m/6hANv+YBwD/pBMA/60VAP+4GQD/wxwA/88fAP/YHAD/5S4L//ii
|
||||
kP/+xLn//r+x//7Asv//w7P//8S0///Gtf//yLb//8u6///Gsf/xtZ7/297f/6Ojo/+YmJhuAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAADAw8Z9sKqs/5k2MP+6amL/oCAT/6IMAP+vFgD/vBkA/8gdAP/RHwD/2yIA/+Ub
|
||||
AP/xRCL//r6v///Ow///yr7//8y+///PwP//0MD//9HB///Twv//1MT//9XC//W4nv/e3dz/p6io/5iY
|
||||
mJEAAAAAAAAAAAAAAAAAAAAAAAAAAL2/wlSysLL/mj83/7FSR/+eDAD/qhIA/7UYAP/AGwD/yh4A/9Qh
|
||||
AP/eIwD/6hoA//VfQv//0sn//9XK///Tx///1cj//9fJ///Yyf//2sv//9vM///czv//4NH/+b+m/+Tb
|
||||
1/+tsbH/l5iYqQAAAAAAAAAAAAAAAAAAAAAAAAAAubq9LrS2uveZRDz/oCca/6ALAP+tFQD/uRkA/8Mc
|
||||
AP/OHgD/2CEA/+MjAP/uHgD/+oVu///i3P//3NP//9zR///d0v//39P//+DT///i1f//49f//+Ta///o
|
||||
3f/9yrX/7N7Y/7q9vv+Yl5e8AAAAAAAAAAAAAAAAAAAAAAAAAACtrrEQtLe77pc+OP+UCAb/pRIA/7AW
|
||||
AP+8GgD/xhwA/9EgAP/bIwD/5yAA//IqA///r5///+vm///i2v//4tr//+Ta///m2///597//+rg///r
|
||||
4///7eX///Hq///YyP/v3db/ys7P/5eXl9QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACytbnnmVNN/5MK
|
||||
B/+nEwD/sxcA/70aAP/IHQD/1SAA/94jAP/pHwD/9j8d///Rxv//8e3//+rl///r5v//7ub//+3m///u
|
||||
5f//7OT//+rf///m2v//4tX/+8e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ADh4eI4xs3P/5dlYv+lQjn/xoF5/6s9Mf+eDAD/qBQA/6wVAP+0FwD/uxkA/8Ib
|
||||
AP/JHQD/0B8A/9YhAP/cIwD/5CQA/+sjAP/ySyn//K6f///Pxv//zsP//8/E///QxP//0sX//9PF///U
|
||||
xv//1cb//9bH///Xx///2Mj//9jJ///Zyv//28z//9XD//Wxlv/b09D/3+Dh/6Ghof+ZmZnTAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADU1NYbyc/R85x8ef+iPTP/wnZt/6AeD/+hDwD/qRQA/68V
|
||||
AP+3GAD/vhoA/8QcAP/LHgD/0yAA/9ghAP/fIwD/6CQA/+0lAP/2YUP//8K2///VzP//1Mr//9XK///W
|
||||
yv//18v//9jL///ZzP//2sz//9vN///czv//3c///93Q///f0f//4NP//93O//q5nv/dz8n/4+bn/6mp
|
||||
qf+ZmZnkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADt7e4Jys3Q3qmZmP+cOS//s1BF/5sO
|
||||
AP+kEgD/qxUA/7EWAP+5GQD/vxsA/8cdAP/OHgD/1SAA/9siAP/jJAD/6yUA//ArBP/6fmX//9LI///a
|
||||
0f//2dD//9rQ///b0f//3NH//93S///e0v//39L//+DT///h1f//4tb//+PX///k2P//5dn//+LW//3C
|
||||
qf/lz8b/6Ozu/7Ozs/+YmJjynp6eBwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzM7QuLq0
|
||||
tf+SKB7/nhsN/50PAP+mEwD/rBUA/7QXAP+8GQD/wRsA/8kdAP/RHwD/1yEA/90jAP/mJQD/7SQA//Q4
|
||||
Ev/+oI3//97X///e1///39b//9/X///g1///4df//+LY///j2P//5Nn//+Xa///m2///593//+fe///o
|
||||
3v//6d///+je///Mtv/mzMH/7fHz/8HBwf+Xl5f6nJycJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAwMHDlcPExf+NIxn/lwkA/6ARAP+nFAD/rhUA/7YXAP+9GgD/wxwA/8sdAP/TIAD/2SIA/98j
|
||||
AP/oJQD/7iUA//dKJ///uq3//+Pd///i2///49v//+Pb///j2///5dz//+bc///n3P//597//+je///p
|
||||
4P//6uH//+vi///r4///7OT//+zk///Uwv/lyLz/7/P1/8zMzP+YmJj+nJycSQAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAy8vNdsLJyv+KMSj/mQgA/6ERAP+oFAD/rxYA/7gYAP++GgD/xBwA/80e
|
||||
AP/VIAD/2yIA/+EkAP/pJQD/8CUA//piQ///z8X//+fh///l3///5t///+bf///n4P//6OD//+nh///q
|
||||
4f//6+L//+vj///s5P//7OT//+3l///s5P//7OT//+rg///Uv//owK7/8fX3/9bW1v+YmJj/m5ubawAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArq6xVcjR0/+NSUH/mQYA/6MSAP+pFAD/sBYA/7kY
|
||||
AP+/GwD/xhwA/84eAP/WIQD/3CIA/+MkAP/rJQD/8ioC//x+Zf//39j//+rl///p5P//6uT//+rk///q
|
||||
4///6uH//+nf///m3P//5Nj//+HU///czP//18T//9G8//3JtP/5w6v/9ryk//Gtjv/WppL/7/P1/+Xl
|
||||
5f+YmJj/np6ejAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0tLUNsXNz/6UZWD/lwUA/6QS
|
||||
AP+pFAD/sRYA/7oZAP/AGwD/xh0A/9AfAP/WIQD/3SIA/+QkAP/sJAD/9TEK//+TfP//39f//9/W///X
|
||||
y///0MH//8m4//3DsP/3vqn/9Lqk//S5of/0tp3/9LOY/+mulv/frpr/2LOj/9i+tP/cy8T/4tbR/+bh
|
||||
3//m5ub/8fHx/+jo6P+mpqb6s7OzTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAubm7F8HG
|
||||
yO+dhIL/lAcA/6USAP+qFAD/sxYA/7wZ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AD/wAA+AAAAf//AAD4AAH///8AAPgB
|
||||
/////wAA/P//////AAA=
|
||||
</value>
|
||||
</data>
|
||||
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>3, 2, 3, 2</value>
|
||||
</data>
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterScreen</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>Remote Desktop</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>KVMViewerExtra</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
</root>
|
||||
22
MainForm.Designer.cs
generated
22
MainForm.Designer.cs
generated
@@ -136,6 +136,8 @@
|
||||
this.settingsToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openMapFileDialog = new System.Windows.Forms.OpenFileDialog();
|
||||
this.saveMapFileDialog = new System.Windows.Forms.SaveFileDialog();
|
||||
this.customAppsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.customAppsToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.panel5.SuspendLayout();
|
||||
this.mainPanel.SuspendLayout();
|
||||
this.mainTabControl.SuspendLayout();
|
||||
@@ -515,7 +517,8 @@
|
||||
this.sortByNameToolStripMenuItem,
|
||||
this.sortByGroupToolStripMenuItem,
|
||||
this.toolStripMenuItem4,
|
||||
this.settingsToolStripMenuItem});
|
||||
this.settingsToolStripMenuItem,
|
||||
this.customAppsToolStripMenuItem1});
|
||||
this.mainContextMenuStrip.Name = "mainContextMenuStrip";
|
||||
resources.ApplyResources(this.mainContextMenuStrip, "mainContextMenuStrip");
|
||||
//
|
||||
@@ -928,7 +931,8 @@
|
||||
this.openMappingsToolStripMenuItem,
|
||||
this.saveMappingsToolStripMenuItem,
|
||||
this.toolStripMenuItem5,
|
||||
this.settingsToolStripMenuItem1});
|
||||
this.settingsToolStripMenuItem1,
|
||||
this.customAppsToolStripMenuItem});
|
||||
this.mappingsContextMenuStrip.Name = "mappingsContextMenuStrip";
|
||||
resources.ApplyResources(this.mappingsContextMenuStrip, "mappingsContextMenuStrip");
|
||||
//
|
||||
@@ -965,6 +969,18 @@
|
||||
this.saveMapFileDialog.DefaultExt = "mcrouter";
|
||||
resources.ApplyResources(this.saveMapFileDialog, "saveMapFileDialog");
|
||||
//
|
||||
// customAppsToolStripMenuItem
|
||||
//
|
||||
this.customAppsToolStripMenuItem.Name = "customAppsToolStripMenuItem";
|
||||
resources.ApplyResources(this.customAppsToolStripMenuItem, "customAppsToolStripMenuItem");
|
||||
this.customAppsToolStripMenuItem.Click += new System.EventHandler(this.customAppsToolStripMenuItem_Click);
|
||||
//
|
||||
// customAppsToolStripMenuItem1
|
||||
//
|
||||
this.customAppsToolStripMenuItem1.Name = "customAppsToolStripMenuItem1";
|
||||
resources.ApplyResources(this.customAppsToolStripMenuItem1, "customAppsToolStripMenuItem1");
|
||||
this.customAppsToolStripMenuItem1.Click += new System.EventHandler(this.customAppsToolStripMenuItem_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
@@ -1121,6 +1137,8 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem askConsentToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem privacyBarToolStripMenuItem;
|
||||
private System.Windows.Forms.PictureBox pictureBox2;
|
||||
private System.Windows.Forms.ToolStripMenuItem customAppsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem customAppsToolStripMenuItem1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
258
MainForm.cs
258
MainForm.cs
@@ -29,6 +29,7 @@ using System.Security.Cryptography.X509Certificates;
|
||||
using Microsoft.Win32;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
@@ -123,7 +124,9 @@ namespace MeshCentralRouter
|
||||
try { installProcess = System.Diagnostics.Process.Start(startInfo); } catch (Exception) { return; }
|
||||
installTimer.Enabled = true;
|
||||
installButton.Visible = false;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
hookRouter();
|
||||
installButton.Visible = !isRouterHooked();
|
||||
}
|
||||
@@ -145,8 +148,6 @@ namespace MeshCentralRouter
|
||||
return principal.IsInRole(WindowsBuiltInRole.Administrator);
|
||||
}
|
||||
|
||||
public void DeleteSubKeyTree(RegistryKey key, string subkey) { if (key.OpenSubKey(subkey) == null) { return; } DeleteSubKeyTree(key, subkey); }
|
||||
|
||||
public class DeviceComparer : IComparer
|
||||
{
|
||||
public int Compare(Object a, Object b)
|
||||
@@ -177,7 +178,7 @@ namespace MeshCentralRouter
|
||||
{
|
||||
// Normal certificate check
|
||||
if (chain.Build(new X509Certificate2(certificate)) == true) { meshcentral.certHash = webSocketClient.GetMeshKeyHash(certificate); return true; }
|
||||
if ((meshcentral.okCertHash != null) && ((meshcentral.okCertHash == certificate.GetCertHashString()) || (meshcentral.okCertHash == webSocketClient.GetMeshKeyHash(certificate)) || (meshcentral.okCertHash == webSocketClient.GetMeshCertHash(certificate)))) { meshcentral.certHash = webSocketClient.GetMeshKeyHash(certificate); return true; }
|
||||
if ((meshcentral.okCertHash != null) && ((meshcentral.okCertHash == certificate.GetCertHashString()) || (meshcentral.okCertHash == webSocketClient.GetMeshKeyHash(certificate)) || (meshcentral.okCertHash == webSocketClient.GetMeshCertHash(certificate)))) { meshcentral.certHash = webSocketClient.GetMeshKeyHash(certificate); return true; }
|
||||
if ((meshcentral.okCertHash2 != null) && ((meshcentral.okCertHash2 == certificate.GetCertHashString()) || (meshcentral.okCertHash2 == webSocketClient.GetMeshKeyHash(certificate)) || (meshcentral.okCertHash2 == webSocketClient.GetMeshCertHash(certificate)))) { meshcentral.certHash = webSocketClient.GetMeshKeyHash(certificate); return true; }
|
||||
meshcentral.certHash = null;
|
||||
meshcentral.disconnectMsg = "cert";
|
||||
@@ -214,10 +215,7 @@ namespace MeshCentralRouter
|
||||
versionLabel.Text = "v" + version.Major + "." + version.Minor + "." + version.Build;
|
||||
|
||||
// Prevent edgecase where the hook priority can be on and the hook disabled causing havoc
|
||||
if( !Settings.GetRegValue("Exp_KeyboardHook", false) )
|
||||
{
|
||||
Settings.SetRegValue("Exp_KeyboardHookPriority", false);
|
||||
}
|
||||
if (!Settings.GetRegValue("Exp_KeyboardHook", false)) { Settings.SetRegValue("Exp_KeyboardHookPriority", false); }
|
||||
|
||||
serverNameComboBox.Text = Settings.GetRegValue("ServerName", "");
|
||||
userNameTextBox.Text = Settings.GetRegValue("UserName", "");
|
||||
@@ -226,7 +224,8 @@ namespace MeshCentralRouter
|
||||
int argflags = 0;
|
||||
string update = null;
|
||||
string delete = null;
|
||||
foreach (string arg in this.args) {
|
||||
foreach (string arg in this.args)
|
||||
{
|
||||
if (arg.ToLower() == "-oldstyle") { deviceListViewMode = false; }
|
||||
if (arg.ToLower() == "-install") { hookRouter(); forceExit = true; return; }
|
||||
if (arg.ToLower() == "-uninstall") { unHookRouter(); forceExit = true; return; }
|
||||
@@ -249,7 +248,8 @@ namespace MeshCentralRouter
|
||||
}
|
||||
autoLogin = (argflags == 7);
|
||||
|
||||
if (update != null) {
|
||||
if (update != null)
|
||||
{
|
||||
// New args
|
||||
ArrayList args2 = new ArrayList();
|
||||
foreach (string a in args) { if (a.StartsWith("-update:") == false) { args2.Add(a); } }
|
||||
@@ -267,35 +267,43 @@ namespace MeshCentralRouter
|
||||
if (delete != null) { try { System.Threading.Thread.Sleep(1000); File.Delete(delete); } catch (Exception) { } }
|
||||
|
||||
// Set automatic port map values
|
||||
if (authLoginUrl != null) {
|
||||
if (authLoginUrl != null)
|
||||
{
|
||||
string autoName = null;
|
||||
string autoNodeId = null;
|
||||
string autoRemoteIp = null;
|
||||
int autoRemotePort = 0;
|
||||
int autoLocalPort = 0;
|
||||
int autoProtocol = 0;
|
||||
int autoAppId = 0;
|
||||
string autoAppIdStr = null;
|
||||
bool autoExit = false;
|
||||
try
|
||||
{
|
||||
// Automatic mappings
|
||||
autoName = getValueFromQueryString(authLoginUrl.Query, "name");
|
||||
autoNodeId = getValueFromQueryString(authLoginUrl.Query, "nodeid");
|
||||
autoRemoteIp = getValueFromQueryString(authLoginUrl.Query, "remoteip");
|
||||
int.TryParse(getValueFromQueryString(authLoginUrl.Query, "remoteport"), out autoRemotePort);
|
||||
int.TryParse(getValueFromQueryString(authLoginUrl.Query, "protocol"), out autoProtocol);
|
||||
int.TryParse(getValueFromQueryString(authLoginUrl.Query, "appid"), out autoAppId);
|
||||
autoExit = (getValueFromQueryString(authLoginUrl.Query, "autoexit") == "1");
|
||||
string localPortStr = getValueFromQueryString(authLoginUrl.Query, "localport");
|
||||
if (localPortStr != null) { autoLocalPort = int.Parse(localPortStr); }
|
||||
autoAppIdStr = getValueFromQueryString(authLoginUrl.Query, "appid");
|
||||
int.TryParse(autoAppIdStr, out autoAppId);
|
||||
}
|
||||
catch (Exception) { }
|
||||
if (((autoRemotePort != 0) && (autoProtocol != 0) && (autoNodeId != null)) || ((autoNodeId != null) && ((autoAppId == 6) || (autoAppId == 7)))) {
|
||||
if (((autoRemotePort != 0) && (autoProtocol != 0) && (autoNodeId != null)) || ((autoNodeId != null) && ((autoAppId == 6) || (autoAppId == 7))))
|
||||
{
|
||||
Dictionary<string, object> map = new Dictionary<string, object>();
|
||||
if (autoName != null) { map.Add("name", HttpUtility.UrlDecode(autoName)); }
|
||||
map.Add("nodeId", autoNodeId);
|
||||
if (autoRemoteIp != null) { map.Add("remoteIP", autoRemoteIp); }
|
||||
map.Add("remotePort", autoRemotePort);
|
||||
map.Add("localPort", autoLocalPort);
|
||||
map.Add("protocol", autoProtocol);
|
||||
map.Add("appId", autoAppId);
|
||||
map.Add("appIdStr", autoAppIdStr);
|
||||
map.Add("autoExit", autoExit);
|
||||
map.Add("launch", 1);
|
||||
mappingsToSetup = new ArrayList();
|
||||
@@ -375,10 +383,13 @@ namespace MeshCentralRouter
|
||||
// Load registry settings
|
||||
showGroupNamesToolStripMenuItem.Checked = (Settings.GetRegValue("Show Group Names", "1") == "1");
|
||||
showOfflineDevicesToolStripMenuItem.Checked = (Settings.GetRegValue("Show Offline Devices", "1") == "1");
|
||||
if (Settings.GetRegValue("Device Sort", "Name") == "Name") {
|
||||
if (Settings.GetRegValue("Device Sort", "Name") == "Name")
|
||||
{
|
||||
sortByNameToolStripMenuItem.Checked = true;
|
||||
sortByGroupToolStripMenuItem.Checked = false;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
sortByNameToolStripMenuItem.Checked = false;
|
||||
sortByGroupToolStripMenuItem.Checked = true;
|
||||
}
|
||||
@@ -525,16 +536,21 @@ namespace MeshCentralRouter
|
||||
if ((twoFactorCookie != null) && (twoFactorCookie != "")) { twoFactorCookie = "cookie=" + twoFactorCookie; } else { twoFactorCookie = null; }
|
||||
|
||||
Uri serverurl = null;
|
||||
if (authLoginUrl != null) {
|
||||
try {
|
||||
if (authLoginUrl != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
meshcentral.okCertHash2 = getValueFromQueryString(authLoginUrl.Query, "t");
|
||||
string loginkey = getValueFromQueryString(authLoginUrl.Query, "key");
|
||||
string urlstring = "wss://" + authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.LocalPath + "?auth=" + getValueFromQueryString(authLoginUrl.Query, "c");
|
||||
if (loginkey != null) { urlstring += ("&key=" + loginkey); }
|
||||
serverurl = new Uri(urlstring);
|
||||
} catch (Exception) { }
|
||||
}
|
||||
catch (Exception) { }
|
||||
meshcentral.connect(serverurl, null, null, null);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
int keyIndex = serverNameComboBox.Text.IndexOf("?key=");
|
||||
if (keyIndex >= 0)
|
||||
{
|
||||
@@ -586,14 +602,17 @@ namespace MeshCentralRouter
|
||||
meshcentral.okCertHash = lastBadConnectCert.GetCertHashString();
|
||||
|
||||
Uri serverurl = null;
|
||||
if (authLoginUrl != null) {
|
||||
if (authLoginUrl != null)
|
||||
{
|
||||
meshcentral.okCertHash2 = getValueFromQueryString(authLoginUrl.Query, "t");
|
||||
string loginkey = getValueFromQueryString(authLoginUrl.Query, "key");
|
||||
string urlstring = "wss://" + authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.LocalPath + "?auth=" + getValueFromQueryString(authLoginUrl.Query, "c");
|
||||
if (loginkey != null) { urlstring += ("&key=" + loginkey); }
|
||||
serverurl = new Uri(urlstring);
|
||||
meshcentral.connect(serverurl, null, null, null);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
// Load two factor cookie if present
|
||||
string twoFactorCookie = Settings.GetRegValue("TwoFactorCookie", null);
|
||||
if ((twoFactorCookie != null) && (twoFactorCookie != "")) { twoFactorCookie = "cookie=" + twoFactorCookie; } else { twoFactorCookie = null; }
|
||||
@@ -647,6 +666,12 @@ namespace MeshCentralRouter
|
||||
|
||||
// Setup any automatic mappings
|
||||
if ((fullRefresh == true) && (mappingsToSetup != null)) { setupMappings(); }
|
||||
|
||||
// Reconnect any auto-reconnect nodes
|
||||
foreach (NodeClass node in meshcentral.nodes.Values)
|
||||
{
|
||||
if (((node.conn & 1) != 0) && (node.desktopViewer != null)) { node.desktopViewer.TryAutoConnect(); }
|
||||
}
|
||||
}
|
||||
|
||||
class GroupComparer : IComparer
|
||||
@@ -678,16 +703,21 @@ namespace MeshCentralRouter
|
||||
device.SubItems.Add(node.getStateString());
|
||||
device.Tag = node;
|
||||
node.listitem = device;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
device = node.listitem;
|
||||
device.SubItems[0].Text = node.name;
|
||||
device.SubItems[1].Text = node.getStateString();
|
||||
}
|
||||
|
||||
if ((node.meshid != null) && meshcentral.meshes.ContainsKey(node.meshid)) { node.mesh = (MeshClass)meshcentral.meshes[node.meshid]; }
|
||||
if ((showGroupNamesToolStripMenuItem.Checked) && (node.mesh != null)) {
|
||||
if ((showGroupNamesToolStripMenuItem.Checked) && (node.mesh != null))
|
||||
{
|
||||
device.SubItems[0].Text = node.mesh.name + " - " + node.name;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
device.SubItems[0].Text = node.name;
|
||||
}
|
||||
|
||||
@@ -739,7 +769,9 @@ namespace MeshCentralRouter
|
||||
{
|
||||
// Normal search
|
||||
if (connVisible && ((search == "") || (device.SubItems[0].Text.ToLower().IndexOf(search) >= 0))) { controlsToAdd.Add(device); }
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
// User search
|
||||
bool userSearchMatch = false;
|
||||
if (node.users != null) { foreach (string user in node.users) { if (user.ToLower().IndexOf(userSearch) >= 0) { userSearchMatch = true; } } }
|
||||
@@ -748,7 +780,8 @@ namespace MeshCentralRouter
|
||||
}
|
||||
|
||||
// Add all controls at once to make it fast.
|
||||
if (controlsToAdd.Count > 0) {
|
||||
if (controlsToAdd.Count > 0)
|
||||
{
|
||||
devicesListView.Items.AddRange((ListViewItem[])controlsToAdd.ToArray(typeof(ListViewItem)));
|
||||
}
|
||||
}
|
||||
@@ -869,31 +902,41 @@ namespace MeshCentralRouter
|
||||
if (meshcentral == null) return;
|
||||
if (this.InvokeRequired) { this.Invoke(new MeshCentralServer.onStateChangedHandler(Meshcentral_onStateChanged), state); return; }
|
||||
|
||||
if (state == 0) {
|
||||
if (meshcentral.disconnectMsg == "tokenrequired") {
|
||||
if (state == 0)
|
||||
{
|
||||
if (meshcentral.disconnectMsg == "tokenrequired")
|
||||
{
|
||||
emailTokenButton.Visible = (meshcentral.disconnectEmail2FA == true) && (meshcentral.disconnectEmail2FASent == false);
|
||||
tokenEmailSentLabel.Visible = (meshcentral.disconnectEmail2FASent == true) || (meshcentral.disconnectSms2FASent == true);
|
||||
smsTokenButton.Visible = ((meshcentral.disconnectSms2FA == true) && (meshcentral.disconnectSms2FASent == false));
|
||||
if (meshcentral.disconnectEmail2FASent) { tokenEmailSentLabel.Text = Translate.T(Properties.Resources.EmailSent); }
|
||||
if (meshcentral.disconnectSms2FASent) { tokenEmailSentLabel.Text = Translate.T(Properties.Resources.SmsSent); }
|
||||
if ((meshcentral.disconnectEmail2FA == true) && (meshcentral.disconnectEmail2FASent == false)) {
|
||||
if ((meshcentral.disconnectEmail2FA == true) && (meshcentral.disconnectEmail2FASent == false))
|
||||
{
|
||||
smsTokenButton.Left = emailTokenButton.Left + emailTokenButton.Width + 5;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
smsTokenButton.Left = emailTokenButton.Left;
|
||||
}
|
||||
tokenTextBox.Text = "";
|
||||
if (meshcentral.twoFactorCookieDays > 0) {
|
||||
if (meshcentral.twoFactorCookieDays > 0)
|
||||
{
|
||||
tokenRememberCheckBox.Visible = true;
|
||||
tokenRememberCheckBox.Text = string.Format(Translate.T(Properties.Resources.DontAskXDays), meshcentral.twoFactorCookieDays);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
tokenRememberCheckBox.Visible = false;
|
||||
}
|
||||
|
||||
setPanel(2);
|
||||
tokenTextBox.Focus();
|
||||
} else { setPanel(1); }
|
||||
}
|
||||
else { setPanel(1); }
|
||||
|
||||
if ((meshcentral.disconnectMsg != null) && meshcentral.disconnectMsg.StartsWith("noauth")) {
|
||||
if ((meshcentral.disconnectMsg != null) && meshcentral.disconnectMsg.StartsWith("noauth"))
|
||||
{
|
||||
stateLabel.Text = Translate.T(Properties.Resources.InvalidUsernameOrPassword);
|
||||
stateLabel.Visible = true;
|
||||
stateClearTimer.Enabled = true;
|
||||
@@ -913,7 +956,8 @@ namespace MeshCentralRouter
|
||||
stateClearTimer.Enabled = true;
|
||||
serverNameComboBox.Focus();
|
||||
}
|
||||
else if (meshcentral.disconnectMsg == "cert") {
|
||||
else if (meshcentral.disconnectMsg == "cert")
|
||||
{
|
||||
lastBadConnectCert = meshcentral.disconnectCert;
|
||||
certDetailsTextBox.Text = "---Issuer---\r\n" + lastBadConnectCert.Issuer.Replace(", ", "\r\n") + "\r\n\r\n---Subject---\r\n" + lastBadConnectCert.Subject.Replace(", ", "\r\n");
|
||||
setPanel(3);
|
||||
@@ -929,14 +973,16 @@ namespace MeshCentralRouter
|
||||
this.Text = title;
|
||||
|
||||
// Clean up all mappings
|
||||
foreach (Control c in mapPanel.Controls) {
|
||||
foreach (Control c in mapPanel.Controls)
|
||||
{
|
||||
if (c.GetType() == typeof(MapUserControl)) { ((MapUserControl)c).Dispose(); }
|
||||
}
|
||||
mapPanel.Controls.Clear();
|
||||
noMapLabel.Visible = true;
|
||||
|
||||
// Clean up all devices (old style)
|
||||
foreach (Control c in devicesPanel.Controls) {
|
||||
foreach (Control c in devicesPanel.Controls)
|
||||
{
|
||||
if (c.GetType() == typeof(DeviceUserControl)) { ((DeviceUserControl)c).Dispose(); }
|
||||
}
|
||||
remoteAllDeviceControls();
|
||||
@@ -947,7 +993,8 @@ namespace MeshCentralRouter
|
||||
noDevicesLabel.Visible = true;
|
||||
if ((meshcentral != null) && (meshcentral.nodes != null))
|
||||
{
|
||||
foreach (NodeClass n in meshcentral.nodes.Values) {
|
||||
foreach (NodeClass n in meshcentral.nodes.Values)
|
||||
{
|
||||
if (n.desktopViewer != null) { n.desktopViewer.Close(); }
|
||||
if (n.fileViewer != null) { n.fileViewer.Close(); }
|
||||
}
|
||||
@@ -962,7 +1009,9 @@ namespace MeshCentralRouter
|
||||
meshcentral.onNodesChanged -= Meshcentral_onNodesChanged;
|
||||
meshcentral = null;
|
||||
authLoginUrl = null;
|
||||
} else if (state == 1) {
|
||||
}
|
||||
else if (state == 1)
|
||||
{
|
||||
stateLabel.Visible = false;
|
||||
//setPanel(1);
|
||||
nextButton1.Enabled = false;
|
||||
@@ -970,7 +1019,9 @@ namespace MeshCentralRouter
|
||||
userNameTextBox.Enabled = false;
|
||||
passwordTextBox.Enabled = false;
|
||||
cookieRefreshTimer.Enabled = false;
|
||||
} else if (state == 2) {
|
||||
}
|
||||
else if (state == 2)
|
||||
{
|
||||
meshcentral.disconnectMsg = "connected";
|
||||
stateLabel.Visible = false;
|
||||
setPanel(4);
|
||||
@@ -980,9 +1031,12 @@ namespace MeshCentralRouter
|
||||
Settings.SetRegValue("ServerName", serverNameComboBox.Text);
|
||||
Settings.SetRegValue("UserName", userNameTextBox.Text);
|
||||
}
|
||||
if (meshcentral.username != null) {
|
||||
if (meshcentral.username != null)
|
||||
{
|
||||
this.Text = title + " - " + meshcentral.username;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Text = title + " - " + userNameTextBox.Text;
|
||||
}
|
||||
cookieRefreshTimer.Enabled = true;
|
||||
@@ -991,7 +1045,8 @@ namespace MeshCentralRouter
|
||||
if (tokenRememberCheckBox.Checked) { meshcentral.sendCommand("{\"action\":\"twoFactorCookie\"}"); }
|
||||
|
||||
// Setup single instance pipe server
|
||||
if (authLoginUrl != null) {
|
||||
if (authLoginUrl != null)
|
||||
{
|
||||
string urlstring = "wss://" + authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.LocalPath;
|
||||
localPipeServer = new LocalPipeServer(Convert.ToBase64String(UTF8Encoding.UTF8.GetBytes(urlstring))); // + "" + meshcentral.certHash
|
||||
localPipeServer.onArgs += LocalPipeServer_onArgs;
|
||||
@@ -1011,21 +1066,25 @@ namespace MeshCentralRouter
|
||||
// Set automatic port map values
|
||||
if (authLoginUrl2 != null)
|
||||
{
|
||||
string autoName = null;
|
||||
string autoNodeId = null;
|
||||
string autoRemoteIp = null;
|
||||
int autoRemotePort = 0;
|
||||
int autoLocalPort = 0;
|
||||
int autoProtocol = 0;
|
||||
int autoAppId = 0;
|
||||
string autoAppIdStr = null;
|
||||
bool autoExit = false;
|
||||
try
|
||||
{
|
||||
// Automatic mappings
|
||||
autoName = getValueFromQueryString(authLoginUrl.Query, "name");
|
||||
autoNodeId = getValueFromQueryString(authLoginUrl2.Query, "nodeid");
|
||||
autoRemoteIp = getValueFromQueryString(authLoginUrl2.Query, "remoteip");
|
||||
int.TryParse(getValueFromQueryString(authLoginUrl2.Query, "remoteport"), out autoRemotePort);
|
||||
int.TryParse(getValueFromQueryString(authLoginUrl2.Query, "protocol"), out autoProtocol);
|
||||
int.TryParse(getValueFromQueryString(authLoginUrl2.Query, "appid"), out autoAppId);
|
||||
autoAppIdStr = getValueFromQueryString(authLoginUrl2.Query, "appid");
|
||||
int.TryParse(autoAppIdStr, out autoAppId);
|
||||
autoExit = (getValueFromQueryString(authLoginUrl2.Query, "autoexit") == "1");
|
||||
string localPortStr = getValueFromQueryString(authLoginUrl.Query, "localport");
|
||||
if (localPortStr != null) { autoLocalPort = int.Parse(localPortStr); }
|
||||
@@ -1034,12 +1093,14 @@ namespace MeshCentralRouter
|
||||
if (((autoRemotePort != 0) && (autoProtocol != 0) && (autoNodeId != null)) || ((autoNodeId != null) && ((autoAppId == 6) || (autoAppId == 7))))
|
||||
{
|
||||
Dictionary<string, object> map = new Dictionary<string, object>();
|
||||
if (autoName != null) { map.Add("name", HttpUtility.UrlDecode(autoName)); }
|
||||
map.Add("nodeId", autoNodeId);
|
||||
if (autoRemoteIp != null) { map.Add("remoteIP", autoRemoteIp); }
|
||||
map.Add("remotePort", autoRemotePort);
|
||||
map.Add("localPort", autoLocalPort);
|
||||
map.Add("protocol", autoProtocol);
|
||||
map.Add("appId", autoAppId);
|
||||
map.Add("appIdStr", autoAppIdStr);
|
||||
map.Add("autoExit", autoExit);
|
||||
map.Add("launch", 1);
|
||||
mappingsToSetup = new ArrayList();
|
||||
@@ -1060,7 +1121,8 @@ namespace MeshCentralRouter
|
||||
if ((map.protocol == 2) && (map.mapper.totalConnectCounter == 0))
|
||||
{
|
||||
// This is an unconnected UDP map, check if the target node is connected.
|
||||
foreach (NodeClass n in meshcentral.nodes.Values) {
|
||||
foreach (NodeClass n in meshcentral.nodes.Values)
|
||||
{
|
||||
if ((map.node == n) && ((n.conn & 1) != 0))
|
||||
{
|
||||
// Reconnect the UDP map
|
||||
@@ -1124,6 +1186,7 @@ namespace MeshCentralRouter
|
||||
map.localPort = (int)localPort;
|
||||
map.remotePort = (int)remotePort;
|
||||
map.appId = appId;
|
||||
if (appId == 0) { map.appIdStr = x[3].ToLower(); }
|
||||
map.node = node;
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx", ""); } else { map.host = serverNameComboBox.Text; }
|
||||
map.certhash = meshcentral.wshash;
|
||||
@@ -1185,6 +1248,7 @@ namespace MeshCentralRouter
|
||||
map.remoteIP = remoteIp.ToString();
|
||||
map.remotePort = (int)remotePort;
|
||||
map.appId = appId;
|
||||
if (appId == 0) { map.appIdStr = x[3].ToLower(); }
|
||||
map.node = node;
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx", ""); } else { map.host = serverNameComboBox.Text; }
|
||||
map.certhash = meshcentral.wshash;
|
||||
@@ -1225,6 +1289,7 @@ namespace MeshCentralRouter
|
||||
map.localPort = form.getLocalPort();
|
||||
map.remotePort = form.getRemotePort();
|
||||
map.appId = form.getAppId();
|
||||
map.appIdStr = form.getAppIdStr();
|
||||
map.node = form.getNode();
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx", ""); } else { map.host = serverNameComboBox.Text; }
|
||||
map.certhash = meshcentral.wshash;
|
||||
@@ -1258,12 +1323,15 @@ namespace MeshCentralRouter
|
||||
openWebSiteButton.Visible = false;
|
||||
|
||||
Uri serverurl = null;
|
||||
if (authLoginUrl != null) {
|
||||
if (authLoginUrl != null)
|
||||
{
|
||||
string loginkey = getValueFromQueryString(authLoginUrl.Query, "key");
|
||||
string urlstring = "wss://" + authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.LocalPath + "?auth=" + getValueFromQueryString(authLoginUrl.Query, "c");
|
||||
if (loginkey != null) { urlstring += ("&key=" + loginkey); }
|
||||
serverurl = new Uri(urlstring);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
int keyIndex = serverNameComboBox.Text.IndexOf("?key=");
|
||||
if (keyIndex >= 0)
|
||||
{
|
||||
@@ -1281,9 +1349,12 @@ namespace MeshCentralRouter
|
||||
meshcentral.debug = debug;
|
||||
meshcentral.tlsdump = tlsdump;
|
||||
meshcentral.ignoreCert = ignoreCert;
|
||||
if (lastBadConnectCert != null) {
|
||||
if (lastBadConnectCert != null)
|
||||
{
|
||||
meshcentral.okCertHash = lastBadConnectCert.GetCertHashString();
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
string ignoreCert = Settings.GetRegValue("IgnoreCert", null);
|
||||
if (ignoreCert != null) { meshcentral.okCertHash = ignoreCert; }
|
||||
}
|
||||
@@ -1383,6 +1454,7 @@ namespace MeshCentralRouter
|
||||
map.remotePort = form.getRemotePort();
|
||||
map.remoteIP = form.getRemoteIP();
|
||||
map.appId = form.getAppId();
|
||||
map.appIdStr = form.getAppIdStr();
|
||||
map.node = form.getNode();
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx", ""); } else { map.host = serverNameComboBox.Text; }
|
||||
map.certhash = meshcentral.wshash;
|
||||
@@ -1404,13 +1476,17 @@ namespace MeshCentralRouter
|
||||
private void openWebSiteButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
cancelAutoClose();
|
||||
if (meshcentral.loginCookie != null) {
|
||||
if (meshcentral.loginCookie != null)
|
||||
{
|
||||
Uri serverurl = null;
|
||||
if (authLoginUrl != null) {
|
||||
if (authLoginUrl != null)
|
||||
{
|
||||
string localPath = authLoginUrl.LocalPath;
|
||||
if (localPath.EndsWith("/control.ashx")) { localPath = localPath.Substring(0, localPath.Length - 12); }
|
||||
serverurl = new Uri("https://" + authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + localPath + "?login=" + meshcentral.loginCookie);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
serverurl = new Uri("https://" + serverNameComboBox.Text + "?login=" + meshcentral.loginCookie);
|
||||
}
|
||||
System.Diagnostics.Process.Start(serverurl.ToString());
|
||||
@@ -1450,11 +1526,14 @@ namespace MeshCentralRouter
|
||||
if (f.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
inaddrany = f.BindAllInterfaces;
|
||||
if (f.ShowSystemTray) {
|
||||
if (f.ShowSystemTray)
|
||||
{
|
||||
notifyIcon.Visible = true;
|
||||
this.ShowInTaskbar = false;
|
||||
this.MinimizeBox = false;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
notifyIcon.Visible = false;
|
||||
this.ShowInTaskbar = true;
|
||||
this.MinimizeBox = true;
|
||||
@@ -1464,10 +1543,13 @@ namespace MeshCentralRouter
|
||||
|
||||
private void searchTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (deviceListViewMode) {
|
||||
if (deviceListViewMode)
|
||||
{
|
||||
// Filter devices
|
||||
updateDeviceList();
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
// Filter devices
|
||||
int visibleDevices = 0;
|
||||
int deviceCount = 0;
|
||||
@@ -1501,9 +1583,12 @@ namespace MeshCentralRouter
|
||||
{
|
||||
cancelAutoClose();
|
||||
searchTextBox.Visible = (devicesTabControl.SelectedIndex == 0);
|
||||
if (devicesTabControl.SelectedIndex == 0) {
|
||||
if (devicesTabControl.SelectedIndex == 0)
|
||||
{
|
||||
menuLabel.ContextMenuStrip = mainContextMenuStrip;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
menuLabel.ContextMenuStrip = mappingsContextMenuStrip;
|
||||
}
|
||||
}
|
||||
@@ -1539,6 +1624,44 @@ namespace MeshCentralRouter
|
||||
map.localPort = 0; // Any
|
||||
map.remotePort = port; // HTTP
|
||||
map.appId = appId; // 0 = Custom, 1 = HTTP, 2 = HTTPS, 3 = RDP, 4 = PuTTY, 5 = WinSCP
|
||||
map.appIdStr = null;
|
||||
map.node = node;
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx", ""); } else { map.host = serverNameComboBox.Text; }
|
||||
map.certhash = meshcentral.wshash;
|
||||
map.parent = this;
|
||||
map.Dock = DockStyle.Top;
|
||||
map.Start();
|
||||
mapPanel.Controls.Add(map);
|
||||
noMapLabel.Visible = false;
|
||||
map.appButton_Click(this, null);
|
||||
}
|
||||
|
||||
public void QuickMap(int protocol, int port, string appIdStr, NodeClass node)
|
||||
{
|
||||
// See if we already have the right port mapping
|
||||
foreach (Control c in mapPanel.Controls)
|
||||
{
|
||||
if (c.GetType() == typeof(MapUserControl))
|
||||
{
|
||||
MapUserControl cc = (MapUserControl)c;
|
||||
if ((cc.protocol == protocol) && (cc.remotePort == port) && (cc.appIdStr == appIdStr) && (cc.node == node))
|
||||
{
|
||||
// Found a match
|
||||
cc.appButton_Click(this, null);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add a new port map
|
||||
MapUserControl map = new MapUserControl();
|
||||
map.xdebug = debug;
|
||||
map.inaddrany = false; // Loopback only
|
||||
map.protocol = protocol; // 1 = TCP, 2 = UDP
|
||||
map.localPort = 0; // Any
|
||||
map.remotePort = port; // HTTP
|
||||
map.appId = 0; // 0 = Custom, 1 = HTTP, 2 = HTTPS, 3 = RDP, 4 = PuTTY, 5 = WinSCP
|
||||
map.appIdStr = appIdStr;
|
||||
map.node = node;
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx", ""); } else { map.host = serverNameComboBox.Text; }
|
||||
map.certhash = meshcentral.wshash;
|
||||
@@ -1572,7 +1695,7 @@ namespace MeshCentralRouter
|
||||
|
||||
private void tokenTextBox_KeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
nextButton2.Enabled = (tokenTextBox.Text.Replace(" ","") != "");
|
||||
nextButton2.Enabled = (tokenTextBox.Text.Replace(" ", "") != "");
|
||||
}
|
||||
|
||||
private void tokenTextBox_TextChanged(object sender, EventArgs e)
|
||||
@@ -1603,7 +1726,7 @@ namespace MeshCentralRouter
|
||||
private void hideOfflineDevicesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
showOfflineDevicesToolStripMenuItem.Checked = !showOfflineDevicesToolStripMenuItem.Checked;
|
||||
Settings.SetRegValue("Show Offline Devices", showOfflineDevicesToolStripMenuItem.Checked?"1":"0");
|
||||
Settings.SetRegValue("Show Offline Devices", showOfflineDevicesToolStripMenuItem.Checked ? "1" : "0");
|
||||
updateDeviceList();
|
||||
}
|
||||
|
||||
@@ -1663,7 +1786,8 @@ namespace MeshCentralRouter
|
||||
if (jsonAction["mappings"] != null)
|
||||
{
|
||||
ArrayList mappings = (ArrayList)jsonAction["mappings"];
|
||||
if (mappings.Count > 0) {
|
||||
if (mappings.Count > 0)
|
||||
{
|
||||
mappingsToSetup = mappings;
|
||||
if (mode == 2) { setupMappings(); }
|
||||
}
|
||||
@@ -1715,9 +1839,10 @@ namespace MeshCentralRouter
|
||||
if (x.ContainsKey("remoteIP")) { map.remoteIP = (string)x["remoteIP"]; }
|
||||
map.remotePort = (int)x["remotePort"];
|
||||
map.appId = (int)x["appId"];
|
||||
if (x["appIdStr"] != null) { map.appIdStr = (string)x["appIdStr"]; }
|
||||
if (x.ContainsKey("autoExit")) { map.autoexit = (bool)x["autoExit"]; }
|
||||
map.node = node;
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx",""); } else { map.host = serverNameComboBox.Text; }
|
||||
if (authLoginUrl != null) { map.host = authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.AbsolutePath.Replace("/control.ashx", ""); } else { map.host = serverNameComboBox.Text; }
|
||||
map.certhash = meshcentral.wshash;
|
||||
map.parent = this;
|
||||
map.Dock = DockStyle.Top;
|
||||
@@ -1763,6 +1888,7 @@ namespace MeshCentralRouter
|
||||
text += " \"meshId\": \"" + mapCtrl.node.meshid + "\",\r\n";
|
||||
text += " \"nodeId\": \"" + mapCtrl.node.nodeid + "\",\r\n";
|
||||
text += " \"appId\": " + mapCtrl.appId + ",\r\n";
|
||||
if (mapCtrl.appIdStr != null) { text += " \"appIdStr\": \"" + mapCtrl.appIdStr + "\",\r\n"; }
|
||||
text += " \"protocol\": " + map.protocol + ",\r\n";
|
||||
text += " \"localPort\": " + map.localport + ",\r\n";
|
||||
if (map.remoteip != null) { text += " \"remoteIP\": \"" + map.remoteip + "\",\r\n"; }
|
||||
@@ -2040,6 +2166,14 @@ namespace MeshCentralRouter
|
||||
cancelAutoClose();
|
||||
}
|
||||
|
||||
private void customAppsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
CustomAppsForm f = new CustomAppsForm(Settings.GetApplications());
|
||||
if (f.ShowDialog(this) == DialogResult.OK) {
|
||||
Settings.SetApplications(f.getApplications());
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
private delegate void displayMessageHandler(string msg, int buttons, string extra, int progress);
|
||||
private void displayMessage(string msg, int buttons = 0, string extra = "", int progress = 0)
|
||||
|
||||
548
MainForm.resx
548
MainForm.resx
File diff suppressed because it is too large
Load Diff
@@ -31,6 +31,7 @@ namespace MeshCentralRouter
|
||||
public string remoteIP = null;
|
||||
public int remotePort;
|
||||
public int appId;
|
||||
public string appIdStr;
|
||||
public NodeClass node;
|
||||
public MainForm parent;
|
||||
public MeshMapper mapper;
|
||||
@@ -72,7 +73,7 @@ namespace MeshCentralRouter
|
||||
public void Start()
|
||||
{
|
||||
routingStatusLabel.Text = Translate.T(Properties.Resources.Starting);
|
||||
appButton.Enabled = (appId != 0);
|
||||
appButton.Enabled = (appId != 0) || (appIdStr != null);
|
||||
mapper = new MeshMapper();
|
||||
mapper.xdebug = xdebug;
|
||||
mapper.inaddrany = inaddrany;
|
||||
@@ -110,7 +111,8 @@ namespace MeshCentralRouter
|
||||
if (protocol == 2) {
|
||||
statemsg = "UDP: " + statemsg;
|
||||
} else {
|
||||
if (appId == 1) { statemsg = "HTTP: " + statemsg; }
|
||||
if ((appId == 0) && (appIdStr != null)) { statemsg = appIdStr + ": " + statemsg; }
|
||||
else if (appId == 1) { statemsg = "HTTP: " + statemsg; }
|
||||
else if (appId == 2) { statemsg = "HTTPS: " + statemsg; }
|
||||
else if (appId == 3) { statemsg = "RDP: " + statemsg; }
|
||||
else if (appId == 4) { statemsg = "PuTTY: " + statemsg; }
|
||||
@@ -125,6 +127,23 @@ namespace MeshCentralRouter
|
||||
bool shift = false;
|
||||
if (Control.ModifierKeys == Keys.Shift) { shift = true; }
|
||||
|
||||
if (appId == 0)
|
||||
{
|
||||
if (appIdStr == null) return;
|
||||
string appCmd = null;
|
||||
string appArgs = null;
|
||||
List<String[]> apps = Settings.GetApplications();
|
||||
foreach (String[] app in apps) { if (app[1].ToLower() == appIdStr.ToLower()) { appCmd = app[2]; if (app[3] != null) { appArgs = app[3].Replace("%P", mapper.localport.ToString()).Replace("%L", "127.0.0.1").Replace("%N", "xxx"); } } }
|
||||
if (appCmd != null) {
|
||||
// Launch the process
|
||||
System.Diagnostics.Process proc = null;
|
||||
try { proc = System.Diagnostics.Process.Start(appCmd, appArgs); } catch (System.ComponentModel.Win32Exception) { }
|
||||
// Setup auto-exit
|
||||
if ((autoexit == true) && (parent.autoExitProc == null)) { parent.autoExitProc = proc; parent.SetAutoClose(); autoExitTimer.Enabled = true; }
|
||||
autoexit = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (appId == 1) { System.Diagnostics.Process.Start("http://localhost:" + mapper.localport); }
|
||||
if (appId == 2) { System.Diagnostics.Process.Start("https://localhost:" + mapper.localport); }
|
||||
if (appId == 3)
|
||||
@@ -153,6 +172,7 @@ namespace MeshCentralRouter
|
||||
|
||||
// Setup auto-exit
|
||||
if ((autoexit == true) && (parent.autoExitProc == null)) { parent.autoExitProc = proc; parent.SetAutoClose(); autoExitTimer.Enabled = true; }
|
||||
autoexit = false;
|
||||
}
|
||||
if (appId == 4)
|
||||
{
|
||||
@@ -179,6 +199,7 @@ namespace MeshCentralRouter
|
||||
|
||||
// Setup auto-exit
|
||||
if ((autoexit == true) && (parent.autoExitProc == null)) { parent.autoExitProc = proc; parent.SetAutoClose(); autoExitTimer.Enabled = true; }
|
||||
autoexit = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -209,6 +230,7 @@ namespace MeshCentralRouter
|
||||
|
||||
// Setup auto-exit
|
||||
if ((autoexit == true) && (parent.autoExitProc == null)) { parent.autoExitProc = proc; parent.SetAutoClose(); autoExitTimer.Enabled = true; }
|
||||
autoexit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,6 +248,7 @@ namespace MeshCentralRouter
|
||||
|
||||
// Setup auto-exit
|
||||
if ((autoexit == true) && (parent.autoExitProc == null)) { parent.autoExitProc = proc; parent.SetAutoClose(); autoExitTimer.Enabled = true; }
|
||||
autoexit = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -246,6 +269,7 @@ namespace MeshCentralRouter
|
||||
|
||||
// Setup auto-exit
|
||||
if ((autoexit == true) && (parent.autoExitProc == null)) { parent.autoExitProc = proc; parent.SetAutoClose(); autoExitTimer.Enabled = true; }
|
||||
autoexit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,24 @@
|
||||
<Compile Include="AddRelayMapForm.designer.cs">
|
||||
<DependentUpon>AddRelayMapForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomAppsAddForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomAppsAddForm.Designer.cs">
|
||||
<DependentUpon>CustomAppsAddForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomAppsForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomAppsForm.Designer.cs">
|
||||
<DependentUpon>CustomAppsForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomAppsRunForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomAppsRunForm.Designer.cs">
|
||||
<DependentUpon>CustomAppsRunForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FileConfirmOverwriteForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -109,6 +127,12 @@
|
||||
<Compile Include="ListViewExtended.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="KVMViewerExtra.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="KVMViewerExtra.Designer.cs">
|
||||
<DependentUpon>KVMViewerExtra.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="LocalPipe.cs" />
|
||||
<Compile Include="SshUsernameForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
@@ -271,12 +295,24 @@
|
||||
<EmbeddedResource Include="AddRelayMapForm.resx">
|
||||
<DependentUpon>AddRelayMapForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CustomAppsAddForm.resx">
|
||||
<DependentUpon>CustomAppsAddForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CustomAppsForm.resx">
|
||||
<DependentUpon>CustomAppsForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CustomAppsRunForm.resx">
|
||||
<DependentUpon>CustomAppsRunForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FileConfirmOverwriteForm.resx">
|
||||
<DependentUpon>FileConfirmOverwriteForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FileDialogMsgForm.resx">
|
||||
<DependentUpon>FileDialogMsgForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="KVMViewerExtra.resx">
|
||||
<DependentUpon>KVMViewerExtra.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SshUsernameForm.resx">
|
||||
<DependentUpon>SshUsernameForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -370,6 +406,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="MeshServer.ico" />
|
||||
<None Include="Resources\icon-monitor1.png" />
|
||||
<None Include="Resources\folderzip.png" />
|
||||
<None Include="Resources\arrowleft16.png" />
|
||||
<None Include="Resources\arrowright16.png" />
|
||||
|
||||
@@ -399,7 +399,7 @@ namespace MeshCentralRouter
|
||||
if (node.ContainsKey("agent"))
|
||||
{
|
||||
n.agentid = (int)((Dictionary<string, object>)node["agent"])["id"];
|
||||
n.agentcaps = (int)((Dictionary<string, object>)node["agent"])["caps"];
|
||||
if (((Dictionary<string, object>)node["agent"]).ContainsKey("caps")) { n.agentcaps = (int)((Dictionary<string, object>)node["agent"])["caps"]; } else { n.agentcaps = 0; }
|
||||
}
|
||||
if (node.ContainsKey("conn")) { n.conn = (int)node["conn"]; }
|
||||
n.icon = 1;
|
||||
@@ -541,7 +541,7 @@ namespace MeshCentralRouter
|
||||
if (node.ContainsKey("agent"))
|
||||
{
|
||||
n.agentid = (int)((Dictionary<string, object>)node["agent"])["id"];
|
||||
n.agentcaps = (int)((Dictionary<string, object>)node["agent"])["caps"];
|
||||
if (((Dictionary<string, object>)node["agent"]).ContainsKey("caps")) { n.agentcaps = (int)((Dictionary<string, object>)node["agent"])["caps"]; } else { n.agentcaps = 0; }
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -588,7 +588,7 @@ namespace MeshCentralRouter
|
||||
if (node.ContainsKey("agent"))
|
||||
{
|
||||
n.agentid = (int)((Dictionary<string, object>)node["agent"])["id"];
|
||||
n.agentcaps = (int)((Dictionary<string, object>)node["agent"])["caps"];
|
||||
if (((Dictionary<string, object>)node["agent"]).ContainsKey("caps")) { n.agentcaps = (int)((Dictionary<string, object>)node["agent"])["caps"]; } else { n.agentcaps = 0; }
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
28
Properties/Resources.Designer.cs
generated
28
Properties/Resources.Designer.cs
generated
@@ -424,6 +424,16 @@ namespace MeshCentralRouter.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap icon_monitor1 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("icon-monitor1", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
@@ -481,6 +491,15 @@ namespace MeshCentralRouter.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Join.
|
||||
/// </summary>
|
||||
internal static string Join {
|
||||
get {
|
||||
return ResourceManager.GetString("Join", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Changing language will close this tool. Are you sure?.
|
||||
/// </summary>
|
||||
@@ -835,6 +854,15 @@ namespace MeshCentralRouter.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Split.
|
||||
/// </summary>
|
||||
internal static string Split {
|
||||
get {
|
||||
return ResourceManager.GetString("Split", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Starting....
|
||||
/// </summary>
|
||||
|
||||
@@ -120,21 +120,18 @@
|
||||
<data name="CIRA" xml:space="preserve">
|
||||
<value>CIRA</value>
|
||||
</data>
|
||||
<data name="ToggleRemoteDesktopConnection" xml:space="preserve">
|
||||
<value>Toggle remote desktop connection</value>
|
||||
</data>
|
||||
<data name="UnableToOpenFileX" xml:space="preserve">
|
||||
<value>Unable to open file: {0}</value>
|
||||
<data name="ChangeRemoteDesktopSettings" xml:space="preserve">
|
||||
<value>Change remote desktop settings</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="MeshCentral" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\MeshCentral.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="Gear20" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Gear20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Connect" xml:space="preserve">
|
||||
<value>Connect</value>
|
||||
<data name="iconClipboardIn" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\icon-clipboard-in.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="XBytes" xml:space="preserve">
|
||||
<value>{0} Bytes</value>
|
||||
<data name="ZipSelectedFiles" xml:space="preserve">
|
||||
<value>ZIP Selected Files</value>
|
||||
</data>
|
||||
<data name="Denied" xml:space="preserve">
|
||||
<value>Denied</value>
|
||||
@@ -142,12 +139,6 @@
|
||||
<data name="InvalidUsernameOrPassword" xml:space="preserve">
|
||||
<value>Invalid username or password</value>
|
||||
</data>
|
||||
<data name="XbytesPersec" xml:space="preserve">
|
||||
<value>{0} bytes/sec</value>
|
||||
</data>
|
||||
<data name="Slow" xml:space="preserve">
|
||||
<value>Slow</value>
|
||||
</data>
|
||||
<data name="DisplayConnectionStatistics" xml:space="preserve">
|
||||
<value>Display connection statistics</value>
|
||||
</data>
|
||||
@@ -157,14 +148,14 @@
|
||||
<data name="Computer50" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\50-Computer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Almostdone" xml:space="preserve">
|
||||
<value>Almost done</value>
|
||||
</data>
|
||||
<data name="EmailSent" xml:space="preserve">
|
||||
<value>Email sent</value>
|
||||
</data>
|
||||
<data name="PortXtoIPPortY" xml:space="preserve">
|
||||
<value>Port {0} to {1}:{2}</value>
|
||||
</data>
|
||||
<data name="xminutesleft" xml:space="preserve">
|
||||
<value>{0} minutes left</value>
|
||||
<data name="Rename" xml:space="preserve">
|
||||
<value>Rename</value>
|
||||
</data>
|
||||
<data name="FailedToStartRemoteTerminalSession" xml:space="preserve">
|
||||
<value>Failed to start remote terminal session</value>
|
||||
@@ -175,8 +166,8 @@
|
||||
<data name="EmptyBanner" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Empty-Banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="PuttyAppName" xml:space="preserve">
|
||||
<value>PuTTY SSH client</value>
|
||||
<data name="ReceivedInvalidNetworkData" xml:space="preserve">
|
||||
<value>Received invalid network data</value>
|
||||
</data>
|
||||
<data name="XMbytesPersec" xml:space="preserve">
|
||||
<value>{0} Mbytes/sec</value>
|
||||
@@ -184,8 +175,8 @@
|
||||
<data name="refresh16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\refresh16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NoToolsAllowed" xml:space="preserve">
|
||||
<value>No tools allowed</value>
|
||||
<data name="delete16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\delete16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SendCtrlAltDelToRemoteDevice" xml:space="preserve">
|
||||
<value>Send Ctrl-Alt-Del to remote device</value>
|
||||
@@ -193,20 +184,23 @@
|
||||
<data name="Fast" xml:space="preserve">
|
||||
<value>Fast</value>
|
||||
</data>
|
||||
<data name="xsecondsleft" xml:space="preserve">
|
||||
<value>{0} seconds left</value>
|
||||
<data name="RecordedSession" xml:space="preserve">
|
||||
<value>, Recorded Session</value>
|
||||
</data>
|
||||
<data name="SearchPlaceHolder" xml:space="preserve">
|
||||
<value>Search</value>
|
||||
</data>
|
||||
<data name="OverwriteOneFile" xml:space="preserve">
|
||||
<value>Overwrite 1 file?</value>
|
||||
<data name="SendTokenEmail" xml:space="preserve">
|
||||
<value>Send token to registered email address?</value>
|
||||
</data>
|
||||
<data name="DontAskXDays" xml:space="preserve">
|
||||
<value>Don't ask for {0} days.</value>
|
||||
</data>
|
||||
<data name="Rename" xml:space="preserve">
|
||||
<value>Rename</value>
|
||||
<data name="Stopped2" xml:space="preserve">
|
||||
<value>Stopped</value>
|
||||
</data>
|
||||
<data name="MeshCentral" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\MeshCentral.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Connecting" xml:space="preserve">
|
||||
<value>Connecting...</value>
|
||||
@@ -214,11 +208,14 @@
|
||||
<data name="MeshCentralTitle" xml:space="preserve">
|
||||
<value>MeshCentral</value>
|
||||
</data>
|
||||
<data name="folderzip" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\folderzip.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="FailedToStartRemoteDesktopSession" xml:space="preserve">
|
||||
<value>Failed to start remote desktop session</value>
|
||||
</data>
|
||||
<data name="ReceivedInvalidNetworkData" xml:space="preserve">
|
||||
<value>Received invalid network data</value>
|
||||
<data name="Offline" xml:space="preserve">
|
||||
<value>Offline</value>
|
||||
</data>
|
||||
<data name="EmailVerificationRequired" xml:space="preserve">
|
||||
<value>Email verification required</value>
|
||||
@@ -229,20 +226,20 @@
|
||||
<data name="UnableToWriteFileX" xml:space="preserve">
|
||||
<value>Unable to write file: {0}</value>
|
||||
</data>
|
||||
<data name="WinscpAppName" xml:space="preserve">
|
||||
<value>WinSCP client</value>
|
||||
</data>
|
||||
<data name="XKbytesPersec" xml:space="preserve">
|
||||
<value>{0} Kbytes/sec</value>
|
||||
</data>
|
||||
<data name="LanguagesChanging" xml:space="preserve">
|
||||
<value>Changing language will close this tool. Are you sure?</value>
|
||||
</data>
|
||||
<data name="InvalidDownload" xml:space="preserve">
|
||||
<value>Invalid download.</value>
|
||||
<data name="Connected" xml:space="preserve">
|
||||
<value>Connected</value>
|
||||
</data>
|
||||
<data name="RemoveXItems" xml:space="preserve">
|
||||
<value>Remove {0} items?</value>
|
||||
</data>
|
||||
<data name="ChangeRemoteDesktopSettings" xml:space="preserve">
|
||||
<value>Change remote desktop settings</value>
|
||||
<data name="Close" xml:space="preserve">
|
||||
<value>Close</value>
|
||||
</data>
|
||||
<data name="SendTokenSMS" xml:space="preserve">
|
||||
<value>Send token to registered phone number?</value>
|
||||
@@ -256,17 +253,20 @@
|
||||
<data name="PushLocaClipboardToRemoteDevice" xml:space="preserve">
|
||||
<value>Push local clipboard to remote device</value>
|
||||
</data>
|
||||
<data name="UnableToBindToLocalPort" xml:space="preserve">
|
||||
<value>Unable to bind to local port</value>
|
||||
<data name="xminutesleft" xml:space="preserve">
|
||||
<value>{0} minutes left</value>
|
||||
</data>
|
||||
<data name="iconClipboardIn" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\icon-clipboard-in.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="ToggleRemoteDesktopConnection" xml:space="preserve">
|
||||
<value>Toggle remote desktop connection</value>
|
||||
</data>
|
||||
<data name="MC2Banner" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\MC2-Banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="Local" xml:space="preserve">
|
||||
<value>Local</value>
|
||||
</data>
|
||||
<data name="ErrorUploadingFileX" xml:space="preserve">
|
||||
<value>Error uploading file: {0}</value>
|
||||
<data name="Join" xml:space="preserve">
|
||||
<value>Join</value>
|
||||
</data>
|
||||
<data name="Relay" xml:space="preserve">
|
||||
<value>Relay</value>
|
||||
</data>
|
||||
<data name="Disconnected" xml:space="preserve">
|
||||
<value>Disconnected</value>
|
||||
@@ -280,8 +280,8 @@
|
||||
<data name="Medium" xml:space="preserve">
|
||||
<value>Medium</value>
|
||||
</data>
|
||||
<data name="RemotePlus" xml:space="preserve">
|
||||
<value>Remote - {0}</value>
|
||||
<data name="PuttyAppName" xml:space="preserve">
|
||||
<value>PuTTY SSH client</value>
|
||||
</data>
|
||||
<data name="PullClipboardFromRemoteDevice" xml:space="preserve">
|
||||
<value>Pull clipboard from remote device</value>
|
||||
@@ -295,26 +295,23 @@
|
||||
<data name="PortXtoPortY" xml:space="preserve">
|
||||
<value>Port {0} to port {1}</value>
|
||||
</data>
|
||||
<data name="VerySlow" xml:space="preserve">
|
||||
<value>Very slow</value>
|
||||
</data>
|
||||
<data name="Remove1Item" xml:space="preserve">
|
||||
<value>Remove 1 item?</value>
|
||||
</data>
|
||||
<data name="ManyConnections" xml:space="preserve">
|
||||
<value>, {0} connections.</value>
|
||||
<data name="OverwriteOneFile" xml:space="preserve">
|
||||
<value>Overwrite 1 file?</value>
|
||||
</data>
|
||||
<data name="IndividualDevices" xml:space="preserve">
|
||||
<value>(Individual Devices)</value>
|
||||
</data>
|
||||
<data name="xinstall" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\xinstall.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="Split" xml:space="preserve">
|
||||
<value>Split</value>
|
||||
</data>
|
||||
<data name="CreateFolder" xml:space="preserve">
|
||||
<value>Create Folder</value>
|
||||
</data>
|
||||
<data name="arrowright16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrowright16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="XBytes" xml:space="preserve">
|
||||
<value>{0} Bytes</value>
|
||||
</data>
|
||||
<data name="Updating" xml:space="preserve">
|
||||
<value>Updating...</value>
|
||||
@@ -334,8 +331,8 @@
|
||||
<data name="xhoursleft" xml:space="preserve">
|
||||
<value>{0} hours left</value>
|
||||
</data>
|
||||
<data name="iconClipboardOut" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\icon-clipboard-out.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="InvalidDownload" xml:space="preserve">
|
||||
<value>Invalid download.</value>
|
||||
</data>
|
||||
<data name="WaitingForUserToGrantAccess" xml:space="preserve">
|
||||
<value>Waiting for user to grant access...</value>
|
||||
@@ -346,26 +343,29 @@
|
||||
<data name="AllDisplays" xml:space="preserve">
|
||||
<value>All Displays</value>
|
||||
</data>
|
||||
<data name="HelpRelayMap" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\HelpRelayMap.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="xsecondsleft" xml:space="preserve">
|
||||
<value>{0} seconds left</value>
|
||||
</data>
|
||||
<data name="MeshCentralRouter" xml:space="preserve">
|
||||
<value>MeshCentral Router</value>
|
||||
<data name="xinstall" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\xinstall.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Disconnect" xml:space="preserve">
|
||||
<value>Disconnect</value>
|
||||
</data>
|
||||
<data name="AMT" xml:space="preserve">
|
||||
<value>AMT</value>
|
||||
</data>
|
||||
<data name="Local" xml:space="preserve">
|
||||
<value>Local</value>
|
||||
<data name="PortXtoIPPortY" xml:space="preserve">
|
||||
<value>Port {0} to {1}:{2}</value>
|
||||
</data>
|
||||
<data name="Relay" xml:space="preserve">
|
||||
<value>Relay</value>
|
||||
<data name="ErrorUploadingFileX" xml:space="preserve">
|
||||
<value>Error uploading file: {0}</value>
|
||||
</data>
|
||||
<data name="icons01" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\icons01.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="UnableToConnect" xml:space="preserve">
|
||||
<value>Unable to connect</value>
|
||||
<data name="RemoveXItems" xml:space="preserve">
|
||||
<value>Remove {0} items?</value>
|
||||
</data>
|
||||
<data name="Setup" xml:space="preserve">
|
||||
<value>Setup...</value>
|
||||
@@ -376,14 +376,17 @@
|
||||
<data name="arrowleft16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrowleft16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Close" xml:space="preserve">
|
||||
<value>Close</value>
|
||||
<data name="UnableToConnect" xml:space="preserve">
|
||||
<value>Unable to connect</value>
|
||||
</data>
|
||||
<data name="AddXUsers" xml:space="preserve">
|
||||
<value>, {0} users</value>
|
||||
<data name="UnableToBindToLocalPort" xml:space="preserve">
|
||||
<value>Unable to bind to local port</value>
|
||||
</data>
|
||||
<data name="Disconnect" xml:space="preserve">
|
||||
<value>Disconnect</value>
|
||||
<data name="NoToolsAllowed" xml:space="preserve">
|
||||
<value>No tools allowed</value>
|
||||
</data>
|
||||
<data name="arrowright16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrowright16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="LanguagesTitle" xml:space="preserve">
|
||||
<value>Languages</value>
|
||||
@@ -391,14 +394,17 @@
|
||||
<data name="LocalPlus" xml:space="preserve">
|
||||
<value>Local - {0}</value>
|
||||
</data>
|
||||
<data name="Gear20" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Gear20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="XbytesPersec" xml:space="preserve">
|
||||
<value>{0} bytes/sec</value>
|
||||
</data>
|
||||
<data name="Offline" xml:space="preserve">
|
||||
<value>Offline</value>
|
||||
<data name="iconClipboardOut" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\icon-clipboard-out.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="RecordedSession" xml:space="preserve">
|
||||
<value>, Recorded Session</value>
|
||||
<data name="VerySlow" xml:space="preserve">
|
||||
<value>Very slow</value>
|
||||
</data>
|
||||
<data name="MeshCentralRouter" xml:space="preserve">
|
||||
<value>MeshCentral Router</value>
|
||||
</data>
|
||||
<data name="OneByte" xml:space="preserve">
|
||||
<value>{0} Byte</value>
|
||||
@@ -409,43 +415,46 @@
|
||||
<data name="folderup16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\folderup16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="delete16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\delete16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="UnableToOpenFileX" xml:space="preserve">
|
||||
<value>Unable to open file: {0}</value>
|
||||
</data>
|
||||
<data name="WinscpAppName" xml:space="preserve">
|
||||
<value>WinSCP client</value>
|
||||
<data name="MC2Banner" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\MC2-Banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="OneConnection" xml:space="preserve">
|
||||
<value>, 1 connection.</value>
|
||||
</data>
|
||||
<data name="Connect" xml:space="preserve">
|
||||
<value>Connect</value>
|
||||
</data>
|
||||
<data name="TwoFactorAuthentication" xml:space="preserve">
|
||||
<value>Two-factor Authentication</value>
|
||||
</data>
|
||||
<data name="Agent" xml:space="preserve">
|
||||
<value>Agent</value>
|
||||
</data>
|
||||
<data name="Connected" xml:space="preserve">
|
||||
<value>Connected</value>
|
||||
<data name="ManyConnections" xml:space="preserve">
|
||||
<value>, {0} connections.</value>
|
||||
</data>
|
||||
<data name="RemotePlus" xml:space="preserve">
|
||||
<value>Remote - {0}</value>
|
||||
</data>
|
||||
<data name="ErrorDownloadingFileX" xml:space="preserve">
|
||||
<value>Error downloading file: {0}</value>
|
||||
</data>
|
||||
<data name="Almostdone" xml:space="preserve">
|
||||
<value>Almost done</value>
|
||||
<data name="HelpRelayMap" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\HelpRelayMap.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Remote" xml:space="preserve">
|
||||
<value>Remote</value>
|
||||
</data>
|
||||
<data name="SendTokenEmail" xml:space="preserve">
|
||||
<value>Send token to registered email address?</value>
|
||||
<data name="Slow" xml:space="preserve">
|
||||
<value>Slow</value>
|
||||
</data>
|
||||
<data name="Stopped2" xml:space="preserve">
|
||||
<value>Stopped</value>
|
||||
<data name="AddXUsers" xml:space="preserve">
|
||||
<value>, {0} users</value>
|
||||
</data>
|
||||
<data name="folderzip" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\folderzip.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ZipSelectedFiles" xml:space="preserve">
|
||||
<value>ZIP Selected Files</value>
|
||||
<data name="icon-monitor1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\icon-monitor1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
BIN
Resources/icon-monitor1.png
Normal file
BIN
Resources/icon-monitor1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 396 B |
BIN
Resources/icon-monitor1b.png
Normal file
BIN
Resources/icon-monitor1b.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 339 B |
BIN
Resources/icon-monitor2.png
Normal file
BIN
Resources/icon-monitor2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 461 B |
BIN
Resources/icon-monitor2b.png
Normal file
BIN
Resources/icon-monitor2b.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 409 B |
BIN
Resources/monitor32.png
Normal file
BIN
Resources/monitor32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 848 B |
56
Settings.cs
56
Settings.cs
@@ -15,6 +15,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
using Microsoft.Win32;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
@@ -37,7 +38,11 @@ namespace MeshCentralRouter
|
||||
/// <returns></returns>
|
||||
public static string GetRegValue(string name, string value)
|
||||
{
|
||||
try { return Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router", name, value).ToString(); } catch (Exception) { return value; }
|
||||
try {
|
||||
String v = (String)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router", name, value);
|
||||
if (v == null) return value;
|
||||
return v.ToString();
|
||||
} catch (Exception) { return value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// This function querys the registry. If the key is found it returns the value as a boolean
|
||||
@@ -49,5 +54,54 @@ namespace MeshCentralRouter
|
||||
{
|
||||
try { return bool.Parse(GetRegValue(name, value.ToString())); } catch (Exception) { return value; }
|
||||
}
|
||||
|
||||
public static void SetApplications(List<string[]> apps)
|
||||
{
|
||||
ClearApplications();
|
||||
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router\Applications", true))
|
||||
{
|
||||
foreach (string[] app in apps)
|
||||
{
|
||||
using (RegistryKey skey = key.CreateSubKey(app[0]))
|
||||
{
|
||||
skey.SetValue("Protocol", app[1]);
|
||||
skey.SetValue("Command", app[2]);
|
||||
skey.SetValue("Arguments", app[3]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static List<string[]> GetApplications()
|
||||
{
|
||||
List<string[]> apps = new List<string[]>();
|
||||
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router\Applications\", false))
|
||||
{
|
||||
string[] keys = key.GetSubKeyNames();
|
||||
foreach (string k in keys)
|
||||
{
|
||||
using (RegistryKey key2 = Registry.CurrentUser.OpenSubKey(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router\Applications\" + k, false))
|
||||
{
|
||||
string protocol = (string)key2.GetValue("Protocol");
|
||||
string command = (string)key2.GetValue("Command");
|
||||
string args = (string)key2.GetValue("Arguments");
|
||||
String[] a = new string[4];
|
||||
a[0] = k;
|
||||
a[1] = protocol;
|
||||
a[2] = command;
|
||||
a[3] = args;
|
||||
apps.Add(a);
|
||||
}
|
||||
}
|
||||
}
|
||||
return apps;
|
||||
}
|
||||
|
||||
public static void ClearApplications()
|
||||
{
|
||||
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router", true);
|
||||
key.DeleteSubKeyTree("Applications");
|
||||
key.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user