|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 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<object>(new Action<object>((o) =>
- {
- if (o != null && o is string recipeName)
- {
- ActionManage.GetInstance.Send("配方下发", recipeName);
- }
- }));
- CancelRecipeCommand = new BPARelayCommand<object>(new Action<object>((ob) =>
- {
- if (ob != null && ob is RecipeModel recipe)
- {
- ActionManage.GetInstance.Send("取消配方", recipe.RecipeName);
- }
- }));
- }
- public BPARelayCommand<object> StartCommand { get; set; }
-
- public BPARelayCommand<object> CancelRecipeCommand { get; set; }
- }
-
-
- }
|