Exemplo n.º 1
0
        private void DeleteBtn_Click(object sender, RoutedEventArgs e)
        {
            var text = SelectedItem.Text.Trim();

            if (!string.IsNullOrEmpty(text))
            {
                Settings.Default.TargetPreFix.Remove(text);
                Settings.Default.Save();
                SelectedItem.Clear();
                SelectedItem.Focus();
                ListItem();
            }
        }