mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-06 00:13:33 +00:00
405 lines
20 KiB
C#
405 lines
20 KiB
C#
using System.Windows.Forms;
|
|
|
|
namespace MeshCentralRouter
|
|
{
|
|
|
|
public class BlankPanel : System.Windows.Forms.Panel
|
|
{
|
|
public BlankPanel()
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnPaintBackground(PaintEventArgs e)
|
|
{
|
|
// Do not paint background.
|
|
}
|
|
}
|
|
|
|
partial class KVMViewer
|
|
{
|
|
/// <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(KVMViewer));
|
|
this.mainMenu = new System.Windows.Forms.MenuStrip();
|
|
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.MenuItemConnect = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.MenuItemDisconnect = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.MenuItemExit = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.zoomtofitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.statusToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.debugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.pauseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.actionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.sendCtrlAltDelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.mainStatusStrip = new System.Windows.Forms.StatusStrip();
|
|
this.mainToolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
|
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
|
|
this.updateTimer = new System.Windows.Forms.Timer(this.components);
|
|
this.topPanel = new System.Windows.Forms.Panel();
|
|
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();
|
|
this.connectButton = new System.Windows.Forms.Button();
|
|
this.resizeKvmControl = new MeshCentralRouter.KVMResizeControl();
|
|
this.mainMenu.SuspendLayout();
|
|
this.mainStatusStrip.SuspendLayout();
|
|
this.topPanel.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// mainMenu
|
|
//
|
|
this.mainMenu.BackColor = System.Drawing.SystemColors.Menu;
|
|
this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.toolStripMenuItem2,
|
|
this.viewToolStripMenuItem,
|
|
this.actionsToolStripMenuItem});
|
|
this.mainMenu.Location = new System.Drawing.Point(0, 0);
|
|
this.mainMenu.Name = "mainMenu";
|
|
this.mainMenu.Size = new System.Drawing.Size(1227, 24);
|
|
this.mainMenu.TabIndex = 1;
|
|
this.mainMenu.Text = "menuStrip1";
|
|
//
|
|
// toolStripMenuItem2
|
|
//
|
|
this.toolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.MenuItemConnect,
|
|
this.MenuItemDisconnect,
|
|
this.toolStripMenuItem5,
|
|
this.settingsToolStripMenuItem,
|
|
this.toolStripMenuItem1,
|
|
this.MenuItemExit});
|
|
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
|
this.toolStripMenuItem2.Size = new System.Drawing.Size(59, 20);
|
|
this.toolStripMenuItem2.Text = "&Control";
|
|
this.toolStripMenuItem2.DropDownOpening += new System.EventHandler(this.toolStripMenuItem2_DropDownOpening);
|
|
//
|
|
// MenuItemConnect
|
|
//
|
|
this.MenuItemConnect.Name = "MenuItemConnect";
|
|
this.MenuItemConnect.Size = new System.Drawing.Size(167, 22);
|
|
this.MenuItemConnect.Text = "&Connect...";
|
|
this.MenuItemConnect.Click += new System.EventHandler(this.MenuItemConnect_Click);
|
|
//
|
|
// MenuItemDisconnect
|
|
//
|
|
this.MenuItemDisconnect.Name = "MenuItemDisconnect";
|
|
this.MenuItemDisconnect.Size = new System.Drawing.Size(167, 22);
|
|
this.MenuItemDisconnect.Text = "&Disconnect";
|
|
this.MenuItemDisconnect.Click += new System.EventHandler(this.MenuItemDisconnect_Click);
|
|
//
|
|
// toolStripMenuItem5
|
|
//
|
|
this.toolStripMenuItem5.Name = "toolStripMenuItem5";
|
|
this.toolStripMenuItem5.Size = new System.Drawing.Size(164, 6);
|
|
//
|
|
// settingsToolStripMenuItem
|
|
//
|
|
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
|
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(167, 22);
|
|
this.settingsToolStripMenuItem.Text = "Session Settings...";
|
|
this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click);
|
|
//
|
|
// toolStripMenuItem1
|
|
//
|
|
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
|
this.toolStripMenuItem1.Size = new System.Drawing.Size(164, 6);
|
|
//
|
|
// MenuItemExit
|
|
//
|
|
this.MenuItemExit.Name = "MenuItemExit";
|
|
this.MenuItemExit.Size = new System.Drawing.Size(167, 22);
|
|
this.MenuItemExit.Text = "E&xit";
|
|
this.MenuItemExit.Click += new System.EventHandler(this.MenuItemExit_Click);
|
|
//
|
|
// viewToolStripMenuItem
|
|
//
|
|
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.zoomtofitToolStripMenuItem,
|
|
this.statusToolStripMenuItem,
|
|
this.debugToolStripMenuItem,
|
|
this.toolStripMenuItem6,
|
|
this.refreshToolStripMenuItem,
|
|
this.pauseToolStripMenuItem});
|
|
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
|
|
this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
|
|
this.viewToolStripMenuItem.Text = "&View";
|
|
this.viewToolStripMenuItem.DropDownOpening += new System.EventHandler(this.viewToolStripMenuItem_DropDownOpening);
|
|
//
|
|
// zoomtofitToolStripMenuItem
|
|
//
|
|
this.zoomtofitToolStripMenuItem.CheckOnClick = true;
|
|
this.zoomtofitToolStripMenuItem.Name = "zoomtofitToolStripMenuItem";
|
|
this.zoomtofitToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
|
|
this.zoomtofitToolStripMenuItem.Text = "&Zoom-to-fit";
|
|
this.zoomtofitToolStripMenuItem.CheckStateChanged += new System.EventHandler(this.zoomtofitToolStripMenuItem_CheckStateChanged);
|
|
//
|
|
// statusToolStripMenuItem
|
|
//
|
|
this.statusToolStripMenuItem.Checked = true;
|
|
this.statusToolStripMenuItem.CheckOnClick = true;
|
|
this.statusToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
this.statusToolStripMenuItem.Name = "statusToolStripMenuItem";
|
|
this.statusToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
|
|
this.statusToolStripMenuItem.Text = "&Status";
|
|
this.statusToolStripMenuItem.CheckedChanged += new System.EventHandler(this.statusToolStripMenuItem_CheckedChanged);
|
|
//
|
|
// debugToolStripMenuItem
|
|
//
|
|
this.debugToolStripMenuItem.CheckOnClick = true;
|
|
this.debugToolStripMenuItem.Name = "debugToolStripMenuItem";
|
|
this.debugToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
|
|
this.debugToolStripMenuItem.Text = "&Debug";
|
|
this.debugToolStripMenuItem.Click += new System.EventHandler(this.debugToolStripMenuItem_Click);
|
|
//
|
|
// toolStripMenuItem6
|
|
//
|
|
this.toolStripMenuItem6.Name = "toolStripMenuItem6";
|
|
this.toolStripMenuItem6.Size = new System.Drawing.Size(135, 6);
|
|
//
|
|
// refreshToolStripMenuItem
|
|
//
|
|
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
|
this.refreshToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
|
|
this.refreshToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
|
|
this.refreshToolStripMenuItem.Text = "&Refresh";
|
|
//
|
|
// pauseToolStripMenuItem
|
|
//
|
|
this.pauseToolStripMenuItem.Name = "pauseToolStripMenuItem";
|
|
this.pauseToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F7;
|
|
this.pauseToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
|
|
this.pauseToolStripMenuItem.Text = "&Pause";
|
|
//
|
|
// actionsToolStripMenuItem
|
|
//
|
|
this.actionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.sendCtrlAltDelToolStripMenuItem});
|
|
this.actionsToolStripMenuItem.Name = "actionsToolStripMenuItem";
|
|
this.actionsToolStripMenuItem.Size = new System.Drawing.Size(59, 20);
|
|
this.actionsToolStripMenuItem.Text = "Actions";
|
|
//
|
|
// sendCtrlAltDelToolStripMenuItem
|
|
//
|
|
this.sendCtrlAltDelToolStripMenuItem.Name = "sendCtrlAltDelToolStripMenuItem";
|
|
this.sendCtrlAltDelToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
|
|
this.sendCtrlAltDelToolStripMenuItem.Text = "Send &Ctrl-Alt-Del";
|
|
this.sendCtrlAltDelToolStripMenuItem.Click += new System.EventHandler(this.sendCtrlAltDelToolStripMenuItem_Click);
|
|
//
|
|
// mainStatusStrip
|
|
//
|
|
this.mainStatusStrip.BackColor = System.Drawing.SystemColors.Menu;
|
|
this.mainStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.mainToolStripStatusLabel,
|
|
this.toolStripStatusLabel1});
|
|
this.mainStatusStrip.Location = new System.Drawing.Point(0, 787);
|
|
this.mainStatusStrip.Name = "mainStatusStrip";
|
|
this.mainStatusStrip.Size = new System.Drawing.Size(1227, 22);
|
|
this.mainStatusStrip.TabIndex = 9;
|
|
this.mainStatusStrip.Text = "statusStrip1";
|
|
//
|
|
// mainToolStripStatusLabel
|
|
//
|
|
this.mainToolStripStatusLabel.Name = "mainToolStripStatusLabel";
|
|
this.mainToolStripStatusLabel.Size = new System.Drawing.Size(1212, 17);
|
|
this.mainToolStripStatusLabel.Spring = true;
|
|
this.mainToolStripStatusLabel.Text = "---";
|
|
this.mainToolStripStatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
//
|
|
// toolStripStatusLabel1
|
|
//
|
|
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
|
|
this.toolStripStatusLabel1.Size = new System.Drawing.Size(13, 17);
|
|
this.toolStripStatusLabel1.Text = "v";
|
|
this.toolStripStatusLabel1.Visible = false;
|
|
//
|
|
// updateTimer
|
|
//
|
|
this.updateTimer.Enabled = true;
|
|
this.updateTimer.Interval = 1000;
|
|
this.updateTimer.Tick += new System.EventHandler(this.updateTimer_Tick);
|
|
//
|
|
// topPanel
|
|
//
|
|
this.topPanel.BackColor = System.Drawing.SystemColors.Control;
|
|
this.topPanel.Controls.Add(this.displaySelectComboBox);
|
|
this.topPanel.Controls.Add(this.settingsButton);
|
|
this.topPanel.Controls.Add(this.zoomButton);
|
|
this.topPanel.Controls.Add(this.cadButton);
|
|
this.topPanel.Controls.Add(this.connectButton);
|
|
this.topPanel.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.topPanel.Location = new System.Drawing.Point(0, 24);
|
|
this.topPanel.Name = "topPanel";
|
|
this.topPanel.Size = new System.Drawing.Size(1227, 32);
|
|
this.topPanel.TabIndex = 11;
|
|
this.topPanel.Visible = false;
|
|
//
|
|
// displaySelectComboBox
|
|
//
|
|
this.displaySelectComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.displaySelectComboBox.Location = new System.Drawing.Point(383, 5);
|
|
this.displaySelectComboBox.Name = "displaySelectComboBox";
|
|
this.displaySelectComboBox.Size = new System.Drawing.Size(128, 21);
|
|
this.displaySelectComboBox.TabIndex = 6;
|
|
this.displaySelectComboBox.TabStop = false;
|
|
this.displaySelectComboBox.Visible = false;
|
|
this.displaySelectComboBox.SelectionChangeCommitted += new System.EventHandler(this.displaySelectComboBox_SelectionChangeCommitted);
|
|
//
|
|
// settingsButton
|
|
//
|
|
this.settingsButton.Location = new System.Drawing.Point(288, 3);
|
|
this.settingsButton.Name = "settingsButton";
|
|
this.settingsButton.Size = new System.Drawing.Size(89, 26);
|
|
this.settingsButton.TabIndex = 5;
|
|
this.settingsButton.TabStop = false;
|
|
this.settingsButton.Text = "Settings";
|
|
this.settingsButton.UseVisualStyleBackColor = true;
|
|
this.settingsButton.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click);
|
|
//
|
|
// zoomButton
|
|
//
|
|
this.zoomButton.Location = new System.Drawing.Point(193, 3);
|
|
this.zoomButton.Name = "zoomButton";
|
|
this.zoomButton.Size = new System.Drawing.Size(89, 26);
|
|
this.zoomButton.TabIndex = 4;
|
|
this.zoomButton.TabStop = false;
|
|
this.zoomButton.Text = "Zoom-to-Fit";
|
|
this.zoomButton.UseVisualStyleBackColor = true;
|
|
this.zoomButton.Click += new System.EventHandler(this.zoomButton_Click);
|
|
//
|
|
// cadButton
|
|
//
|
|
this.cadButton.Location = new System.Drawing.Point(98, 3);
|
|
this.cadButton.Name = "cadButton";
|
|
this.cadButton.Size = new System.Drawing.Size(89, 26);
|
|
this.cadButton.TabIndex = 1;
|
|
this.cadButton.TabStop = false;
|
|
this.cadButton.Text = "Ctrl-Alt-Del";
|
|
this.cadButton.UseVisualStyleBackColor = true;
|
|
this.cadButton.Click += new System.EventHandler(this.sendCtrlAltDelToolStripMenuItem_Click);
|
|
//
|
|
// connectButton
|
|
//
|
|
this.connectButton.Location = new System.Drawing.Point(3, 3);
|
|
this.connectButton.Name = "connectButton";
|
|
this.connectButton.Size = new System.Drawing.Size(89, 26);
|
|
this.connectButton.TabIndex = 0;
|
|
this.connectButton.TabStop = false;
|
|
this.connectButton.Text = "Connect";
|
|
this.connectButton.UseVisualStyleBackColor = true;
|
|
this.connectButton.Click += new System.EventHandler(this.MenuItemDisconnect_Click);
|
|
//
|
|
// resizeKvmControl
|
|
//
|
|
this.resizeKvmControl.BackColor = System.Drawing.Color.Gray;
|
|
this.resizeKvmControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.resizeKvmControl.Location = new System.Drawing.Point(0, 56);
|
|
this.resizeKvmControl.Name = "resizeKvmControl";
|
|
this.resizeKvmControl.Size = new System.Drawing.Size(1227, 731);
|
|
this.resizeKvmControl.TabIndex = 10;
|
|
this.resizeKvmControl.ZoomToFit = false;
|
|
this.resizeKvmControl.StateChanged += new System.EventHandler(this.kvmControl_StateChanged);
|
|
this.resizeKvmControl.DisplaysReceived += new System.EventHandler(this.resizeKvmControl_DisplaysReceived);
|
|
//
|
|
// KVMViewer
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.Gray;
|
|
this.ClientSize = new System.Drawing.Size(1227, 809);
|
|
this.Controls.Add(this.resizeKvmControl);
|
|
this.Controls.Add(this.topPanel);
|
|
this.Controls.Add(this.mainStatusStrip);
|
|
this.Controls.Add(this.mainMenu);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.Margin = new System.Windows.Forms.Padding(2);
|
|
this.Name = "KVMViewer";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Remote Desktop";
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Main_FormClosing);
|
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
|
this.Resize += new System.EventHandler(this.MainForm_Resize);
|
|
this.mainMenu.ResumeLayout(false);
|
|
this.mainMenu.PerformLayout();
|
|
this.mainStatusStrip.ResumeLayout(false);
|
|
this.mainStatusStrip.PerformLayout();
|
|
this.topPanel.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private MenuStrip mainMenu;
|
|
private ToolStripMenuItem toolStripMenuItem2;
|
|
private ToolStripMenuItem MenuItemConnect;
|
|
private ToolStripMenuItem MenuItemExit;
|
|
private ToolStripMenuItem MenuItemDisconnect;
|
|
private StatusStrip mainStatusStrip;
|
|
private ToolStripStatusLabel mainToolStripStatusLabel;
|
|
private Timer updateTimer;
|
|
private ToolStripSeparator toolStripMenuItem1;
|
|
private ToolStripMenuItem viewToolStripMenuItem;
|
|
private ToolStripMenuItem statusToolStripMenuItem;
|
|
private ToolStripMenuItem debugToolStripMenuItem;
|
|
private ToolStripMenuItem settingsToolStripMenuItem;
|
|
private ToolStripMenuItem refreshToolStripMenuItem;
|
|
private ToolStripMenuItem pauseToolStripMenuItem;
|
|
private ToolStripSeparator toolStripMenuItem5;
|
|
private KVMResizeControl resizeKvmControl;
|
|
private ToolStripStatusLabel toolStripStatusLabel1;
|
|
private ToolStripMenuItem zoomtofitToolStripMenuItem;
|
|
private ToolStripMenuItem actionsToolStripMenuItem;
|
|
private ToolStripMenuItem sendCtrlAltDelToolStripMenuItem;
|
|
private Panel topPanel;
|
|
private Button connectButton;
|
|
private Button cadButton;
|
|
private Button zoomButton;
|
|
private Button settingsButton;
|
|
private ComboBox displaySelectComboBox;
|
|
private ToolStripSeparator toolStripMenuItem6;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|