终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

36 行
1.0 KiB

  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 BPASmartClient.ViewModel
  10. {
  11. public class AdminstratorsViewModel:ObservableObject
  12. {
  13. public string Admin { get { return _admin; } set { _admin = value; OnPropertyChanged(); } }
  14. private string _admin;
  15. public string Password { get { return _password; } set { _password = value; OnPropertyChanged(); } }
  16. private string _password;
  17. public string ErrorMessage { get { return _errorMessage; } set { _errorMessage = value; OnPropertyChanged(); } }
  18. private string _errorMessage;
  19. public RelayCommand AdminLoginCommand { get; set; }
  20. public AdminstratorsViewModel()
  21. {
  22. AdminLoginCommand = new RelayCommand(() =>
  23. {
  24. ActionManage.GetInstance.Send("Lonin");
  25. });
  26. }
  27. }
  28. }