Exemple #1
0
        public FoodSafeInfo GetData()
        {
            FoodSafeInfo info = new FoodSafeInfo();

            info.CompanyType = this.CompanyType.Text;
            info.HasLicense  = this.HasLicense.Text;
            info.LicenseName = this.LicenseName.Text;

            return(info);
        }
Exemple #2
0
        private void clearBtn_Click(object sender, EventArgs e)
        {
            FoodSafeInfo foodinfo = new FoodSafeInfo();

            foodinfo.CompanyType = null;
            foodinfo.HasLicense  = null;
            foodinfo.LicenseName = null;

            SetData(foodinfo);
        }
Exemple #3
0
 public void SetData(FoodSafeInfo info)
 {
     this.CompanyType.Text = info.CompanyType;
     this.HasLicense.Text  = info.HasLicense;
     this.LicenseName.Text = info.LicenseName;
 }