摘要: 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 卡玛兹 阅读(386) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { try { //设置应用程序处理异常方式:ThreadException处理 Application.SetUnhandledExceptionM 阅读全文
posted @ 2015-08-25 16:02 卡玛兹 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 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 卡玛兹 阅读(532) 评论(0) 推荐(0) 编辑
摘要: if (txt01.Text != "") { this.lbzhantie.Items.Clear(); this.dtzhuanhuo.Rows.Clear(); if (txt01... 阅读全文
posted @ 2015-08-25 15:42 卡玛兹 阅读(546) 评论(0) 推荐(0) 编辑
摘要: private static string sPath = @Directory.GetCurrentDirectory() + "\\config.ini"; [DllImport("kernel32")] private static extern long WritePrivateProfil 阅读全文
posted @ 2015-08-25 15:40 卡玛兹 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 记得先引用DLL private FilterInfoCollection videoDevices; private VideoCaptureDevice videoSource; BLL.AWBListBLL alb = new AWBListBLL(); public FormPhoto() 阅读全文
posted @ 2015-08-25 15:38 卡玛兹 阅读(2707) 评论(0) 推荐(0) 编辑
摘要: public void ExportToSvc1(string strFileName) { string strPath = strFileName + ".csv"; StringBuilder strValue = new Strin... 阅读全文
posted @ 2015-08-25 15:32 卡玛兹 阅读(1681) 评论(0) 推荐(0) 编辑
摘要: public void AllDataSetToExcel(DataSet ds) { string saveFileName = ""; bool fileSaved = false; Microsoft.Win32... 阅读全文
posted @ 2015-08-25 15:27 卡玛兹 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 起初using就明白一个作用 那就是引用命名空间。当面试官听到我回答这个问题的时候,马上就还问我,还有什么作用?我就只能摇头了,今天在网上看了下using的作用。1.using指令。using + 命名空间名字 ,比如using System;2.using别名。using + 别名 = 包括详细命... 阅读全文
posted @ 2015-08-17 10:18 卡玛兹 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Null是.net中无效的对象引用。DBNull是一个类。DBNull.Value是它唯一的实例。它指数据库中数据为空()时,在.net中的值。null表示一个对象的指向无效,即该对象为空对象。DBNull.Value表示一个对象在数据库中的值为空,或者说未初始化,DBNull.Value对象是指向... 阅读全文
posted @ 2015-08-17 09:56 卡玛兹 阅读(255) 评论(0) 推荐(0) 编辑
你好