private void QuitMenuItem_Click(object sender, EventArgs e) { currWindow.Activate(); MMessageBox.Result result = MMessageBox.GetInstance().ShowBox("你确定退出程系吗", "提示", MMessageBox.ButtonType.YesNo, MMessageBox.IconType.Info); if (result == MMessageBox.Result.Yes) { Application.Current.Shutdown(); } else { currWindow.WindowState = WindowState.Normal; } }
private void SendYardCb_DropDownOpened(object sender, EventArgs e) { isShowSendYard = true; if (this.SendYardCb.ItemsSource == null) { MMessageBox.Result result = MMessageBox.GetInstance().ShowBox($"您还没有设置货场名称", "提示", MMessageBox.ButtonType.YesNo, MMessageBox.IconType.success, Orientation.Vertical, "是"); if (result == MMessageBox.Result.Yes) { new YardAddW(sendCompany) { ParentRefreshData = new Action <Yard>(AffterAddYard) }.ShowDialog(); } } }