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

NewShopWindowModel.cs 1.3 KiB

пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using BPASmartClient.Helper;
  7. using Microsoft.Toolkit.Mvvm.ComponentModel;
  8. using Microsoft.Toolkit.Mvvm.Input;
  9. using Microsoft.Toolkit.Mvvm.Messaging;
  10. namespace BPASmartClient.ViewModel
  11. {
  12. public class NewShopWindowModel : ObservableObject
  13. {
  14. public NewShopWindowModel()
  15. {
  16. CloseWindowCommand = new RelayCommand(() => { WeakReferenceMessenger.Default.Send("", "CloseWindow"); });
  17. CancelCommand = new RelayCommand(() => { WeakReferenceMessenger.Default.Send("", "CloseWindow"); });
  18. DefineCommand = new RelayCommand(() =>
  19. {
  20. ActionManage.GetInstance.Send("ShopPar", new string[] { ShopName, ShopId });
  21. WeakReferenceMessenger.Default.Send("", "CloseWindow");
  22. });
  23. }
  24. public RelayCommand CloseWindowCommand { get; set; }
  25. public RelayCommand CancelCommand { get; set; }
  26. public RelayCommand DefineCommand { get; set; }
  27. public string ShopName { get { return _mShopName; } set { _mShopName = value; OnPropertyChanged(); } }
  28. private string _mShopName;
  29. public string ShopId { get { return _mShopId; } set { _mShopId = value; OnPropertyChanged(); } }
  30. private string _mShopId;
  31. }
  32. }