private void BtnDelFileMasks_Click(object sender, RoutedEventArgs e) { if (cbFileMask.SelectedItem is FileMaskItem fileMaskItem) { FileMask.DelFromRegistry((fileMaskItem).Key); FileMask.FillCB(cbFileMask); } }
internal void Init() { last_shortDir.IsChecked = true; FileMask.FillCB(cbFileMask); cbFileMask.SelectedIndex = 0; dictTBPreview.Add(lastSearchSettings, last_TBPreview); saveDict[btnSave] = last_tvResultTree; }
private void BtnAddFileMasks_Click(object sender, RoutedEventArgs e) { FileMask.AddToRegistry(cbFileMask.Text); FileMask.FillCB(cbFileMask); cbFileMask.SelectedIndex = cbFileMask.Items.Count; }