public void SelectEntry([NotNull] ResourceTableEntry entry) { if (!ResourceManager.TableEntries.Contains(entry)) { return; } var entity = entry.Container; ClearFiltersRequest?.Invoke(this, EventArgs.Empty); if (!SelectedEntities.Contains(entity)) { SelectedEntities.Add(entity); } SelectedTableEntries.Clear(); SelectedTableEntries.Add(entry); }
public void AddNewKey([NotNull] ResourceEntity entity, [NotNull] string key) { if (!entity.CanEdit(null)) { return; } var entry = entity.Add(key); if (entry == null) { return; } ClearFiltersRequest?.Invoke(this, EventArgs.Empty); ResourceManager.ReloadSnapshot(); SelectedTableEntries.Clear(); SelectedTableEntries.Add(entry); }