예제 #1
0
        private void OnPasteKeywordsButtonClick(object sender, EventArgs e)
        {
            string fromClipboard  = Clipboard.GetText();
            string keywordsJoined = KeywordsUtils.NormilizeJoined(fromClipboard);

            KeywordsTextBox.Text = keywordsJoined;
        }
예제 #2
0
        private void OnPasteKeywordsToExistButtonClick(object sender, EventArgs e)
        {
            string fromClipboard = Clipboard.GetText();

            if (string.IsNullOrWhiteSpace(fromClipboard))
            {
                return;
            }

            KeywordsTextBox.Text = KeywordsUtils.ConcatJoined(KeywordsTextBox.Text, fromClipboard);
        }
예제 #3
0
        private void OnSortAndDistinctButtonClick(object sender, EventArgs e)
        {
            string sortedJoined = KeywordsUtils.SortAndRemoveDuplicatesJoined(KeywordsTextBox.Text);

            KeywordsTextBox.Text = sortedJoined;
        }
예제 #4
0
 private void OnAddKeywordsButtonClick(object sender, EventArgs e)
 {
     KeywordsTextBox.Text = KeywordsUtils.ConcatJoined(KeywordsTextBox.Text, AdditionalKeywordsTextBox.Text);
 }
예제 #5
0
        private void OnKeywordsTextBoxChanged(object sender, EventArgs e)
        {
            int count = KeywordsUtils.CountJoined(KeywordsTextBox.Text);

            KeywordsCountLabel.Content = count.ToString();
        }