//TestClassOne.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 委托
{
class TestClassOne
{
public int sum(int value1, int value2)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace 事件
{
// 用于对更改通知进行挂钩的委托类型。
public delegate void ChangedEventHandler(object sender, string e);
&
昨天下午去海边玩,抓了几个小螃蟹回来,养在一个小容器里,并把小容器放在一个大一点的没有水的盆子里,有一只小螃蟹很厉害,总是跑来跑去,可能是嫌小容器里面水少,爬出来好几次,都被我放回去了,结果晚上睡觉时它又爬出来了,早上醒来时,小螃蟹已经死在大盆里。
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 日期联动下拉框
{
public partial class Form1 : Form
&n
#include <stdio.h>
#include <stdlib.h>
int IsPrime(int year)
{
if (year%4==0 && year%100!=0 || year%400==0)
return 1;
return 0;
}
int compare(int year1,int month1,int
上午在路上走,突然发现一只失败的知了猴,它试图变成一个知了,但可惜只有后背出来了,其他部分则留在了壳里面,再也没有机会变成知了了。
aspx文件内容: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transiti
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml
数据库中节点值使用字符串表示,后来证明没什么意义,但其中一些思想和代码还是不错的,写出来分享一下。窗体设计可从代码中推理出来,不再贴图了。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using