private void textDevNote_Leave(object sender, EventArgs e)
 {
     if (_subCur.DevNote == textDevNote.Text)
     {
         return;
     }
     _subCur.DevNote = textDevNote.Text;
     BugSubmissions.Update(_subCur);
     TextDevNoteLeave?.Invoke(sender, e);
 }
        private void butAddCategory_Click(object sender, EventArgs e)
        {
            InputBox input = new InputBox("Please enter a category tag");

            if (input.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            BugSubmission subOld      = _subCur.Copy();
            List <string> listCats    = subOld.ListCategoryTags;
            string        categoryNew = input.ListTextEntered[0];

            listCats.Add(categoryNew);
            _subCur.CategoryTags = string.Join(",", listCats);
            BugSubmissions.Update(_subCur, subOld);
            RefreshViews();
        }
        private void butDeleteCategory_Click(object sender, EventArgs e)
        {
            int index = listBoxCategories.SelectedIndex;

            if (index == -1)
            {
                return;
            }
            if (!MsgBox.Show(this, MsgBoxButtons.YesNo, "You are about to delete this category, continue?"))
            {
                return;
            }
            BugSubmission subOld   = _subCur.Copy();
            List <string> listCats = subOld.ListCategoryTags;

            listCats.RemoveAt(index);
            _subCur.CategoryTags = string.Join(",", listCats);
            BugSubmissions.Update(_subCur, subOld);
            RefreshViews();
        }