Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- using BPA.Helper;
- using BPASmartClient.Model;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Printing;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.ViewModel
- {
- public class EditRecipeViewModel:NotifyBase
- {
- public BPARelayCommand<object> EditOrder { get; set; }
- public BPARelayCommand<object> DeleteOrder { get; set; }
- public BPARelayCommand SaveOrder { get; set; }
- public EditRecipeViewModel()
- {
- NoodOrderCtrl.GetInstance.editRecipeAction = s =>
- {
- LocalOrder = s;
- };
- SaveOrder = new BPARelayCommand(() => { NoodOrderCtrl.GetInstance.SaveRecipe(LocalOrder); });
- EditOrder = new BPARelayCommand<object>(NoodOrderCtrl.GetInstance.EditOrder);
- DeleteOrder = new BPARelayCommand<object>(NoodOrderCtrl.GetInstance.DeleteRecipe);
- }
- public FoodMenuModel LocalOrder { get { return _localOrder; } set { _localOrder = value; OnPropertyChanged(); } }
- private FoodMenuModel _localOrder = new FoodMenuModel();
- public ObservableCollection<FoodMenuModel> FoodMenus { get; set; } = FoodMenuViewModel.FoodMenus;
- }
- }
|