private void simpleButton4_Click(object sender, EventArgs e) { //ELE_Screwdriver_DataSend(0x01, 0xAA, 61260, 0x19);//发送查询电批编号 BeginProdution begin = new BeginProdution(); this.Hide(); begin.ShowDialog(); this.Close(); }
private void loginMethod(string status) { if (status == "work") //正常运行 { BeginProdution begin = new BeginProdution(); this.Hide(); begin.ShowDialog(); } else if (status == "setting") //设置页面 { WorkEquStation work = new WorkEquStation(); this.Hide(); work.ShowDialog(); } else { XtraMessageBox.Show(status, "警告信息", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }