Esempio n. 1
0
 private void tagtxtbx_TagAdded(object sender, TagTextBoxEventArgs e)
 {
     if (_maxTags <= 1)
     {
         var lists = tagtxtbx.Text.Split(',').ToList();
         lists.Remove(e.Text);
         tagtxtbx.Text = string.Join(",", lists);
         AlertBox.Show("Max tag is arrived", MessageBoxIcon.Hand, true);
         Application.Update(this);
         return;
     }
     else
     {
         _maxTags--;
         bubble.SetBubbleValue(tagtxtbx, _maxTags);
     }
     Application.Update(this);
 }
Esempio n. 2
0
 private void tagTextBox1_TagRejected(object sender, TagTextBoxEventArgs e)
 {
     AlertBox.Show($"Rejected: {e.Text}", icon: MessageBoxIcon.Error);
 }
Esempio n. 3
0
 private void tagTextBox1_TagSelected(object sender, TagTextBoxEventArgs e)
 {
     AlertBox.Show($"Selected: {e.Text}");
 }
Esempio n. 4
0
 private void tagTextBox1_TagRemoved(object sender, TagTextBoxEventArgs e)
 {
     AlertBox.Show($"Removed: {e.Text}", icon: MessageBoxIcon.Warning);
 }