📄 formmain.cs
字号:
this.label1.Visible = true;
this.label2.Visible = true;
this.bt_Rkyw.Location = new Point(20, 250);
this.lb_Yrkts.Location = new Point(20, 400);
this.label1.Location = new Point(250, 255);
this.bt_Kccx.Location = new Point(20,310);
this.label2.Location = new Point(250,315);
}
private void bt_Mrts_MouseEnter(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
return;
this.bt_Mrts.Dock = DockStyle.Fill;
this.bt_Xszx.Dock = DockStyle.None;
this.bt_Jhzx.Dock = DockStyle.None;
this.bt_Kczx.Dock = DockStyle.None;
this.bt_Jbxs.Dock = DockStyle.None;
this.bt_Xtgl.Dock = DockStyle.None;
//功能按钮
this.panel1.Show();
this.bt_Jhyw.Visible = false;
this.bt_Jhcx.Visible = false;
this.lb_Kcbj.Visible = false;
this.bt_Xscx.Visible = false;
this.bt_Posqt.Visible = false;
this.bt_Rkyw.Visible = false;
this.bt_Gysxx.Visible = false;
this.bt_Spxx.Visible = false;
this.bt_Khxx.Visible = false;
this.bt_Yggl.Visible = false;
this.bt_Yhxx.Visible = false;
this.bt_Kccx.Visible = false;
this.label1.Visible = false;
this.label2.Visible = false;
this.label3.Visible = false;
this.label4.Visible = false;
this.pictureBox1.Visible = false;
this.pictureBox3.Visible = false;
this.pictureBox5.Visible = false;
this.lb_Yrkts.Visible = true;
this.lb_Kcbj.Visible = true;
this.lb_Kcbj.Location = new Point(20, 80);
this.lb_Yrkts.Location = new Point(20, this.lb_Kcbj.Location.Y + this.lb_Kcbj.Size.Height + 100);
}
private void bt_Jbxs_MouseEnter(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
return;
smRd1 = new StreamReader(@"..\..\Resources\供应商信息.txt", Encoding.Default);
str1 = smRd1.ReadLine().ToString();
smRd1.Close();
this.label1.Text = str1;
smRd1 = new StreamReader(@"..\..\Resources\商品信息.txt", Encoding.Default);
str1 = smRd1.ReadLine().ToString();
smRd1.Close();
this.label2.Text = str1;
smRd1 = new StreamReader(@"..\..\Resources\客户信息.txt", Encoding.Default);
str1 = smRd1.ReadLine().ToString();
smRd1.Close();
this.label3.Text = str1;
smRd1 = new StreamReader(@"..\..\Resources\员工管理.txt", Encoding.Default);
str1 = smRd1.ReadLine().ToString();
smRd1.Close();
this.label4.Text = str1;
this.bt_Jbxs.Dock = DockStyle.Fill;
this.bt_Xszx.Dock = DockStyle.None;
this.bt_Jhzx.Dock = DockStyle.None;
this.bt_Kczx.Dock = DockStyle.None;
this.bt_Mrts.Dock = DockStyle.None;
this.bt_Xtgl.Dock = DockStyle.None;
//功能按钮
this.panel1.Show();
this.bt_Jhyw.Visible = false;
this.bt_Jhcx.Visible = false;
this.lb_Yrkts.Visible = false;
this.lb_Kcbj.Visible = false;
this.bt_Xscx.Visible = false;
this.bt_Posqt.Visible = false;
this.bt_Rkyw.Visible = false;
this.bt_Yhxx.Visible = false;
this.bt_Kccx.Visible = false;
this.pictureBox1.Visible = false;
this.pictureBox3.Visible = false;
this.pictureBox5.Visible = false;
this.bt_Gysxx.Visible = true;
this.bt_Spxx.Visible = true;
this.bt_Khxx.Visible = true;
this.bt_Yggl.Visible = true;
this.label1.Visible = true;
this.label2.Visible = true;
this.label3.Visible = true;
this.label4.Visible = true;
this.bt_Gysxx.Location = new Point(20, 240);
this.bt_Spxx.Location = new Point(20, 300);
this.bt_Khxx.Location = new Point(20, 360);
this.bt_Yggl.Location = new Point(20, 420);
this.label1.Location = new Point(250, 245);
this.label2.Location = new Point(250, 305);
this.label3.Location = new Point(250, 365);
this.label4.Location = new Point(250, 425);
}
private void bt_Xtgl_MouseEnter(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
return;
smRd1 = new StreamReader(@"..\..\Resources\用户管理.txt", Encoding.Default);
str1 = smRd1.ReadLine().ToString();
smRd1.Close();
this.label1.Text = str1;
this.bt_Xtgl.Dock = DockStyle.Fill;
this.bt_Xszx.Dock = DockStyle.None;
this.bt_Jhzx.Dock = DockStyle.None;
this.bt_Kczx.Dock = DockStyle.None;
this.bt_Mrts.Dock = DockStyle.None;
this.bt_Jbxs.Dock = DockStyle.None;
//功能按钮
this.panel1.Show();
this.bt_Jhyw.Visible = false;
this.bt_Jhcx.Visible = false;
this.lb_Yrkts.Visible = false;
this.lb_Kcbj.Visible = false;
this.bt_Xscx.Visible = false;
this.bt_Posqt.Visible = false;
this.bt_Rkyw.Visible = false;
this.bt_Gysxx.Visible = false;
this.bt_Spxx.Visible = false;
this.bt_Khxx.Visible = false;
this.bt_Yggl.Visible = false;
this.bt_Kccx.Visible = false;
this.label2.Visible = false;
this.label3.Visible = false;
this.label4.Visible = false;
this.bt_Yhxx.Visible = true;
this.label1.Visible = true;
this.pictureBox1.Visible = true;
this.pictureBox3.Visible = true;
this.pictureBox5.Visible = true;
this.bt_Yhxx.Location = new Point(20, 505);
this.label1.Location = new Point(250, 510);
this.pictureBox1.Location = new Point(100, 200);
this.pictureBox3.Location = new Point(300, 200);
this.pictureBox5.Location = new Point(500, 200);
}
private void bt_Gysxx_Click(object sender, EventArgs e)
{
formGhsBiao ghs= new formGhsBiao();
ghs.MdiParent=this;
ghs.Show();
this.panel1.Hide();
}
private void bt_Yhxx_Click(object sender, EventArgs e)
{
formYhxx yhxx= new formYhxx();
yhxx.MdiParent = this;
yhxx.Show();
this.panel1.Hide();
}
private void 管理员信息ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formYhxx yhxx = new formYhxx();
yhxx.MdiParent = this;
yhxx.Show();
}
private void 员工信息ToolStripMenuItem_Click_1(object sender, EventArgs e)
{
this.panel1.Hide();
formYggl yggl=new formYggl();
yggl.MdiParent = this;
yggl.Show();
}
private void bt_Yggl_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formYggl yggl=new formYggl();
yggl.MdiParent = this;
yggl.Show();
}
private void 商品信息ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formSpxx spxx=new formSpxx();
spxx.MdiParent = this;
spxx.Show();
}
private void bt_Spxx_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formSpxx spxx=new formSpxx();
spxx.MdiParent = this;
spxx.Show();
}
private void bt_Posqt_Click(object sender, EventArgs e)
{
this.panel1.Hide();
new formPos().ShowDialog();
}
private void bt_Xscx_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formXscx xscx=new formXscx();
xscx.MdiParent = this;
xscx.Show();
}
private void 货品捆绑ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formJhrk jhrk=new formJhrk();
jhrk.MdiParent = this;
jhrk.Show();
}
private void 客户信息ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formKhxx khxx=new formKhxx();
khxx.MdiParent = this;
khxx.Show();
}
private void bt_Khxx_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formKhxx khxx=new formKhxx();
khxx.MdiParent = this;
khxx.Show();
}
private void bt_Jhyw_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formJhyw jhyw=new formJhyw();
jhyw.MdiParent = this;
jhyw.Show();
}
private void 采购退货ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formJhyw jhyw=new formJhyw();
jhyw.MdiParent = this;
jhyw.Show();
}
private void bt_Rkyw_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formJhrk jhrk=new formJhrk();
jhrk.MdiParent = this;
jhrk.Show();
}
private void bt_Jhcx_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formJhcx jhcx=new formJhcx();
jhcx.MdiParent = this;
jhcx.Show();
}
private void 进货查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.panel1.Hide();
formJhcx jhcx=new formJhcx();
jhcx.MdiParent = this;
jhcx.Show();
}
//库存查询
private void bt_Kccx_Click(object sender, EventArgs e)
{
this.panel1.Hide();
frmlong_Kccx kccx = new frmlong_Kccx();
kccx.MdiParent = this;
kccx.Show();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -