📄 frmcreateprofile1.cs
字号:
#region Using directives
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
#endregion
namespace UI
{
/// <summary>
/// Summary description for frmNewSearch.
/// </summary>
public class frmCreateProfile1 : System.Windows.Forms.Form
{
private ComboBox comboBox1;
private MenuItem menuItemCreateProfile;
private MenuItem menuItemMenu;
private TextBox txtBTAddr1;
private CheckBox checkBoxConnectManually;
/// <summary>
/// Main menu for the form.
/// </summary>
private System.Windows.Forms.MainMenu mainMenu1;
private MenuItem menuItemSearch;
private MenuItem menuItemCancel;
private Label label1;
private TextBox txtBTAddr2;
private Label label2;
private TextBox txtBTAddr3;
private Label label3;
private TextBox txtBTAddr4;
private Label label4;
private TextBox txtBTAddr5;
private Label label5;
private TextBox txtBTAddr6;
private TextBox textBox1;
private Label label6;
private Label label7;
BTHWrapper.BTHConnector _connector;
Profile.ProfileList _profileList;
ArrayList _deviceList;
public frmCreateProfile1(BTHWrapper.BTHConnector inConn,Profile.ProfileList lstProfile)
{
_connector = inConn;
_profileList = lstProfile;
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
//this.parentForm = parentForm;
}
#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.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItemCreateProfile = new System.Windows.Forms.MenuItem();
this.menuItemMenu = new System.Windows.Forms.MenuItem();
this.menuItemSearch = new System.Windows.Forms.MenuItem();
this.menuItemCancel = new System.Windows.Forms.MenuItem();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.txtBTAddr1 = new System.Windows.Forms.TextBox();
this.checkBoxConnectManually = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.txtBTAddr2 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txtBTAddr3 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.txtBTAddr4 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.txtBTAddr5 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.txtBTAddr6 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
//
// mainMenu1
//
this.mainMenu1.MenuItems.Add(this.menuItemCreateProfile);
this.mainMenu1.MenuItems.Add(this.menuItemMenu);
//
// menuItemCreateProfile
//
this.menuItemCreateProfile.Text = "Next";
this.menuItemCreateProfile.Click += new System.EventHandler(this.menuItemCreateProfile_Click);
//
// menuItemMenu
//
this.menuItemMenu.MenuItems.Add(this.menuItemSearch);
this.menuItemMenu.MenuItems.Add(this.menuItemCancel);
this.menuItemMenu.Text = "Menu";
//
// menuItemSearch
//
this.menuItemSearch.Text = "Search Device";
this.menuItemSearch.Click += new System.EventHandler(this.menuItemSearch_Click);
//
// menuItemCancel
//
this.menuItemCancel.Text = "Cancel";
this.menuItemCancel.Click += new System.EventHandler(this.menuItemCancel_Click);
//
// comboBox1
//
this.comboBox1.BackColor = System.Drawing.SystemColors.Menu;
this.comboBox1.Location = new System.Drawing.Point(12, 147);
this.comboBox1.Size = new System.Drawing.Size(207, 33);
//
// txtBTAddr1
//
this.txtBTAddr1.Enabled = false;
this.txtBTAddr1.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Regular);
this.txtBTAddr1.Location = new System.Drawing.Point(12, 222);
this.txtBTAddr1.MaxLength = 2;
this.txtBTAddr1.Size = new System.Drawing.Size(21, 28);
//
// checkBoxConnectManually
//
this.checkBoxConnectManually.Location = new System.Drawing.Point(12, 186);
this.checkBoxConnectManually.Size = new System.Drawing.Size(207, 30);
this.checkBoxConnectManually.Text = "Connect manually";
this.checkBoxConnectManually.CheckStateChanged += new System.EventHandler(this.checkBox1_CheckStateChanged);
//
// label1
//
this.label1.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Bold);
this.label1.Location = new System.Drawing.Point(41, 222);
this.label1.Size = new System.Drawing.Size(3, 30);
this.label1.Text = ":";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.label1.Visible = false;
//
// txtBTAddr2
//
this.txtBTAddr2.Enabled = false;
this.txtBTAddr2.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Regular);
this.txtBTAddr2.Location = new System.Drawing.Point(50, 222);
this.txtBTAddr2.MaxLength = 2;
this.txtBTAddr2.Size = new System.Drawing.Size(21, 28);
//
// label2
//
this.label2.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Bold);
this.label2.Location = new System.Drawing.Point(77, 222);
this.label2.Size = new System.Drawing.Size(3, 30);
this.label2.Text = ":";
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.label2.Visible = false;
//
// txtBTAddr3
//
this.txtBTAddr3.Enabled = false;
this.txtBTAddr3.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Regular);
this.txtBTAddr3.Location = new System.Drawing.Point(86, 222);
this.txtBTAddr3.MaxLength = 2;
this.txtBTAddr3.Size = new System.Drawing.Size(21, 28);
//
// label3
//
this.label3.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Bold);
this.label3.Location = new System.Drawing.Point(112, 222);
this.label3.Size = new System.Drawing.Size(3, 30);
this.label3.Text = ":";
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.label3.Visible = false;
//
// txtBTAddr4
//
this.txtBTAddr4.Enabled = false;
this.txtBTAddr4.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Regular);
this.txtBTAddr4.Location = new System.Drawing.Point(121, 222);
this.txtBTAddr4.MaxLength = 2;
this.txtBTAddr4.Size = new System.Drawing.Size(21, 28);
//
// label4
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -