mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 19:19:23 +08:00
32 lines
816 B
C#
32 lines
816 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace Wox.Plugin.Everything
|
|
{
|
|
public partial class EverythingSettings : UserControl
|
|
{
|
|
private readonly Settings _settings;
|
|
|
|
public EverythingSettings(Settings settings)
|
|
{
|
|
InitializeComponent();
|
|
_settings = settings;
|
|
}
|
|
|
|
private void View_Loaded(object sender, RoutedEventArgs re)
|
|
{
|
|
UseLocationAsWorkingDir.IsChecked = _settings.UseLocationAsWorkingDir;
|
|
|
|
UseLocationAsWorkingDir.Checked += (o, e) =>
|
|
{
|
|
_settings.UseLocationAsWorkingDir = true;
|
|
};
|
|
|
|
UseLocationAsWorkingDir.Unchecked += (o, e) =>
|
|
{
|
|
_settings.UseLocationAsWorkingDir = false;
|
|
};
|
|
}
|
|
}
|
|
}
|