private void buttonXHome_Click(object sender, EventArgs e) { if (currentPanel == panelName.scanTrackingNum || currentPanel == panelName.inputConsigneeTel || currentPanel == panelName.confirmConsigneeTel) { FrmMessagebox messagebox = new FrmMessagebox(); messagebox.SetMessageInfo("系统提示", "请注意:确认操作将返回主界面!"); DialogResult dr = messagebox.ShowDialog(); if (dr == DialogResult.OK) { if (this.tempChooseBox != null) { this.tempChooseBox.Open(); } voiceService.BroadcastOnce("请取回包裹,并关闭柜门,谢谢!"); } else { return; } } this.NavMainPanelState(); }
private void buttonXNo_Click(object sender, EventArgs e) { if (messagebox == null) { messagebox = new FrmMessagebox(); } messagebox.SetMessageInfo("系统提示", "请注意:确认操作将返回主界面!"); DialogResult dr = messagebox.ShowDialog(); if (dr == DialogResult.OK) { this.DialogResult = DialogResult.No; } }