upnptozwaveform.cs

来自「zwave 无线通讯协议 PC controller 控制器源码」· CS 代码 · 共 177 行

CS
177
字号
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace Zensys
{
	/// <summary>
	/// Summary description for UPnPtoZWaveForm.
	/// </summary>
	public class UPnPtoZWaveForm : System.Windows.Forms.Form
	{
    private System.Windows.Forms.Label labelUPnPtoZWaveText;
    public System.Windows.Forms.Label labelUPnPtoZWave;
    public System.Windows.Forms.Button buttonCancel;
    public System.Windows.Forms.Button buttonStop;
    public System.Windows.Forms.Button buttonBridge;
    public System.Windows.Forms.ListView listViewZWaveNodeVirtual;
    private System.Windows.Forms.ColumnHeader columnHeaderZWaveNodeIDVirtual;
    private System.Windows.Forms.ColumnHeader columnHeaderZWaveNodeDescriptionVirtual;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public UPnPtoZWaveForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(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.labelUPnPtoZWaveText = new System.Windows.Forms.Label();
      this.labelUPnPtoZWave = new System.Windows.Forms.Label();
      this.buttonCancel = new System.Windows.Forms.Button();
      this.buttonStop = new System.Windows.Forms.Button();
      this.buttonBridge = new System.Windows.Forms.Button();
      this.listViewZWaveNodeVirtual = new System.Windows.Forms.ListView();
      this.columnHeaderZWaveNodeIDVirtual = new System.Windows.Forms.ColumnHeader();
      this.columnHeaderZWaveNodeDescriptionVirtual = new System.Windows.Forms.ColumnHeader();
      this.SuspendLayout();
      // 
      // labelUPnPtoZWaveText
      // 
      this.labelUPnPtoZWaveText.Location = new System.Drawing.Point(16, 16);
      this.labelUPnPtoZWaveText.Name = "labelUPnPtoZWaveText";
      this.labelUPnPtoZWaveText.Size = new System.Drawing.Size(80, 24);
      this.labelUPnPtoZWaveText.TabIndex = 1;
      this.labelUPnPtoZWaveText.Text = "UPnP device :";
      // 
      // labelUPnPtoZWave
      // 
      this.labelUPnPtoZWave.Location = new System.Drawing.Point(104, 16);
      this.labelUPnPtoZWave.Name = "labelUPnPtoZWave";
      this.labelUPnPtoZWave.Size = new System.Drawing.Size(160, 32);
      this.labelUPnPtoZWave.TabIndex = 2;
      // 
      // buttonCancel
      // 
      this.buttonCancel.Location = new System.Drawing.Point(192, 128);
      this.buttonCancel.Name = "buttonCancel";
      this.buttonCancel.Size = new System.Drawing.Size(72, 48);
      this.buttonCancel.TabIndex = 4;
      this.buttonCancel.Text = "Cancel";
      this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
      // 
      // buttonStop
      // 
      this.buttonStop.Location = new System.Drawing.Point(104, 128);
      this.buttonStop.Name = "buttonStop";
      this.buttonStop.Size = new System.Drawing.Size(72, 48);
      this.buttonStop.TabIndex = 5;
      this.buttonStop.Text = "Stop";
      this.buttonStop.Click += new System.EventHandler(this.buttonStop_Click);
      // 
      // buttonBridge
      // 
      this.buttonBridge.Location = new System.Drawing.Point(16, 128);
      this.buttonBridge.Name = "buttonBridge";
      this.buttonBridge.Size = new System.Drawing.Size(72, 48);
      this.buttonBridge.TabIndex = 6;
      this.buttonBridge.Text = "Bridge";
      this.buttonBridge.Click += new System.EventHandler(this.buttonBridge_Click);
      // 
      // listViewZWaveNodeVirtual
      // 
      this.listViewZWaveNodeVirtual.AutoArrange = false;
      this.listViewZWaveNodeVirtual.BackColor = System.Drawing.SystemColors.Window;
      this.listViewZWaveNodeVirtual.CausesValidation = false;
      this.listViewZWaveNodeVirtual.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                                               this.columnHeaderZWaveNodeIDVirtual,
                                                                                               this.columnHeaderZWaveNodeDescriptionVirtual});
      this.listViewZWaveNodeVirtual.Cursor = System.Windows.Forms.Cursors.Hand;
      this.listViewZWaveNodeVirtual.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
      this.listViewZWaveNodeVirtual.FullRowSelect = true;
      this.listViewZWaveNodeVirtual.GridLines = true;
      this.listViewZWaveNodeVirtual.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
      this.listViewZWaveNodeVirtual.HideSelection = false;
      this.listViewZWaveNodeVirtual.Location = new System.Drawing.Point(16, 48);
      this.listViewZWaveNodeVirtual.MultiSelect = false;
      this.listViewZWaveNodeVirtual.Name = "listViewZWaveNodeVirtual";
      this.listViewZWaveNodeVirtual.Size = new System.Drawing.Size(248, 72);
      this.listViewZWaveNodeVirtual.TabIndex = 7;
      this.listViewZWaveNodeVirtual.View = System.Windows.Forms.View.Details;
      // 
      // columnHeaderZWaveNodeIDVirtual
      // 
      this.columnHeaderZWaveNodeIDVirtual.Text = "Id";
      this.columnHeaderZWaveNodeIDVirtual.Width = 28;
      // 
      // columnHeaderZWaveNodeDescriptionVirtual
      // 
      this.columnHeaderZWaveNodeDescriptionVirtual.Text = "Description";
      this.columnHeaderZWaveNodeDescriptionVirtual.Width = 198;
      // 
      // UPnPtoZWaveForm
      // 
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
      this.ClientSize = new System.Drawing.Size(280, 190);
      this.Controls.Add(this.listViewZWaveNodeVirtual);
      this.Controls.Add(this.buttonBridge);
      this.Controls.Add(this.buttonStop);
      this.Controls.Add(this.buttonCancel);
      this.Controls.Add(this.labelUPnPtoZWave);
      this.Controls.Add(this.labelUPnPtoZWaveText);
      this.Name = "UPnPtoZWaveForm";
      this.Text = "UPnP device to Z-WAve";
      this.ResumeLayout(false);

    }
		#endregion

    private void buttonBridge_Click(object sender, System.EventArgs e)
    {
      this.DialogResult = DialogResult.OK;
    }

    private void buttonStop_Click(object sender, System.EventArgs e)
    {
      this.DialogResult = DialogResult.OK;
    }

    private void buttonCancel_Click(object sender, System.EventArgs e)
    {
      this.DialogResult = DialogResult.Cancel;
    }
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?