摘要: 1.生成声音文件 DotNetSpeech.SpeechVoiceSpeakFlags SSF = DotNetSpeech.SpeechVoiceSpeakFlags.SVSFlagsAsync; DotNetSpeech.SpVoice vo = new SpVoiceClass(); Syst 阅读全文
posted @ 2014-04-30 10:33 ChineseMoonGod 阅读(714) 评论(0) 推荐(0)
摘要: private void ToConvert_Click(object sender, EventArgs e) { string strPath = System.Windows.Forms.Application.StartupPath; ... 阅读全文
posted @ 2014-04-30 10:22 ChineseMoonGod 阅读(269) 评论(0) 推荐(0)
摘要: List lst = new List(); lst.Add(new Person("A", "1")); lst.Add(new Person("C", "2")); lst.Add(new Person("B", "3")); ... 阅读全文
posted @ 2014-04-30 09:52 ChineseMoonGod 阅读(585) 评论(0) 推荐(0)
摘要: /// /// 把像素换算成毫米 /// /// 多少像素 /// 多少毫米 public static float PixelConvertMillimeter(float Pixel) { ... 阅读全文
posted @ 2014-04-24 15:43 ChineseMoonGod 阅读(612) 评论(0) 推荐(0)
摘要: 1随机取出10条数据select top 10 * from MA_LOTorder bynewid()2.随机选择记录select newid()3.列出数据库里所有的表名select name from sysobjects where type='U' // U代表用户4.列出表里的所有的列名... 阅读全文
posted @ 2014-04-14 19:59 ChineseMoonGod 阅读(173) 评论(0) 推荐(0)
摘要: 1.存在SP_MA_LOT_SELECTBYVNUMBER未加密的存储过程加密脚本CREATE PROC SP_MA_LOT_SELECTBYVNUMBER_E with ENCRYPTIONASEXECUTE SP_MA_LOT_SELECTBYVNUMBERgoSP_MA_LOT_SELECTB... 阅读全文
posted @ 2014-04-14 19:19 ChineseMoonGod 阅读(226) 评论(0) 推荐(0)
摘要: 1.打开跨服务器功能exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 RECONFIGURE2.关闭跨服务器功能 exec sp_c... 阅读全文
posted @ 2014-04-14 18:48 ChineseMoonGod 阅读(252) 评论(0) 推荐(0)
摘要: 元组(Tuple)笛卡尔积中每一个元素(d1,d2,…,dn)叫作一个n元组(n-tuple)或简称元组。元组是关系数据库中的基本概念,关系是一张表,表中的每行(即数据库中的每条记录)就是一个元组,每列就是一个属性。 在二维表里,元组也称为记录。1.第一个例子 private Tuple Divide(int dividend, int divisor) { int result = dividend / divisor; int reminder = dividend % divisor; return Tuple.Create(result, reminder); //返回两个相同类型元素 阅读全文
posted @ 2014-04-10 20:49 ChineseMoonGod 阅读(524) 评论(0) 推荐(0)
摘要: class person :IComparable { public person(string name, string sex) { this.name = name; this.sex = sex; } public string name{set;get;} public string sex {set;get; } public int CompareTo(person other) { if (other == ... 阅读全文
posted @ 2014-04-10 20:25 ChineseMoonGod 阅读(164) 评论(0) 推荐(0)
摘要: 你发现什么规律了吗?for (int i = 0; i < 5; i++) { a.SetValue((i+2).ToString(), i); } foreach (var item in a) { Console.WriteLine(item); } Console.WriteLine("&&&&&&&&&&&&&&&&&&&&&"); //string[]... 阅读全文
posted @ 2014-04-10 20:02 ChineseMoonGod 阅读(130) 评论(0) 推荐(0)