📄 computer.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data ;using System.Data.SqlClient ;
namespace lzl061111152357good5
{
/// <summary>
/// computer 的摘要说明。
/// </summary>
public class computer : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
lzlMain lzl;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.Button button13;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.ComboBox comboBox2;
public System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DataGrid dataGrid3;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.PictureBox pictureBox5;
private System.Windows.Forms.PictureBox pictureBox1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public computer()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
public lzlMain lin
{
get
{
return lzl;
}
set
{
lzl = value;
}
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(computer));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button13 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.button10 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button9 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.button6 = new System.Windows.Forms.Button();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.label2 = new System.Windows.Forms.Label();
this.dataGrid3 = new System.Windows.Forms.DataGrid();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.button5 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.textBox8 = new System.Windows.Forms.TextBox();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.groupBox1.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid3)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.tabControl1);
this.groupBox1.Location = new System.Drawing.Point(8, 56);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(592, 344);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
//
// tabControl1
//
this.tabControl1.Appearance = System.Windows.Forms.TabAppearance.FlatButtons;
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.ItemSize = new System.Drawing.Size(60, 20);
this.tabControl1.Location = new System.Drawing.Point(8, 16);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(576, 320);
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tabPage1.Controls.Add(this.pictureBox1);
this.tabPage1.Controls.Add(this.button13);
this.tabPage1.Controls.Add(this.button12);
this.tabPage1.Controls.Add(this.comboBox2);
this.tabPage1.Controls.Add(this.textBox7);
this.tabPage1.Controls.Add(this.label8);
this.tabPage1.Controls.Add(this.dataGrid1);
this.tabPage1.Controls.Add(this.comboBox1);
this.tabPage1.Controls.Add(this.textBox6);
this.tabPage1.Controls.Add(this.textBox5);
this.tabPage1.Controls.Add(this.textBox4);
this.tabPage1.Controls.Add(this.label7);
this.tabPage1.Controls.Add(this.label6);
this.tabPage1.Controls.Add(this.label5);
this.tabPage1.Controls.Add(this.label4);
this.tabPage1.Controls.Add(this.button10);
this.tabPage1.Controls.Add(this.label3);
this.tabPage1.Controls.Add(this.textBox2);
this.tabPage1.Controls.Add(this.button9);
this.tabPage1.Controls.Add(this.button8);
this.tabPage1.Controls.Add(this.button7);
this.tabPage1.Controls.Add(this.pictureBox3);
this.tabPage1.Controls.Add(this.textBox1);
this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Controls.Add(this.button6);
this.tabPage1.Location = new System.Drawing.Point(4, 24);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(568, 292);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "电脑配置";
this.tabPage1.Click += new System.EventHandler(this.tabPage1_Click);
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(112, 16);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(440, 264);
this.pictureBox1.TabIndex = 39;
this.pictureBox1.TabStop = false;
//
// button13
//
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button13.Location = new System.Drawing.Point(480, 256);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(72, 24);
this.button13.TabIndex = 37;
this.button13.Text = "返回";
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// button12
//
this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button12.Location = new System.Drawing.Point(392, 256);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(72, 24);
this.button12.TabIndex = 36;
this.button12.Text = "确认";
this.button12.Click += new System.EventHandler(this.button12_Click);
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.ItemHeight = 12;
this.comboBox2.Location = new System.Drawing.Point(208, 16);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(104, 20);
this.comboBox2.TabIndex = 34;
//
// textBox7
//
this.textBox7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox7.Enabled = false;
this.textBox7.Location = new System.Drawing.Point(448, 80);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(104, 21);
this.textBox7.TabIndex = 33;
this.textBox7.Text = "";
this.textBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label8
//
this.label8.Location = new System.Drawing.Point(120, 80);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(72, 24);
this.label8.TabIndex = 32;
this.label8.Text = "产品价格";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// dataGrid1
//
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderBackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(120, 136);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(432, 112);
this.dataGrid1.TabIndex = 30;
this.dataGrid1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dataGrid1_MouseDown);
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.ItemHeight = 12;
this.comboBox1.Items.AddRange(new object[] {
"CPU",
"主板",
"显示器",
"显卡",
"硬盘",
"内存",
"机箱",
"电源",
"音箱",
"键盘",
"鼠标",
"MP3",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -