上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: new Thread(() =>refreshDGVdelegate(App.StockList)).Start();//在新线程中执行操作 new ThreadStart(() => refreshDGVdelegate(App.StockList)).Invoke();//在当前线程执行,需等... 阅读全文
posted @ 2015-12-30 17:58 enif 阅读(421) 评论(0) 推荐(0)
摘要: 直接上例子: void updateUI() { if (dateTimePicker1.InvokeRequired) { dateTimePicker1.Invoke((MethodInvoker)delegate {... 阅读全文
posted @ 2014-07-30 09:54 enif 阅读(250) 评论(0) 推荐(0)
摘要: -> 运算符将指针取消引用与成员访问组合在一起。 x->y 其中 x 为 T* 类型的指针,y 为 T 的成员 等效于 (*x).y 只能在标记为不安全的代码中使用 -> 运算符。不能重载 -> 运算符。 // compile with: /unsafestruct Point{ public int x, y;}class MainClass12{ unsaf... 阅读全文
posted @ 2014-07-26 10:50 enif 阅读(302) 评论(0) 推荐(0)
摘要: ?? 运算符称为 null 合并运算符,用于定义可以为 null 值的类型和引用类型的默认值。 如果此运算符的左操作数不为 null,则此运算符将返回左操作数;否则返回右操作数。 class NullCoalesce{ static int? GetNullableInt() { return null; } static string GetSt... 阅读全文
posted @ 2014-07-26 10:40 enif 阅读(366) 评论(0) 推荐(0)
摘要: 生命有尽,大道无涯. 想学的东西太多. 只有不断的学习, 心里才不会产生空虚. 阅读全文
posted @ 2014-05-09 13:38 enif 阅读(144) 评论(0) 推荐(0)
摘要: XAML中 Margin:左 上 右 下 CSS中 Margin:上 右 下 左 阅读全文
posted @ 2014-05-09 10:03 enif 阅读(268) 评论(0) 推荐(0)
摘要: '' 纸张尺寸换算. 1单位= 1/100英寸 Private pw As Integer = CInt((PackingListPrint.pw.Value * 100 / 25.4)) '纸宽 Private ph As Integer = CInt((PackingListPrint.ph.Value * 100 / 25.4)) '纸高 Private ml... 阅读全文
posted @ 2014-05-08 17:27 enif 阅读(467) 评论(0) 推荐(0)
摘要: private static void ExtractResourceToFile(string resourceName, string filename) { if (!System.IO.File.Exists(filename)) using (System.IO.Stream s = System.Reflection.Assemb... 阅读全文
posted @ 2014-04-17 12:08 enif 阅读(408) 评论(0) 推荐(0)
摘要: DPI Scale ColumnWidth RowHeight 72dpi 75% cw=(pix-5)/6 rh=pix*1 96dpi 100% cw=(pix-5)/8 rh=pix*0.75 ... 阅读全文
posted @ 2014-04-17 10:54 enif 阅读(4289) 评论(0) 推荐(1)
摘要: 接口、抽象类、抽象方法和虚方法 interface、abstract class、abstract function、virtual function 1,接口是抽象类的一种变体,接口的所有方法都是抽象方法,必须由继承的类全部实现方法体。接口可以间接实例化。 2,抽象类不能直接实例化,必须做为基类被派生类实现抽象方法。 抽象类里面可以有实方法(有方法体)。 3,抽象方法不提供实际... 阅读全文
posted @ 2014-04-10 18:17 enif 阅读(514) 评论(0) 推荐(1)
上一页 1 ··· 8 9 10 11 12 13 14 下一页
豫ICP备2021034901号