📄 frmbluetooth.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 frmBluetooth.
/// </summary>
public class frmBluetooth : System.Windows.Forms.Form
{
private Form parentForm;
private MenuItem menuItem1;
private MenuItem menuItem2;
private ComboBox comboBox1;
private ComboBox comboBox2;
private Label label1;
private Label label2;
/// <summary>
/// Main menu for the form.
/// </summary>
private System.Windows.Forms.MainMenu mainMenu1;
public frmBluetooth(Form parentForm)
{
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.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
//
// mainMenu1
//
this.mainMenu1.MenuItems.Add(this.menuItem1);
this.mainMenu1.MenuItems.Add(this.menuItem2);
//
// menuItem1
//
this.menuItem1.Text = "OK";
this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
//
// menuItem2
//
this.menuItem2.Text = "Cancel";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
//
// comboBox1
//
this.comboBox1.Location = new System.Drawing.Point(4, 42);
this.comboBox1.Size = new System.Drawing.Size(152, 24);
//
// comboBox2
//
this.comboBox2.Location = new System.Drawing.Point(4, 95);
this.comboBox2.Size = new System.Drawing.Size(152, 24);
//
// label1
//
this.label1.Location = new System.Drawing.Point(4, 14);
this.label1.Size = new System.Drawing.Size(152, 22);
this.label1.Text = "Search:";
//
// label2
//
this.label2.Location = new System.Drawing.Point(4, 69);
this.label2.Size = new System.Drawing.Size(152, 22);
this.label2.Text = "Profile:";
//
// frmBluetooth
//
this.ClientSize = new System.Drawing.Size(176, 180);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.label1);
this.Controls.Add(this.label2);
this.Menu = this.mainMenu1;
this.Text = "Bluetooth Connection";
}
#endregion
private void menuItem2_Click(object sender, EventArgs e)
{
this.Dispose();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -