e3530e5342
Introduces new models, services, and view models for process monitoring, power plan association, application settings, and enhanced logging. Updates main application files and views to support new features. Adds developer and architecture documentation.
27 lines
723 B
C#
27 lines
723 B
C#
using System;
|
|
using System.Globalization;
|
|
using System.Windows;
|
|
using System.Windows.Data;
|
|
|
|
namespace ThreadPilot
|
|
{
|
|
public class BoolToFontWeightConverter : IValueConverter
|
|
{
|
|
public static readonly BoolToFontWeightConverter Instance = new();
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
if (value is bool boolValue && boolValue)
|
|
{
|
|
return FontWeights.Bold;
|
|
}
|
|
return FontWeights.Normal;
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|