26 lines
606 B
C#
26 lines
606 B
C#
using System.Configuration;
|
|
using System.Windows.Controls;
|
|
|
|
namespace MetroGauges.Controls
|
|
{
|
|
/// <summary>
|
|
/// PaletteSelector.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class PaletteSelector : UserControl
|
|
{
|
|
public PaletteSelector()
|
|
{
|
|
InitializeComponent();
|
|
var x = ConfigurationManager.AppSettings["Intensity"];
|
|
if (x == "Dark")
|
|
{
|
|
Intensity.IsChecked = true;
|
|
}
|
|
if (x == "Light")
|
|
{
|
|
Intensity.IsChecked = false;
|
|
}
|
|
}
|
|
}
|
|
}
|