public AddIgnored(IgnoredEntry edit, Settings settings)
        {
            _editing  = edit;
            _settings = settings;

            InitializeComponent();
            IgnoredStringTextbox.Text = _editing.EntryString;
            RegexCheckbox.IsChecked   = _editing.IsRegex;
        }
        private void btnEditIgnored_OnClick(object sender, RoutedEventArgs e)
        {
            IgnoredEntry selectedIgnoredEntry = programIgnoreView.SelectedItem as IgnoredEntry;

            if (selectedIgnoredEntry != null)
            {
                new AddIgnored(selectedIgnoredEntry, _settings).ShowDialog();
                programIgnoreView.Items.Refresh();
            }
            else
            {
                string msg = context.API.GetTranslation("wox_plugin_program_pls_select_ignored");
                MessageBox.Show(msg);
            }
        }
        private void btnDeleteIgnored_OnClick(object sender, RoutedEventArgs e)
        {
            IgnoredEntry selectedIgnoredEntry = programIgnoreView.SelectedItem as IgnoredEntry;

            if (selectedIgnoredEntry != null)
            {
                string msg = string.Format(context.API.GetTranslation("wox_plugin_program_delete_ignored"), selectedIgnoredEntry);

                if (MessageBox.Show(msg, string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.Yes)
                {
                    _settings.IgnoredSequence.Remove(selectedIgnoredEntry);
                    programIgnoreView.Items.Refresh();
                }
            }
            else
            {
                string msg = context.API.GetTranslation("wox_plugin_program_pls_select_ignored");
                MessageBox.Show(msg);
            }
        }