private void deleteBillToolStripMenuItem_Click(object sender, EventArgs e) { try { if (_DeleteBill.IsDisposed) { _DeleteBill = new DeleteBill(); } Home.Home_pnl.Visible = false; _DeleteBill.MdiParent = this; _DeleteBill.WindowState = FormWindowState.Maximized; _DeleteBill.Show(); _DeleteBill.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info);; } }
// 删除页面 订单查询按钮 private void materialRaisedButton5_Click(object sender, EventArgs e) { MysqlManager manager = new MysqlManager(); if (textBox2.Text == "") { MessageBox.Show("请输入订单编号!"); } else { BillPO bill = manager.getBillPObyBillid(textBox2.Text); if (bill == null) { MessageBox.Show("订单编号输入有误,请重新输入!"); } else { DeleteBill deleteBill = new DeleteBill(textBox2.Text); deleteBill.StartPosition = FormStartPosition.CenterParent; deleteBill.ShowDialog(); } } }