using Microsoft.Toolkit.Mvvm.ComponentModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace FryPot_DosingSystem.Model { internal class LogModel:ObservableObject { private string _logTime; public string LogTime { get { return _logTime; } set { _logTime = value; OnPropertyChanged(); } } private string _logType; public string LogType { get { return _logType; } set { _logType = value; OnPropertyChanged(); } } private string _logMessage; public string LogMessage { get { return _logMessage; } set { _logMessage = value; OnPropertyChanged(); } } private Brush _foreColor; public Brush ForeColor { get { return _foreColor; } set { _foreColor = value; OnPropertyChanged(); } } public LogModel() { ForeColor = new SolidColorBrush((System.Windows.Media.Color)System.Windows.Media.ColorConverter.ConvertFromString("#21bb2e")); LogTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); } } }