📄 computer.cs
字号:
"U盘",
"其他"});
this.comboBox1.Location = new System.Drawing.Point(448, 16);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(104, 20);
this.comboBox1.TabIndex = 29;
//
// textBox6
//
this.textBox6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox6.Location = new System.Drawing.Point(208, 112);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(344, 21);
this.textBox6.TabIndex = 28;
this.textBox6.Text = "";
//
// textBox5
//
this.textBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox5.Location = new System.Drawing.Point(208, 80);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(104, 21);
this.textBox5.TabIndex = 27;
this.textBox5.Text = "";
this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// textBox4
//
this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox4.Location = new System.Drawing.Point(448, 48);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(104, 21);
this.textBox4.TabIndex = 26;
this.textBox4.Text = "";
this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label7
//
this.label7.Location = new System.Drawing.Point(360, 80);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(72, 24);
this.label7.TabIndex = 25;
this.label7.Text = "产品利润";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label6
//
this.label6.Location = new System.Drawing.Point(360, 48);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(72, 24);
this.label6.TabIndex = 24;
this.label6.Text = "产品数量";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label5
//
this.label5.Location = new System.Drawing.Point(120, 112);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(72, 24);
this.label5.TabIndex = 23;
this.label5.Text = "备注";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.label4.Location = new System.Drawing.Point(120, 48);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(72, 24);
this.label4.TabIndex = 22;
this.label4.Text = "生产厂商";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button10
//
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button10.Location = new System.Drawing.Point(16, 216);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(72, 24);
this.button10.TabIndex = 21;
this.button10.Text = "退出";
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// label3
//
this.label3.Location = new System.Drawing.Point(360, 16);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(72, 24);
this.label3.TabIndex = 20;
this.label3.Text = "产品名称";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textBox2
//
this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox2.Location = new System.Drawing.Point(208, 48);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(104, 21);
this.textBox2.TabIndex = 19;
this.textBox2.Text = "";
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// button9
//
this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button9.Location = new System.Drawing.Point(16, 112);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(72, 24);
this.button9.TabIndex = 18;
this.button9.Text = "删除";
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// button8
//
this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button8.Location = new System.Drawing.Point(16, 80);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(72, 24);
this.button8.TabIndex = 17;
this.button8.Text = "修改";
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button7
//
this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button7.Location = new System.Drawing.Point(16, 48);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(72, 24);
this.button7.TabIndex = 16;
this.button7.Text = "添加";
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// pictureBox3
//
this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
this.pictureBox3.Location = new System.Drawing.Point(104, 16);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(8, 264);
this.pictureBox3.TabIndex = 15;
this.pictureBox3.TabStop = false;
//
// textBox1
//
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox1.Location = new System.Drawing.Point(208, 16);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(104, 21);
this.textBox1.TabIndex = 14;
this.textBox1.Text = "";
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// label1
//
this.label1.Location = new System.Drawing.Point(120, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(72, 24);
this.label1.TabIndex = 13;
this.label1.Text = "产品编号";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button6
//
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button6.Location = new System.Drawing.Point(16, 16);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(72, 24);
this.button6.TabIndex = 3;
this.button6.Text = "查询";
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.label2);
this.tabPage2.Controls.Add(this.dataGrid3);
this.tabPage2.Controls.Add(this.pictureBox2);
this.tabPage2.Controls.Add(this.button5);
this.tabPage2.Controls.Add(this.button1);
this.tabPage2.Location = new System.Drawing.Point(4, 24);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(568, 292);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "相关";
//
// label2
//
this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.label2.Location = new System.Drawing.Point(120, 16);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(432, 24);
this.label2.TabIndex = 13;
this.label2.Text = "近期更新";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// dataGrid3
//
this.dataGrid3.DataMember = "";
this.dataGrid3.HeaderBackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.dataGrid3.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid3.Location = new System.Drawing.Point(120, 48);
this.dataGrid3.Name = "dataGrid3";
this.dataGrid3.Size = new System.Drawing.Size(432, 216);
this.dataGrid3.TabIndex = 11;
//
// pictureBox2
//
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
this.pictureBox2.Location = new System.Drawing.Point(104, 8);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(8, 256);
this.pictureBox2.TabIndex = 10;
this.pictureBox2.TabStop = false;
//
// button5
//
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button5.Location = new System.Drawing.Point(16, 240);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(72, 24);
this.button5.TabIndex = 5;
this.button5.Text = "退出";
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(16, 16);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(72, 24);
this.button1.TabIndex = 2;
this.button1.Text = "查询";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox8
//
this.textBox8.Enabled = false;
this.textBox8.Location = new System.Drawing.Point(32, 16);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(88, 21);
this.textBox8.TabIndex = 2;
this.textBox8.Text = "";
//
// pictureBox5
//
this.pictureBox5.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox5.Image")));
this.pictureBox5.Location = new System.Drawing.Point(8, 8);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new System.Drawing.Size(160, 40);
this.pictureBox5.TabIndex = 3;
this.pictureBox5.TabStop = false;
//
// computer
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(608, 406);
this.Controls.Add(this.pictureBox5);
this.Controls.Add(this.textBox8);
this.Controls.Add(this.groupBox1);
this.Name = "computer";
this.Text = "电脑配置";
this.Load += new System.EventHandler(this.computer_Load);
this.groupBox1.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
this.tabPage2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid3)).EndInit();
this.ResumeLayout(false);
}
#endregion
int num,l,lzl1;
private void button6_Click(object sender, System.EventArgs e)
{
//权限
if(l==1)
this.textBox7.Enabled=true;
else
this.textBox7.Enabled=false;
//权限
//this.button11.Visible=true;
pictureBox1.Visible=false;
this.comboBox2.Visible=false;
//dataGrid2.Visible=false;
this.comboBox1.Enabled=false;
this.textBox1.Enabled=false;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -