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