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

1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
123456789101112131415161718192021222324252627282930313233
  1. 
  2. using BPA.Helper;
  3. using BPA.Helper;
  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:NotifyBase
  12. {
  13. private string _fryNum;
  14. public string FryNum { get { return _fryNum; } set { _fryNum = value;OnPropertyChanged(); } }
  15. public BPARelayCommand ConfimCommand { get; set; }
  16. public CopyInfoViewModel()
  17. {
  18. ConfimCommand = new BPARelayCommand(() => {
  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. }