private List <string> TagsRequested() { var form = new TagSelectionDialog(); form.Setup(this._annotationConfig); form.ShowDialog(); return(form.SelectedTags); }
private FSpot.Core.Tag [] SelectTags() { TagStore tag_store = FSpot.App.Instance.Database.Tags; TagSelectionDialog tagDialog = new TagSelectionDialog(tag_store); FSpot.Core.Tag [] tags = tagDialog.Run(); tagDialog.Hide(); return(tags); }
private void ButtonEdit_Click(object sender, System.EventArgs e) { var dialog = new TagSelectionDialog(this._annotationConfig, this.tagDisplayControl.Tags?.Select(o => new AnnotationPackageTag { Value = o }).ToList()); dialog.ShowDialog(); if (dialog.DialogResult == DialogResult.OK) { this._package.Tags = dialog.Tags.Select(o => o.Value).ToList(); this._package.IsDirty = true; } this.tagDisplayControl.SetTags(this._package.Tags?.ToArray()); }
private FSpot.Core.Tag[] SelectTags() { TagStore tag_store = FSpot.App.Instance.Database.Tags; TagSelectionDialog tagDialog = new TagSelectionDialog (tag_store); FSpot.Core.Tag [] tags = tagDialog.Run (); tagDialog.Hide (); return tags; }