1.用属性的只写操作
public string MyTextBox
{
set
{
this.txtAddVersion.Text = value;
this.txtAddDate.Text = value;
this.txtAddFunction.Text = value;
this.txtAddSummary.Text = value;
this.txtAddDescription.Text = value;
}
}
2.将属性的文本值集合清空
private void btnDelete_Click(object sender, System.EventArgs e)
{
MyTextBox = string.Empty;
}
public string MyTextBox
{
set
{
this.txtAddVersion.Text = value;
this.txtAddDate.Text = value;
this.txtAddFunction.Text = value;
this.txtAddSummary.Text = value;
this.txtAddDescription.Text = value;
}
}
2.将属性的文本值集合清空
private void btnDelete_Click(object sender, System.EventArgs e)
{
MyTextBox = string.Empty;
}