终端一体化运控平台
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.

CopyInfoViewModel.cs 905 B

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