会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
黑冰.org
自说自话
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
16
下一页
2013年1月21日
VS2010无法复制、剪切、粘贴的BUG补丁
摘要: 下载地址另外,如果开着远程桌面连接,也会出现这种情况,因为默认会把本地的剪贴板内容带到远程,其中可能有什么不为人知的问题,导致了复制无效。。
阅读全文
posted @ 2013-01-21 11:58 黑冰.org
阅读(2698)
评论(0)
推荐(0)
2013年1月18日
FineUI如何关闭窗体并弹出提示框
摘要: PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHidePostBackReference() + Alert.GetShowInTopReference("保存成功"));
阅读全文
posted @ 2013-01-18 15:23 黑冰.org
阅读(2487)
评论(0)
推荐(0)
FineUI如何在后台代码中执行JS
摘要: PageContext.RegisterStartupScript(WinCreateType.GetShowReference(string.Format("/InspectType/Create.aspx?ClassID={0}",id),"创建新类型"));
阅读全文
posted @ 2013-01-18 15:22 黑冰.org
阅读(3050)
评论(0)
推荐(0)
2013年1月17日
C# 单元测试
摘要: /// <summary> ///CreateTable 的测试 ///</summary> [TestMethod()] public void CreateTableTest() { Role target = new Role(); //预期值 bool expected = false; //实测值 bool actual; actual = target.CreateT...
阅读全文
posted @ 2013-01-17 16:05 黑冰.org
阅读(229)
评论(0)
推荐(0)
2013年1月14日
FineUI.Panel表格式布局
摘要: ...
阅读全文
posted @ 2013-01-14 16:21 黑冰.org
阅读(2118)
评论(0)
推荐(0)
根据枚举名称创建枚举
摘要: 正常代码 Button1.Icon = Icon.Home特殊情况:private Icon GetIcon(strig icon){ return (Icon)Enum.Parse(typeof(Icon), icon);}Button1.Icon = GetIcon("Home");
阅读全文
posted @ 2013-01-14 12:58 黑冰.org
阅读(208)
评论(0)
推荐(0)
2013年1月10日
支持库:String扩展
摘要: public static class StringExtensions { /// <summary> /// 转换为Int32 /// </summary> /// <param name="num"></param> /// <returns></returns> public static int ToInt32(this string num) { int i; return (!Int32.TryParse(num, out i...
阅读全文
posted @ 2013-01-10 12:03 黑冰.org
阅读(230)
评论(0)
推荐(0)
支持库:DateTime扩展
摘要: public static class DateTimeExtensions { /// <summary> /// 获取格式化日期,默认为 yyyy-mm-dd h:m:s /// yyyy:数字年份,m/mm数字月,d/dd数字日 /// YYYY:汉字年份,如二〇一二,M/MM汉字月,D/DD汉字日 /// </summary> /// <param name="dt">要处理的日期时间</param> /// <param name="sFormat">格式化字符串,以ymd...
阅读全文
posted @ 2013-01-10 12:02 黑冰.org
阅读(352)
评论(2)
推荐(0)
支持库:Int32扩展
摘要: public static class Int32Extensions { public static string ToChineseMonth(int num) { if (num == 0 || num > 12) throw new Exception("月份错误"); string[] arr = { "〇", "一", "二", "三", "四", "五", "六", "七", "八&qu
阅读全文
posted @ 2013-01-10 12:02 黑冰.org
阅读(196)
评论(0)
推荐(0)
2013年1月9日
支持库:DataTable扩展ToList方法
摘要: public static class DataTableExtensions { public static List<T> ToList<T>(this DataTable dt) where T : new() { var list = new List<T>(); if (dt == null) return list; var len = dt.Rows.Count; for (var i = 0; i < len; i++) { ...
阅读全文
posted @ 2013-01-09 11:50 黑冰.org
阅读(1824)
评论(2)
推荐(2)
上一页
1
···
7
8
9
10
11
12
13
14
15
16
下一页
公告