摘要: StreamWriter SW; SW = File.CreateText(@"C:\Documents and Settings\Administrator\桌面\MyTextFile.txt"); SW.WriteLine("File Created ... 阅读全文
posted @ 2014-04-30 15:57 ChineseMoonGod 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 保存image到databasepublic bool SaveImage(string filePath) { bool isSuccess = false; string FilePath = filePath; s... 阅读全文
posted @ 2014-04-30 15:56 ChineseMoonGod 阅读(343) 评论(0) 推荐(0) 编辑
摘要: FilePath.Substring(FilePath.LastIndexOf("\\") + 1) 阅读全文
posted @ 2014-04-30 15:54 ChineseMoonGod 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.this.dsConfig = new DataSet();//使用指定的文件将 XML 架构和数据读入 System.Data.DataSet。 this.dsConfig.ReadXml(System.Windows.Forms.Application.StartupP... 阅读全文
posted @ 2014-04-30 11:20 ChineseMoonGod 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1.生成声音文件 DotNetSpeech.SpeechVoiceSpeakFlags SSF = DotNetSpeech.SpeechVoiceSpeakFlags.SVSFlagsAsync; DotNetSpeech.SpVoice vo = new SpVoiceClass(); Syst 阅读全文
posted @ 2014-04-30 10:33 ChineseMoonGod 阅读(677) 评论(0) 推荐(0) 编辑
摘要: private void ToConvert_Click(object sender, EventArgs e) { string strPath = System.Windows.Forms.Application.StartupPath; ... 阅读全文
posted @ 2014-04-30 10:22 ChineseMoonGod 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 主要代码 DataGridViewTextBoxColumn idColumn = new DataGridViewTextBoxColumn(); idColumn.Name = "Task"; idColumn.DataP... 阅读全文
posted @ 2014-04-30 10:08 ChineseMoonGod 阅读(691) 评论(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 阅读(553) 评论(0) 推荐(0) 编辑