日期:2014-05-17 浏览次数:20741 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WindowsFormsApplication1
{
public class args : EventArgs
{
private string str;
public string Str
{
get { return str; }
set { str = value; }
}
public args(string s)
{
str = s;
}
}
}
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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
private string s;
public string S
{
get { return s; }
set { s = value; }
}
public Form1()
{
InitializeComponent();
}
public delegate string test(args e);
public event test tt;
private void Form1_Load(object sender, EventArgs e)
{
if (null != this.tt)