zoukankan      html  css  js  c++  java
  • winfrom中的弹出询问消息框提示

    if (dgvgood.Rows.Count > 0)
                    {
                        switch (MessageBox.Show("单据已经修改,要保存吗?", "询问", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2))
                        {
                            case DialogResult.Cancel:
                                break;
                            case DialogResult.Yes:
                                {
                                    //if (string.IsNullOrEmpty(cbperson.Text))
                                    //{
                                    //    MessageShow.ShowMessage("提示", "请填写经办人");
                                    //    return;
                                    //}
                                    if (string.IsNullOrEmpty(cbwarehouse.Text))
                                    {
                                        MessageShow.ShowMessage("提示", "请先选择仓库");
                                        return;
                                    }
                                    if (string.IsNullOrEmpty(cbsupplier.Text))
                                    {
                                        MessageShow.ShowMessage("提示", "请先选择供货商");
                                        return;
                                    }

                                    tspconfirm_Click(null, null);
                                    this.Close();


                                }
                                break;
                            case DialogResult.No:
                                {
                                    FrmGoodsBLL.al_InGoods.Clear();
                                    DataBind();
                                    this.Close();
                                }
                                break;

                        }
                    }
                    else
                    {
                        this.Close();
                    }

  • 相关阅读:
    SSH综合练习-仓库管理系统-第二天
    SSH综合练习-第1天
    Spring第三天
    Spring第二天
    Spring第一天
    【pandas】pandas.Series.str.split()---字符串分割
    【剑指offer】和为s的两个数字
    【剑指offer】数组中只出现一次的数字
    【剑指offer】输入一颗二叉树的根节点,求二叉树的深度,C++实现
    【剑指offer】输入一颗二叉树的根节点,判断是不是平衡二叉树,C++实现
  • 原文地址:https://www.cnblogs.com/wuhuisheng/p/2087870.html
Copyright © 2011-2022 走看看