摘要: 1,刚开始学习源码。然后copy了一份http://www.jzxue.com/主页源码,准备开始从别人精良的网页开始我的前端网页设计之路。2,去除css引入3,源码无css部分效果图:3,经过css规范后的主页效果: 阅读全文
posted @ 2014-03-03 15:16 UCanBeFree 阅读(129) 评论(0) 推荐(0)
摘要: 使用ApplicationContextstatic class Program { internal static ApplicationContext context = new ApplicationContext(new Form1()); /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.EnableVisualStyles(); ... 阅读全文
posted @ 2014-01-18 14:05 UCanBeFree 阅读(107) 评论(0) 推荐(0)
摘要: //----------------线程传多个参数------------------- private void ShowName(object li){ List list= li as List; if (list != null) { foreach (string l in list) { MessageBox.Show(l); } } } private void button1_Click(object se... 阅读全文
posted @ 2014-01-17 15:43 UCanBeFree 阅读(130) 评论(0) 推荐(0)
摘要: in 和exists的用法差不多.但是in条件不能有外部条件,如:select *from rp_001 A where exists (select years from RepOrt B where A.repid=20)select *From rp_001 A join RepOrt on A.repid=20;exists 不会筛选出report的数据而join会与report自然连接。 阅读全文
posted @ 2014-01-09 16:49 UCanBeFree 阅读(301) 评论(0) 推荐(0)
摘要: 加载解析xml文件:from xml.dom import minidomdoc=minidom.parse("Book.xml") 阅读全文
posted @ 2014-01-09 11:58 UCanBeFree 阅读(382) 评论(0) 推荐(0)
摘要: public delegate void MyInvoke( ); public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Thread th = new Thread(new ThreadStart(correctfunc)); t... 阅读全文
posted @ 2014-01-02 17:12 UCanBeFree 阅读(161) 评论(0) 推荐(0)
摘要: 迭代器 能使你获得序列中所有元素而不用关心其类型是array,list,link list或者其他序列结构。 1,实现接口IEnumerable就可以实现数据迭代。其中调用GetEnumerator方法返回Enumerator接口的实现,就是迭代器本身。 class BookColletion:IEnumerable{ #region IEnumerable 成员 public IEnumerator GetEnumerator() { //return 一个IEnumerator对象 return ne... 阅读全文
posted @ 2013-12-31 15:27 UCanBeFree 阅读(176) 评论(0) 推荐(0)
摘要: //灵活使用别名使代码更加精简。 using ZClass2 = ZClass, string>; class XClass { //泛型方法 public static void MethodA(z param) { Console.Write(param.GetType().ToString()); } } class YClass { public T MethodA() { T t=default(T); return t; ... 阅读全文
posted @ 2013-12-31 09:09 UCanBeFree 阅读(203) 评论(0) 推荐(0)
摘要: using Temptest = Temptest; class Program { static void Main(string[] args) { Temptest x = new Temptest(); x.func(); //输出: //ConsoleApplication5.Temptest`1[System.String] Console.Read(); } } class Temptest { ... 阅读全文
posted @ 2013-12-31 09:07 UCanBeFree 阅读(220) 评论(0) 推荐(0)
摘要: C++#include "stdafx.h"#include#includeusing namespace std;//声明一个函数结构。typedef void (*func)(string);/***用c++模拟实现委托 * *委托其实就是传递函数指针。 */void fu... 阅读全文
posted @ 2013-12-30 11:47 UCanBeFree 阅读(681) 评论(0) 推荐(0)