08 2016 档案
摘要:第一步: 页面 首先引用命名空间 xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:wf="clr-namespace:System.Windows.Fo
阅读全文
摘要:private ContentControl cc = null; private void muiscPlay(object sender, RoutedEventArgs e) { string name = ((ContentControl)sender).Tag.ToString(); if
阅读全文
摘要:看到这个错往往会感到莫名其妙! 其原因其实是数据库的DateTime最小值和C#的DateTime不一样 Sql Server DateTime 类型必须介于 1/1/1753 12:00:00 AM 和 12/31/9999 11:59:59 PM 之间,而C#的是从0001/1/1年开始 遇到这
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace BIReportCenter.Utility { public class StringHelper { #r...
阅读全文
摘要:LINQ To SQL 语法及实例大全 2011/4/5 目录 LINQ to SQL语句(1)之Where. 2 Where操作... 2 1.简单形式:... 2 2.关系条件形式:... 2 3.First()形式:... 3 LINQ to SQL语句(2)之Select/Distinct.
阅读全文
摘要:1. 避免将多个类放在一个文件里面。 2. 一个文件应该只有一个命名空间,避免将多个命名空间放在同一个文件里面。 3. 一个文件最好不要超过500行的代码(不包括机器产生的代码)。 4. 一个方法的代码长度最好不要超过25行。 5. 避免方法中有超过5个参数的情况。使用结构来传递多个参数。 6. 每
阅读全文
摘要:转自:http://63542424.blog.163.com/blog/static/18883900201101963536504/ string resultFile = ""; OpenFileDialog openFileDialog1 = new OpenFileDialog(); op
阅读全文