// custom messagebox
using System;
using System.Drawing;
using System.Windows.Forms;
using DevExpress.XtraBars.Docking2010.Views.WindowsUI;
using DevExpress.XtraBars.Docking2010.Customization; namespace StatTools
{
public static class MessageBoxService
{
public static DialogResult ShowMessageBox(Form InOwner, string InCaption, string InMessage, bool bShowCancel = false)
{
FlyoutAction action = new FlyoutAction() { Caption = InCaption, Description = InMessage };
FlyoutCommand command1 = new FlyoutCommand() { Text = "确定", Result = System.Windows.Forms.DialogResult.Yes }; action.Commands.Add(command1); if( bShowCancel )
{
FlyoutCommand command2 = new FlyoutCommand() { Text = "取消", Result = System.Windows.Forms.DialogResult.No };
action.Commands.Add(command2);
} FlyoutProperties properties = new FlyoutProperties();
properties.ButtonSize = new Size(, );
properties.Style = FlyoutStyle.MessageBox; return FlyoutDialog.Show(InOwner, action);
}
}
}

最新文章

  1. 【BZOJ】1051: [HAOI2006]受欢迎的牛(tarjan)
  2. 通常我们使用[NSDate date]方法得到的时间与当前时间不一致,如何解决?
  3. 不到30行JS代码实现的Excel表格
  4. 使用邮件监控Mxnet训练
  5. easyui datagrid 得到冻结列跟非冻结列
  6. 第31月第17天 resolveInstanceMethod
  7. BUAA-OO-第一单元表达式求导作业总结
  8. AWS云使用100条宝贵经验分享
  9. DHTMLX Tree中文开发指导
  10. cocos2dx开发之util类&方法——取当前系统时间
  11. Codeforces960G Bandit Blues 【斯特林数】【FFT】
  12. [JSOI2018]潜入行动
  13. error: this 'if' clause does not guard... [-Werror=misleading-indentation]
  14. SQL中以count或sum为条件的查询方式
  15. Java 基本语法----进制、运算符
  16. TCP 的保活定时器
  17. hihoCoder 1403 后缀数组一·重复旋律(后缀数组+单调队列)
  18. CS Academy Distinct Neighbours(经典dp)
  19. ajax跨域两个方法
  20. 【dp】bzoj1613: [Usaco2008 Jan]Running贝茜的晨练计划

热门文章

  1. MongoDB【第三篇】MongoDB基本操作
  2. 学习CodeIgniter框架之旅(二)继承自定义类
  3. 多材质(Shader)实现
  4. SQL Server基线算法(同比和环比)
  5. 第二天-uboot学习
  6. .NET使用NPOI2.0导入导出Excel
  7. s:if 判断
  8. &&&&数组去重方法总结&&&&&
  9. a标签产生间隙,<a> 包裹 <img> 产生 4px 间隙
  10. WebForm基础--2016年12月27日