void CreateCategory(object sender, EventArgs e)
        {
            string categoryName = CategotyNameTextBox.Text;
            int    imgId        = ChooseImgList.SelectedIndices.Count > 0 ? ChooseImgList.SelectedIndices[0] : -1;

            if (IsValidInput(categoryName, imgId))
            {
                CategoryCreated?.Invoke(categoryName, imgId);
                Close();
            }
        }
 public virtual void OnCategoryCreated()
 {
     CreateNotification(EventActionType.Created);
     CategoryCreated?.Invoke(this, new NewNotificationEventArgs(this));
 }