Exemple #1
0
 private void frmDishDetail_Load(object sender, EventArgs e)
 {
     FillCombobox();
     if (iFuntion == 2)
     {
         LoadDetail();
     }
     else
     {
         txtCreatedBy.Text    = LoginDetail.LoginName;
         dishDetails          = new List <DataConnect.DishDetail>();
         dishDetailViewModels = new List <DishDetailViewModel>();
         dish = new DataConnect.Dish();
     }
 }
Exemple #2
0
 public void setDish(int dishID)
 {
     this.dish = new DishDAO().GetByID(dishID);
 }