193 lines
8.3 KiB
C#
193 lines
8.3 KiB
C#
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
using System.Reflection;
|
|
|
|
namespace EthernetSwitcher
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <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.label1 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.comboBoxMode = new System.Windows.Forms.ComboBox();
|
|
this.comboBoxProtocol = new System.Windows.Forms.ComboBox();
|
|
this.comboBoxPrimary = new System.Windows.Forms.ComboBox();
|
|
this.comboBoxSecondary = new System.Windows.Forms.ComboBox();
|
|
this.trackBarInterval = new System.Windows.Forms.TrackBar();
|
|
this.SuspendLayout();
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(20, 20);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(99, 13);
|
|
this.label1.TabIndex = 0;
|
|
this.label1.Text = "Режим работы:";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(20, 60);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(82, 13);
|
|
this.label2.TabIndex = 1;
|
|
this.label2.Text = "Основной интерфейс:";
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(20, 100);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(103, 13);
|
|
this.label3.TabIndex = 2;
|
|
this.label3.Text = "Резервный интерфейс:";
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.AutoSize = true;
|
|
this.label5.Location = new System.Drawing.Point(20, 145);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(78, 13);
|
|
this.label5.TabIndex = 4;
|
|
this.label5.Text = "IP протокол:";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(20, 185);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(126, 13);
|
|
this.label4.TabIndex = 3;
|
|
this.label4.Text = "Интервал проверки: 5 сек";
|
|
//
|
|
// comboBoxMode
|
|
//
|
|
this.comboBoxMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.comboBoxMode.FormattingEnabled = true;
|
|
this.comboBoxMode.Items.AddRange(new object[] {
|
|
"Auto",
|
|
"Primary",
|
|
"Secondary",
|
|
"Disabled"});
|
|
this.comboBoxMode.Location = new System.Drawing.Point(150, 17);
|
|
this.comboBoxMode.Name = "comboBoxMode";
|
|
this.comboBoxMode.Size = new System.Drawing.Size(200, 21);
|
|
this.comboBoxMode.TabIndex = 4;
|
|
//
|
|
// comboBoxPrimary
|
|
//
|
|
this.comboBoxPrimary.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.comboBoxPrimary.FormattingEnabled = true;
|
|
this.comboBoxPrimary.Location = new System.Drawing.Point(150, 57);
|
|
this.comboBoxPrimary.Name = "comboBoxPrimary";
|
|
this.comboBoxPrimary.Size = new System.Drawing.Size(200, 21);
|
|
this.comboBoxPrimary.TabIndex = 5;
|
|
//
|
|
// comboBoxSecondary
|
|
//
|
|
this.comboBoxSecondary.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.comboBoxSecondary.FormattingEnabled = true;
|
|
this.comboBoxSecondary.Location = new System.Drawing.Point(150, 97);
|
|
this.comboBoxSecondary.Name = "comboBoxSecondary";
|
|
this.comboBoxSecondary.Size = new System.Drawing.Size(200, 21);
|
|
this.comboBoxSecondary.TabIndex = 6;
|
|
//
|
|
// comboBoxProtocol
|
|
//
|
|
this.comboBoxProtocol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.comboBoxProtocol.FormattingEnabled = true;
|
|
this.comboBoxProtocol.Items.AddRange(new object[] {
|
|
"IPv4",
|
|
"IPv6",
|
|
"IPv4 + IPv6"});
|
|
this.comboBoxProtocol.Location = new System.Drawing.Point(150, 142);
|
|
this.comboBoxProtocol.Name = "comboBoxProtocol";
|
|
this.comboBoxProtocol.Size = new System.Drawing.Size(200, 21);
|
|
this.comboBoxProtocol.TabIndex = 8;
|
|
//
|
|
// trackBarInterval
|
|
//
|
|
this.trackBarInterval.AutoSize = false;
|
|
this.trackBarInterval.LargeChange = 5;
|
|
this.trackBarInterval.Location = new System.Drawing.Point(150, 180);
|
|
this.trackBarInterval.Maximum = 30;
|
|
this.trackBarInterval.Minimum = 1;
|
|
this.trackBarInterval.Name = "trackBarInterval";
|
|
this.trackBarInterval.Size = new System.Drawing.Size(200, 45);
|
|
this.trackBarInterval.SmallChange = 1;
|
|
this.trackBarInterval.TabIndex = 7;
|
|
this.trackBarInterval.TickFrequency = 1;
|
|
this.trackBarInterval.Value = 5;
|
|
this.trackBarInterval.ValueChanged += new System.EventHandler(this.TrackBarInterval_ValueChanged);
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(400, 270);
|
|
this.Controls.Add(this.comboBoxProtocol);
|
|
this.Controls.Add(this.trackBarInterval);
|
|
this.Controls.Add(this.comboBoxSecondary);
|
|
this.Controls.Add(this.comboBoxPrimary);
|
|
this.Controls.Add(this.comboBoxMode);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.label5);
|
|
this.Controls.Add(this.label1);
|
|
this.Text = "Ethernet Switcher Settings";
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
|
|
this.ShowInTaskbar = false;
|
|
this.Icon = new Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("EthernetSwitcher.icon.ico"));
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.ComboBox comboBoxMode;
|
|
private System.Windows.Forms.ComboBox comboBoxPrimary;
|
|
private System.Windows.Forms.ComboBox comboBoxSecondary;
|
|
private System.Windows.Forms.TrackBar trackBarInterval;
|
|
private System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.ComboBox comboBoxProtocol;
|
|
private NotifyIcon trayIcon;
|
|
}
|
|
} |