using DevExpress.XtraEditors;


对话框的使用 对话框#region 对话框 /// <summary> /// 确认对话框 /// </summary> /// <param name="strString">提示内容</param> /// <returns>用户点击结果</returns> public DialogResult Confirm(string strString) { return DevExpress.XtraEditors.XtraMessageBox.Show(strString,"提示",MessageBoxButtons.OKCancel,MessageBoxIcon.Question); } /// <summary> /// 确认对话框 /// </summary> /// <param name="strSting">提示内容</param> public void ShowMessage(string strSting) { DevExpress.XtraEditors.XtraMessageBox.Show(strSting,"提示",MessageBoxButtons.OK,MessageBoxIcon.Information); } /// <summary> /// 确认删除对话框 /// </summary> /// /// <returns>用户点击结果</returns> public DialogResult ConfirmDelete() { return DevExpress.XtraEditors.XtraMessageBox.Show("确定要删除吗?","提示",MessageBoxButtons.OKCancel,MessageBoxIcon.Question); } #endregion 使用用例: if(this.Confirm("确定要删除吗?") == DialogResult.Cancel) return;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-11-18
  • 2021-08-20
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-11-30
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
相关资源
相似解决方案