会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dream
--------------------------------
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2015年9月11日
EF多个表映射
摘要: public class Media // One entity table{ public int Id { get; set; } public string Name { get; set; } public bool Enabled { get; set; } pub...
阅读全文
posted @ 2015-09-11 11:07 卡玛兹
阅读(395)
评论(0)
推荐(0)
2015年8月25日
winform捕捉全局异常
摘要: /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { try { //设置应用程序处理异常方式:ThreadException处理 Application.SetUnhandledExceptionM
阅读全文
posted @ 2015-08-25 16:02 卡玛兹
阅读(656)
评论(0)
推荐(0)
c# 打印面单
摘要: private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Bitmap bit = new Bitmap(this.Width, this.Height);
阅读全文
posted @ 2015-08-25 15:43 卡玛兹
阅读(553)
评论(0)
推荐(0)
winform导入excel或者csv
摘要: if (txt01.Text != "") { this.lbzhantie.Items.Clear(); this.dtzhuanhuo.Rows.Clear(); if (txt01...
阅读全文
posted @ 2015-08-25 15:42 卡玛兹
阅读(575)
评论(0)
推荐(0)
调用Config.ini类
摘要: private static string sPath = @Directory.GetCurrentDirectory() + "\\config.ini"; [DllImport("kernel32")] private static extern long WritePrivateProfil
阅读全文
posted @ 2015-08-25 15:40 卡玛兹
阅读(313)
评论(0)
推荐(0)
AForge实现拍照
摘要: 记得先引用DLL private FilterInfoCollection videoDevices; private VideoCaptureDevice videoSource; BLL.AWBListBLL alb = new AWBListBLL(); public FormPhoto()
阅读全文
posted @ 2015-08-25 15:38 卡玛兹
阅读(2771)
评论(0)
推荐(0)
winform导出csv
摘要: public void ExportToSvc1(string strFileName) { string strPath = strFileName + ".csv"; StringBuilder strValue = new Strin...
阅读全文
posted @ 2015-08-25 15:32 卡玛兹
阅读(1776)
评论(0)
推荐(0)
winform导出excel
摘要: public void AllDataSetToExcel(DataSet ds) { string saveFileName = ""; bool fileSaved = false; Microsoft.Win32...
阅读全文
posted @ 2015-08-25 15:27 卡玛兹
阅读(398)
评论(0)
推荐(0)
2015年8月17日
net里面using的使用
摘要: 起初using就明白一个作用 那就是引用命名空间。当面试官听到我回答这个问题的时候,马上就还问我,还有什么作用?我就只能摇头了,今天在网上看了下using的作用。1.using指令。using + 命名空间名字 ,比如using System;2.using别名。using + 别名 = 包括详细命...
阅读全文
posted @ 2015-08-17 10:18 卡玛兹
阅读(281)
评论(0)
推荐(0)
DBNULL与null的区别
摘要: Null是.net中无效的对象引用。DBNull是一个类。DBNull.Value是它唯一的实例。它指数据库中数据为空()时,在.net中的值。null表示一个对象的指向无效,即该对象为空对象。DBNull.Value表示一个对象在数据库中的值为空,或者说未初始化,DBNull.Value对象是指向...
阅读全文
posted @ 2015-08-17 09:56 卡玛兹
阅读(273)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告
你好