2015-01-03 15:20:34 +08:00
|
|
|
|
using System.Windows;
|
2014-07-04 15:34:31 +08:00
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using Wox.Infrastructure.Storage.UserSettings;
|
|
|
|
|
|
2015-01-03 15:20:34 +08:00
|
|
|
|
namespace Wox.Plugin.CMD
|
2014-07-04 15:34:31 +08:00
|
|
|
|
{
|
|
|
|
|
public partial class CMDSetting : UserControl
|
|
|
|
|
{
|
|
|
|
|
public CMDSetting()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void CMDSetting_OnLoaded(object sender, RoutedEventArgs re)
|
|
|
|
|
{
|
|
|
|
|
cbReplaceWinR.IsChecked = UserSettingStorage.Instance.ReplaceWinR;
|
|
|
|
|
cbLeaveCmdOpen.IsChecked = UserSettingStorage.Instance.LeaveCmdOpen;
|
|
|
|
|
|
|
|
|
|
cbLeaveCmdOpen.Checked += (o, e) =>
|
|
|
|
|
{
|
|
|
|
|
UserSettingStorage.Instance.LeaveCmdOpen = true;
|
|
|
|
|
UserSettingStorage.Instance.Save();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
cbLeaveCmdOpen.Unchecked += (o, e) =>
|
|
|
|
|
{
|
|
|
|
|
UserSettingStorage.Instance.LeaveCmdOpen = false;
|
|
|
|
|
UserSettingStorage.Instance.Save();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
cbReplaceWinR.Checked += (o, e) =>
|
|
|
|
|
{
|
|
|
|
|
UserSettingStorage.Instance.ReplaceWinR = true;
|
|
|
|
|
UserSettingStorage.Instance.Save();
|
|
|
|
|
};
|
|
|
|
|
cbReplaceWinR.Unchecked += (o, e) =>
|
|
|
|
|
{
|
|
|
|
|
UserSettingStorage.Instance.ReplaceWinR = false;
|
|
|
|
|
UserSettingStorage.Instance.Save();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|