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); }
private void tagTextBox1_TagRejected(object sender, TagTextBoxEventArgs e) { AlertBox.Show($"Rejected: {e.Text}", icon: MessageBoxIcon.Error); }
private void tagTextBox1_TagSelected(object sender, TagTextBoxEventArgs e) { AlertBox.Show($"Selected: {e.Text}"); }
private void tagTextBox1_TagRemoved(object sender, TagTextBoxEventArgs e) { AlertBox.Show($"Removed: {e.Text}", icon: MessageBoxIcon.Warning); }