|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using BPA.Helper;
- using System.Collections.ObjectModel;
- using System.Windows.Media;
-
- namespace BPASmartClient.CustomResource.Pages.ViewModel
- {
- public class DebugLogViewModel : ObservableObject
- {
- public DebugLogViewModel()
- {
-
- //MessageLog.GetInstance.NotifyShow = new Action<string>((o) => { });
- //MessageLog.GetInstance.DebugLog = new Action<string>((o) =>
- // {
- // Message = MessageLog.GetInstance.DebugLogInfo;
- // });
- }
-
- public static ObservableCollection<MessageModel> MessageModels { get; set; } = new ObservableCollection<MessageModel>();
-
- //public static string Message { get { return _mMessage; } set { _mMessage = value; OnStaticPropertyChanged(); } }
- //private static string _mMessage = string.Empty;
-
- //public static event EventHandler<PropertyChangedEventArgs> StaticPropertyChanged;
- //private static void OnStaticPropertyChanged([CallerMemberName] string PropName = "")
- //{
- // StaticPropertyChanged?.Invoke(null, new PropertyChangedEventArgs(PropName));
- //}
-
-
- }
-
- public class MessageModel : ObservableObject
- {
- public string LogInfo { get { return _mLogInfo; } set { _mLogInfo = value; OnPropertyChanged(); } }
- private string _mLogInfo;
-
- public Brush Forground { get { return _mForground; } set { _mForground = value; OnPropertyChanged(); } }
- private Brush _mForground;
-
- }
-
- }
|