public virtual bool CanMatch(fo.DicomItem element) { if (SupportedTags.Count > 0) { return(SupportedTags.Contains((uint)element.Tag)); } return(true); }
public virtual bool CanMatch(DicomAttribute element) { if (SupportedTags.Count > 0) { return(SupportedTags.Contains(element.Tag.TagValue)); } return(true); }
public async Task LoadTagsFromDb() { List <TagPOCO> fbres = await db.GetAllTagsAsync().ConfigureAwait(false); IEnumerable <ITag> lst = fbres.Select(TagFactory.CreateTag); foreach (ITag tag in lst) { SupportedTags.Add(tag); } }
private async void DeleteTag(object obj) { var tag = obj as ITag; if (tag == null) { return; } MessageBoxResult result = MessageBox.Show($"Are you sure to delete Tag:{Environment.NewLine}[{tag.Title}]" + "?", "Confirm", MessageBoxButton.OKCancel, MessageBoxImage.Information); if (result != MessageBoxResult.OK) { return; } SupportedTags.Remove(tag); await db.DeleteTagAsync(tag.Title).ConfigureAwait(false); }