Ejemplo n.º 1
0
 private void Initialize()
 {
     listBoxTypes.Items.Clear();
     foreach (var type in DishPresenter.GetAllType())
     {
         listBoxTypes.Items.Add(type);
     }
 }
Ejemplo n.º 2
0
 public FormAddDish()
 {
     InitializeComponent();
     comboBoxTypeDish.DataSource = DishPresenter.GetAllType();
     while (true)
     {
         if (DishPresenter.GetDishes().Exists(x => x.Id == id))
         {
             id++;
         }
         else
         {
             break;
         }
     }
 }