简单文件传输协议--主机部分--patr2

/*****************************************************************************************
Form1.Designer.cs
*****************************************************************************************/
namespace UartSendFile
{
    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();
            this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
            this.butSirPort = new System.Windows.Forms.Button();
            this.label_Port = new System.Windows.Forms.Label();
            this.comboBox_comx = new System.Windows.Forms.ComboBox();
            this.comboBox_baudrate = new System.Windows.Forms.ComboBox();
            this.but_filepath = new System.Windows.Forms.Button();
            this.textBox_path = new System.Windows.Forms.TextBox();
            this.button_send = new System.Windows.Forms.Button();
            this.progressBar = new System.Windows.Forms.ProgressBar();
            this.backgroundWorker = new System.ComponentModel.BackgroundWorker();
            this.textBox_message = new System.Windows.Forms.TextBox();
            this.label_filelen = new System.Windows.Forms.Label();
            this.SuspendLayout();
            //
            // butSirPort
            //
            this.butSirPort.Location = new System.Drawing.Point(329, 47);
            this.butSirPort.Name = "butSirPort";
            this.butSirPort.Size = new System.Drawing.Size(75, 23);
            this.butSirPort.TabIndex = 1;
            this.butSirPort.Text = "打开串口";
            this.butSirPort.UseVisualStyleBackColor = true;
            this.butSirPort.Click += new System.EventHandler(this.butSirPort_Click);
            //
            // label_Port
            //
            this.label_Port.AutoSize = true;
            this.label_Port.Location = new System.Drawing.Point(227, 50);
            this.label_Port.Name = "label_Port";
            this.label_Port.Size = new System.Drawing.Size(77, 12);
            this.label_Port.TabIndex = 2;
            this.label_Port.Text = "串口已经关闭";
            //
            // comboBox_comx
            //
            this.comboBox_comx.FormattingEnabled = true;
            this.comboBox_comx.Location = new System.Drawing.Point(42, 47);
            this.comboBox_comx.Name = "comboBox_comx";
            this.comboBox_comx.Size = new System.Drawing.Size(73, 20);
            this.comboBox_comx.TabIndex = 3;
            this.comboBox_comx.Text = "COM1";
            //
            // comboBox_baudrate
            //
            this.comboBox_baudrate.FormattingEnabled = true;
            this.comboBox_baudrate.Location = new System.Drawing.Point(137, 47);
            this.comboBox_baudrate.Name = "comboBox_baudrate";
            this.comboBox_baudrate.Size = new System.Drawing.Size(73, 20);
            this.comboBox_baudrate.TabIndex = 4;
            this.comboBox_baudrate.Text = "2400";
            //
            // but_filepath
            //
            this.but_filepath.Location = new System.Drawing.Point(329, 105);
            this.but_filepath.Name = "but_filepath";
            this.but_filepath.Size = new System.Drawing.Size(75, 23);
            this.but_filepath.TabIndex = 5;
            this.but_filepath.Text = "选择文件";
            this.but_filepath.UseVisualStyleBackColor = true;
            this.but_filepath.Click += new System.EventHandler(this.but_filepath_Click);
            //
            // textBox_path
            //
            this.textBox_path.Location = new System.Drawing.Point(42, 105);
            this.textBox_path.Name = "textBox_path";
            this.textBox_path.Size = new System.Drawing.Size(262, 21);
            this.textBox_path.TabIndex = 6;
            //
            // button_send
            //
            this.button_send.Location = new System.Drawing.Point(329, 160);
            this.button_send.Name = "button_send";
            this.button_send.Size = new System.Drawing.Size(75, 23);
            this.button_send.TabIndex = 7;
            this.button_send.Text = "发送文件";
            this.button_send.UseVisualStyleBackColor = true;
            this.button_send.Click += new System.EventHandler(this.button_send_Click);
            //
            // progressBar
            //
            this.progressBar.Location = new System.Drawing.Point(42, 160);
            this.progressBar.Name = "progressBar";
            this.progressBar.Size = new System.Drawing.Size(262, 23);
            this.progressBar.TabIndex = 8;
            //
            // backgroundWorker
            //
            this.backgroundWorker.WorkerReportsProgress = true;
            this.backgroundWorker.WorkerSupportsCancellation = true;
            this.backgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker_DoWork);
            this.backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker_RunWorkerCompleted);
            this.backgroundWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.backgroundWorker_ProgressChanged);
            //
            // textBox_message
            //
            this.textBox_message.Location = new System.Drawing.Point(42, 218);
            this.textBox_message.Name = "textBox_message";
            this.textBox_message.Size = new System.Drawing.Size(362, 21);
            this.textBox_message.TabIndex = 9;
            //
            // label_filelen
            //
            this.label_filelen.AutoSize = true;
            this.label_filelen.Location = new System.Drawing.Point(42, 133);
            this.label_filelen.Name = "label_filelen";
            this.label_filelen.Size = new System.Drawing.Size(59, 12);
            this.label_filelen.TabIndex = 10;
            this.label_filelen.Text = "文件大小:";
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(469, 263);
            this.Controls.Add(this.label_filelen);
            this.Controls.Add(this.textBox_message);
            this.Controls.Add(this.progressBar);
            this.Controls.Add(this.button_send);
            this.Controls.Add(this.textBox_path);
            this.Controls.Add(this.but_filepath);
            this.Controls.Add(this.comboBox_baudrate);
            this.Controls.Add(this.comboBox_comx);
            this.Controls.Add(this.label_Port);
            this.Controls.Add(this.butSirPort);
            this.Name = "Form1";
            this.Text = "COM1";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.IO.Ports.SerialPort serialPort1;
        private System.Windows.Forms.Button butSirPort;
        private System.Windows.Forms.Label label_Port;
        private System.Windows.Forms.ComboBox comboBox_comx;
        private System.Windows.Forms.ComboBox comboBox_baudrate;
        private System.Windows.Forms.Button but_filepath;
        private System.Windows.Forms.TextBox textBox_path;
        private System.Windows.Forms.Button button_send;
        private System.Windows.Forms.ProgressBar progressBar;
        private System.ComponentModel.BackgroundWorker backgroundWorker;
        private System.Windows.Forms.TextBox textBox_message;
        private System.Windows.Forms.Label label_filelen;
    }
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值