1 Star 5 Fork 4

BraidyLiu/网络切换工具

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Form1.Designer.cs 7.42 KB
一键复制 编辑 原始数据 按行查看 历史
刘炳迪 提交于 2020-07-31 09:58 . 增加纯外网模式
namespace NetworkSwitch
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.btnListen = new System.Windows.Forms.Button();
this.btnLocal = new System.Windows.Forms.Button();
this.btnInternet = new System.Windows.Forms.Button();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.退出ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.btnOnlyInternet = new System.Windows.Forms.Button();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// btnListen
//
this.btnListen.Location = new System.Drawing.Point(452, 32);
this.btnListen.Name = "btnListen";
this.btnListen.Size = new System.Drawing.Size(130, 65);
this.btnListen.TabIndex = 0;
this.btnListen.Text = "启动监听";
this.toolTip1.SetToolTip(this.btnListen, "监听USB网卡的拔插,插入则自动切换双网络,拔出则切换仅内网。");
this.btnListen.UseVisualStyleBackColor = true;
this.btnListen.Click += new System.EventHandler(this.btnListen_Click);
//
// btnLocal
//
this.btnLocal.Location = new System.Drawing.Point(44, 32);
this.btnLocal.Name = "btnLocal";
this.btnLocal.Size = new System.Drawing.Size(130, 65);
this.btnLocal.TabIndex = 0;
this.btnLocal.Text = "仅内网";
this.toolTip1.SetToolTip(this.btnLocal, "只需要上内网时使用");
this.btnLocal.UseVisualStyleBackColor = true;
this.btnLocal.Click += new System.EventHandler(this.btnLocal_Click);
//
// btnInternet
//
this.btnInternet.Location = new System.Drawing.Point(316, 32);
this.btnInternet.Name = "btnInternet";
this.btnInternet.Size = new System.Drawing.Size(130, 65);
this.btnInternet.TabIndex = 0;
this.btnInternet.Text = "双网络";
this.toolTip1.SetToolTip(this.btnInternet, "两块网卡,一个上外网一个上内网,使用此模式时,可以同时访问内外网资源");
this.btnInternet.UseVisualStyleBackColor = true;
this.btnInternet.Click += new System.EventHandler(this.btnInternet_Click);
//
// notifyIcon1
//
this.notifyIcon1.BalloonTipText = "双网切换工具";
this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "双网切换工具";
this.notifyIcon1.Visible = true;
this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);
//
// contextMenuStrip1
//
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.退出ToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(109, 28);
//
// 退出ToolStripMenuItem
//
this.退出ToolStripMenuItem.Name = "退出ToolStripMenuItem";
this.退出ToolStripMenuItem.Size = new System.Drawing.Size(108, 24);
this.退出ToolStripMenuItem.Text = "退出";
this.退出ToolStripMenuItem.Click += new System.EventHandler(this.退出ToolStripMenuItem_Click);
//
// toolTip1
//
this.toolTip1.AutoPopDelay = 25000;
this.toolTip1.InitialDelay = 500;
this.toolTip1.ReshowDelay = 500;
//
// btnOnlyInternet
//
this.btnOnlyInternet.Location = new System.Drawing.Point(180, 32);
this.btnOnlyInternet.Name = "btnOnlyInternet";
this.btnOnlyInternet.Size = new System.Drawing.Size(130, 65);
this.btnOnlyInternet.TabIndex = 1;
this.btnOnlyInternet.Text = "仅外网";
this.toolTip1.SetToolTip(this.btnOnlyInternet, "监听USB网卡的拔插,插入则自动切换双网络,拔出则切换仅内网。");
this.btnOnlyInternet.UseVisualStyleBackColor = true;
this.btnOnlyInternet.Click += new System.EventHandler(this.btnOnlyInternet_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.ClientSize = new System.Drawing.Size(632, 149);
this.Controls.Add(this.btnOnlyInternet);
this.Controls.Add(this.btnInternet);
this.Controls.Add(this.btnLocal);
this.Controls.Add(this.btnListen);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.Opacity = 0.95D;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "双网切换工具";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load);
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btnListen;
private System.Windows.Forms.Button btnLocal;
private System.Windows.Forms.Button btnInternet;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem 退出ToolStripMenuItem;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.Button btnOnlyInternet;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/lbd/network_switching_tools.git
git@gitee.com:lbd/network_switching_tools.git
lbd
network_switching_tools
网络切换工具
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385