终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

52 rindas
1.7 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Runtime.CompilerServices;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Microsoft.Toolkit.Mvvm.ComponentModel;
  9. using BPA.Helper;
  10. using System.Collections.ObjectModel;
  11. using System.Windows.Media;
  12. namespace BPASmartClient.CustomResource.Pages.ViewModel
  13. {
  14. public class DebugLogViewModel : ObservableObject
  15. {
  16. public DebugLogViewModel()
  17. {
  18. //MessageLog.GetInstance.NotifyShow = new Action<string>((o) => { });
  19. //MessageLog.GetInstance.DebugLog = new Action<string>((o) =>
  20. // {
  21. // Message = MessageLog.GetInstance.DebugLogInfo;
  22. // });
  23. }
  24. public static ObservableCollection<MessageModel> MessageModels { get; set; } = new ObservableCollection<MessageModel>();
  25. //public static string Message { get { return _mMessage; } set { _mMessage = value; OnStaticPropertyChanged(); } }
  26. //private static string _mMessage = string.Empty;
  27. //public static event EventHandler<PropertyChangedEventArgs> StaticPropertyChanged;
  28. //private static void OnStaticPropertyChanged([CallerMemberName] string PropName = "")
  29. //{
  30. // StaticPropertyChanged?.Invoke(null, new PropertyChangedEventArgs(PropName));
  31. //}
  32. }
  33. public class MessageModel : ObservableObject
  34. {
  35. public string LogInfo { get { return _mLogInfo; } set { _mLogInfo = value; OnPropertyChanged(); } }
  36. private string _mLogInfo;
  37. public Brush Forground { get { return _mForground; } set { _mForground = value; OnPropertyChanged(); } }
  38. private Brush _mForground;
  39. }
  40. }