终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 line
871 B

  1. using BPA.Helper;
  2. using BPA.Helper;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace FryPot_DosingSystem.ViewModel
  9. {
  10. internal class CopyInfoViewModel:NotifyBase
  11. {
  12. private string _fryNum;
  13. public string FryNum { get { return _fryNum; } set { _fryNum = value;OnPropertyChanged(); } }
  14. public BPARelayCommand ConfimCommand { get; set; }
  15. public CopyInfoViewModel()
  16. {
  17. ConfimCommand = new BPARelayCommand(() => {
  18. if (FryNum != null && FryNum != "" && int.TryParse(FryNum.Trim(), out int Num))
  19. {
  20. ActionManage.GetInstance.Send("CopyPotNum",Num);
  21. ActionManage.GetInstance.Send("CloseCopyInfoView");
  22. }
  23. });
  24. }
  25. }
  26. }