2015-01-03 15:20:34 +08:00
|
|
|
|
using System.Windows;
|
2014-08-13 23:16:45 +08:00
|
|
|
|
|
2015-01-03 15:20:34 +08:00
|
|
|
|
namespace Wox.Plugin.Program
|
2014-08-13 23:16:45 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ProgramSuffixes.xaml 的交互逻辑
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class ProgramSuffixes
|
|
|
|
|
{
|
|
|
|
|
public ProgramSuffixes()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
2015-01-05 22:41:17 +08:00
|
|
|
|
tbSuffixes.Text = ProgramStorage.Instance.ProgramSuffixes;
|
2014-08-13 23:16:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
2014-08-14 19:45:48 +08:00
|
|
|
|
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
|
2014-08-13 23:16:45 +08:00
|
|
|
|
{
|
2014-08-14 19:45:48 +08:00
|
|
|
|
if (string.IsNullOrEmpty(tbSuffixes.Text))
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("File suffixes can't be empty");
|
|
|
|
|
return;
|
|
|
|
|
}
|
2014-08-13 23:16:45 +08:00
|
|
|
|
|
2015-01-05 22:41:17 +08:00
|
|
|
|
ProgramStorage.Instance.ProgramSuffixes = tbSuffixes.Text;
|
2014-08-14 19:45:48 +08:00
|
|
|
|
MessageBox.Show("Sucessfully update file suffixes");
|
2014-08-13 23:16:45 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|