Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 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();
         }
     }
 }