private bool RemoveEntryCmdEnabled(RegexEntry selected) { return this.SelectedEntry != null; }
private bool AddEntryCmdEnabled(RegexEntry selected) { return true; }
private void RemoveEntry(RegexEntry entry) { Entries.Remove(SelectedEntry); SelectedEntry = null; }
private void AddEntry(RegexEntry entry) { var newEntry = new RegexEntry { Name = "New Entry" }; Entries.Add(newEntry); SelectedEntry = newEntry; }