日期:2014-05-17 浏览次数:21093 次
class personproperties
{
public string name;
public string age;
public string sex;
public Bitmap photo;
}
private void button1_Click(object sender, EventArgs e)
{
personproperties a;
a.name = textBox1.Text;
a.age = textBox2.Text;
a.sex = textBox3.Text;
}
class personproperties
{
public string name {get;set;};
public string age {get;set;};
public string sex {get;set;};
public Bitmap photo {get;set;};
}
private void button1_Click(object sender, EventArgs e)
{
personproperties a=new personproperties ();
a.name = textBox1.Text;
a.age = textBox2.Text;
a.sex = textBox3.Text;
}