168 lines
6.5 KiB
C#
168 lines
6.5 KiB
C#
namespace FileSend
|
|
{
|
|
partial class StartPanel
|
|
{
|
|
/// <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.button_OpenServer = new Button();
|
|
this.button_ConnectServer = new Button();
|
|
this.textBox_IP = new TextBox();
|
|
this.label1 = new Label();
|
|
this.label2 = new Label();
|
|
this.textBox_Port = new TextBox();
|
|
this.button_Setting = new Button();
|
|
this.button_PullFile = new Button();
|
|
this.button_PushFile = new Button();
|
|
this.SuspendLayout();
|
|
//
|
|
// button_OpenServer
|
|
//
|
|
this.button_OpenServer.Location = new Point(355, 270);
|
|
this.button_OpenServer.Name = "button_OpenServer";
|
|
this.button_OpenServer.Size = new Size(84, 23);
|
|
this.button_OpenServer.TabIndex = 0;
|
|
this.button_OpenServer.Text = "开启服务器";
|
|
this.button_OpenServer.UseVisualStyleBackColor = true;
|
|
this.button_OpenServer.Click += this.button_OpenServer_Click;
|
|
//
|
|
// button_ConnectServer
|
|
//
|
|
this.button_ConnectServer.Location = new Point(355, 309);
|
|
this.button_ConnectServer.Name = "button_ConnectServer";
|
|
this.button_ConnectServer.Size = new Size(84, 23);
|
|
this.button_ConnectServer.TabIndex = 1;
|
|
this.button_ConnectServer.Text = "连接服务器";
|
|
this.button_ConnectServer.UseVisualStyleBackColor = true;
|
|
this.button_ConnectServer.Click += this.button_ConnectServer_Click;
|
|
//
|
|
// textBox_IP
|
|
//
|
|
this.textBox_IP.Location = new Point(355, 176);
|
|
this.textBox_IP.Name = "textBox_IP";
|
|
this.textBox_IP.Size = new Size(100, 23);
|
|
this.textBox_IP.TabIndex = 2;
|
|
this.textBox_IP.Text = "127.0.0.1";
|
|
this.textBox_IP.TextChanged += this.textBox1_TextChanged;
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new Point(327, 179);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new Size(22, 17);
|
|
this.label1.TabIndex = 3;
|
|
this.label1.Text = "IP:";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new Point(314, 218);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new Size(35, 17);
|
|
this.label2.TabIndex = 5;
|
|
this.label2.Text = "Port:";
|
|
//
|
|
// textBox_Port
|
|
//
|
|
this.textBox_Port.Location = new Point(355, 215);
|
|
this.textBox_Port.Name = "textBox_Port";
|
|
this.textBox_Port.Size = new Size(100, 23);
|
|
this.textBox_Port.TabIndex = 4;
|
|
this.textBox_Port.Text = "7789";
|
|
this.textBox_Port.TextChanged += this.textBox2_TextChanged;
|
|
//
|
|
// button_Setting
|
|
//
|
|
this.button_Setting.Location = new Point(12, 12);
|
|
this.button_Setting.Name = "button_Setting";
|
|
this.button_Setting.Size = new Size(50, 23);
|
|
this.button_Setting.TabIndex = 6;
|
|
this.button_Setting.Text = "设置";
|
|
this.button_Setting.UseVisualStyleBackColor = true;
|
|
this.button_Setting.Click += this.button_Setting_Click;
|
|
//
|
|
// button_PullFile
|
|
//
|
|
this.button_PullFile.Location = new Point(358, 233);
|
|
this.button_PullFile.Name = "button_PullFile";
|
|
this.button_PullFile.Size = new Size(84, 23);
|
|
this.button_PullFile.TabIndex = 8;
|
|
this.button_PullFile.Text = "接收文件";
|
|
this.button_PullFile.UseVisualStyleBackColor = true;
|
|
this.button_PullFile.Visible = false;
|
|
this.button_PullFile.Click += this.button_PullFile_Click;
|
|
//
|
|
// button_PushFile
|
|
//
|
|
this.button_PushFile.Location = new Point(358, 194);
|
|
this.button_PushFile.Name = "button_PushFile";
|
|
this.button_PushFile.Size = new Size(84, 23);
|
|
this.button_PushFile.TabIndex = 7;
|
|
this.button_PushFile.Text = "发送文件";
|
|
this.button_PushFile.UseVisualStyleBackColor = true;
|
|
this.button_PushFile.Visible = false;
|
|
this.button_PushFile.Click += this.button_PushFile_Click;
|
|
//
|
|
// StartPanel
|
|
//
|
|
this.AutoScaleDimensions = new SizeF(7F, 17F);
|
|
this.AutoScaleMode = AutoScaleMode.Font;
|
|
this.ClientSize = new Size(800, 450);
|
|
this.Controls.Add(this.button_PullFile);
|
|
this.Controls.Add(this.button_PushFile);
|
|
this.Controls.Add(this.button_Setting);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.textBox_Port);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.textBox_IP);
|
|
this.Controls.Add(this.button_ConnectServer);
|
|
this.Controls.Add(this.button_OpenServer);
|
|
this.Name = "StartPanel";
|
|
this.Text = "Form1";
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Button button_OpenServer;
|
|
private Button button_ConnectServer;
|
|
private TextBox textBox_IP;
|
|
private Label label1;
|
|
private Label label2;
|
|
private TextBox textBox_Port;
|
|
private Button button_Setting;
|
|
private Button button_PullFile;
|
|
private Button button_PushFile;
|
|
|
|
// add
|
|
Setting setting;
|
|
PushFilePanel pushFile;
|
|
PullFilePanel pullFile;
|
|
}
|
|
}
|