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

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