随笔分类 -  C#

摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Th... 阅读全文
posted @ 2016-06-12 11:06 尘梦 阅读(143) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { public delegate void del(); class Program { static void Main... 阅读全文
posted @ 2016-05-24 11:20 尘梦 阅读(529) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2016-05-24 11:08 尘梦 阅读(150) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { public delegate int ceshi(T o1, T o2); s... 阅读全文
posted @ 2016-05-24 10:14 尘梦 阅读(125) 评论(0) 推荐(0) 编辑
摘要:public delegate int ceshi(object o1, object o2); static void Main(string[] args) { string[] a = { "abCdeg", "ssxAf" }; object [] b = { 2, 9, 5, 6 }; ... 阅读全文
posted @ 2016-05-24 09:11 尘梦 阅读(177) 评论(0) 推荐(0) 编辑
摘要:int n = 1; double zg = 1; double rb = 4; while (zg < rb) { n++; int k = 1; while (k <= 4) ... 阅读全文
posted @ 2016-05-23 17:05 尘梦 阅读(159) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { public delegate void ceshi(string[] names); class Program { ... 阅读全文
posted @ 2016-05-23 11:27 尘梦 阅读(346) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xm... 阅读全文
posted @ 2016-05-20 09:41 尘梦 阅读(449) 评论(0) 推荐(0) 编辑
摘要:读取 if (File.Exists("Book.xml")) { XmlDocument doc = new XmlDocument(); doc.Load("Book.xml"); XmlElement root = doc.DocumentElement; ... 阅读全文
posted @ 2016-05-19 10:19 尘梦 阅读(1322) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.IO; namespace ConsoleApplication1 { class Program { static void M... 阅读全文
posted @ 2016-05-17 11:03 尘梦 阅读(146) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO... 阅读全文
posted @ 2016-05-12 10:49 尘梦 阅读(382) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO... 阅读全文
posted @ 2016-05-10 11:19 尘梦 阅读(337) 评论(0) 推荐(0) 编辑
摘要:OpenFileDialog open = new OpenFileDialog();//创建对话框 open.InitialDirectory = @"C:\Documents and Settings\All Users\桌面"; //设置对话框路径 open.Title = "对话框1"; //对话框标题 open.... 阅读全文
posted @ 2016-05-10 09:06 尘梦 阅读(297) 评论(0) 推荐(0) 编辑
摘要:电脑using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace shitou { class diannao { public int chuanquan() { Random rd = n... 阅读全文
posted @ 2016-05-09 11:00 尘梦 阅读(240) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using DBHelper;... 阅读全文
posted @ 2016-05-06 11:17 尘梦 阅读(1142) 评论(0) 推荐(0) 编辑
摘要:string a = this.textBox1.Text; // string [] b=a.Split("\r\n".ToCharArray(),StringSplitOptions.RemoveEmptyEntries); string[] b = textBox1.Lines; string 阅读全文
posted @ 2016-05-05 10:51 尘梦 阅读(139) 评论(0) 推荐(0) 编辑
摘要:double a = double.Parse( this.textBox1.Text); double b = double.Parse(this.textBox2.Text); double c =0; switch (this.comboBox1.Text) { ... 阅读全文
posted @ 2016-05-03 11:23 尘梦 阅读(207) 评论(0) 推荐(0) 编辑
摘要:MySqlParameter[] a=new MySqlParameter[]{new MySqlParameter("@stu_id",stu_id)}; 参数使用 阅读全文
posted @ 2016-04-29 08:51 尘梦 阅读(734) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using MySql.Data.MySqlClient; using System.Data; namespace DBHelper { /// ///... 阅读全文
posted @ 2016-04-22 10:47 尘梦 阅读(192) 评论(0) 推荐(0) 编辑
摘要:FORM1 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using M... 阅读全文
posted @ 2016-03-31 11:14 尘梦 阅读(156) 评论(0) 推荐(0) 编辑