Ejemplo n.º 1
0
        private void AddTags()
        {
            var currentText = AddNewTag_TextBox.Text;

            if (currentText != "")
            {
                SearchTagsDisplay.Add(new ImageTag(currentText));
                AddNewTag_TextBox.Clear();
            }
        }
Ejemplo n.º 2
0
        private void AddTags()
        {
            var currentText = AddNewTag_TextBox.Text;

            if (currentText != "")
            {
                var suggestionIndex = main.TagSuggestionDisplay.SuggestedTagGridItems.IndexOf(new SuggestedTagGridItem(currentText, 0, 0, ""));
                if (suggestionIndex != -1)
                {
                    var item = main.TagSuggestionDisplay.SuggestedTagGridItems[suggestionIndex];
                    item.IsSelected = true;
                }

                ImageTagsDisplay.AddToAll(new ImageTag(currentText));
                AddNewTag_TextBox.Clear();
            }
        }