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

36 line
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("LoginSuccess");
  25. });
  26. }
  27. }
  28. }