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();
                    }

  • 相关阅读:
    RESTful API 架构解读
    在阿里云 ECS 搭建 nginx https nodejs 环境(三、nodejs)
    在阿里云 ECS 搭建 nginx https nodejs 环境(二、https)
    linux 常见操作指令
    前端数据存储方案集合(cookie localStorage等)以及详解 (二)
    无法从其“Checked”属性的字符串表示形式“checked”创建“System.Boolean”类型
    VS2012使用验证控件出现[ASP.NET]WebForms UnobtrusiveValidationMode 需要 'jquery' 的 ScriptResourceMapping。請加入 ScriptResourceMapping 命名的 jquery (區分大小寫)。的解决办法。
    使用SHFB(Sandcastle Help File Builder)建立MSDN风格的代码文档
    常用正则表达式总结
    sql 中有关时间的语句
  • 原文地址:https://www.cnblogs.com/wuhuisheng/p/2087870.html
Copyright © 2011-2022 走看看