using BPA.Helper; using BPASmartClient.CustomResource.Pages.Model; using BPASmartClient.CustomResource.UserControls; using BPASmartClient.CustomResource.UserControls.MessageShow; using BPASmartClient.Model; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace BPASmartClient.Academy.ViewModel { public class RecipeControlViewModel : NotifyBase { public RecipeControlViewModel() { StartCommand = new BPARelayCommand(new Action((o) => { if (o != null && o is string recipeName) { ActionManage.GetInstance.Send("配方下发", recipeName); } })); CancelRecipeCommand = new BPARelayCommand(new Action((ob) => { if (ob != null && ob is RecipeModel recipe) { ActionManage.GetInstance.Send("取消配方", recipe.RecipeName); } })); } public BPARelayCommand StartCommand { get; set; } public BPARelayCommand CancelRecipeCommand { get; set; } } }