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.
|
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- using BPASmartClient.Message;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
-
- namespace BPASmartClient.CustomResource.Pages.ViewModel
- {
- public class DebugLogViewModel : ObservableObject
- {
- public DebugLogViewModel()
- {
- MessageLog.GetInstance.DebugLog = new Action<string>((o) =>
- {
- Message = MessageLog.GetInstance.DebugLogInfo;
- });
- }
-
- 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));
- }
-
-
- }
- }
|