public FoodSafeInfo GetData() { FoodSafeInfo info = new FoodSafeInfo(); info.CompanyType = this.CompanyType.Text; info.HasLicense = this.HasLicense.Text; info.LicenseName = this.LicenseName.Text; return(info); }
private void clearBtn_Click(object sender, EventArgs e) { FoodSafeInfo foodinfo = new FoodSafeInfo(); foodinfo.CompanyType = null; foodinfo.HasLicense = null; foodinfo.LicenseName = null; SetData(foodinfo); }
public void SetData(FoodSafeInfo info) { this.CompanyType.Text = info.CompanyType; this.HasLicense.Text = info.HasLicense; this.LicenseName.Text = info.LicenseName; }