mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 12:52:08 +08:00
25 lines
934 B
C#
25 lines
934 B
C#
using Sheas_Cealer.Consts;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace Sheas_Cealer.Convs;
|
|
|
|
internal class MainSettingsBoxToolTipConv : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
MainConst.SettingsMode settingsMode = (MainConst.SettingsMode)value;
|
|
|
|
return settingsMode switch
|
|
{
|
|
MainConst.SettingsMode.BrowserPathMode => MainConst.SettingsBoxBrowserPathToolTip,
|
|
MainConst.SettingsMode.UpstreamUrlMode => MainConst.SettingsBoxUpstreamUrlToolTip,
|
|
MainConst.SettingsMode.ExtraArgsMode => MainConst.SettingsBoxExtraArgsToolTip,
|
|
_ => throw new UnreachableException()
|
|
};
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotImplementedException();
|
|
} |