private void buttonSelectUpdate_Click(object sender, EventArgs e)
 {
     if (isCategorySelected)
     {
         UpdateCategory updateCategory = new UpdateCategory();
         updateCategory.Show();
     }
     else
     {
         UpdateProduct updateProduct = new UpdateProduct();
         updateProduct.Show();
     }
 }
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            CategoryEditDto categoryEditDto = new CategoryEditDto();
            string          categoryType    = this.dataGridView1.CurrentRow.Cells["categoryType"].Value.ToString();
            string          categoryName    = this.dataGridView1.CurrentRow.Cells["categoryName"].Value.ToString();
            int             categoryId      = int.Parse(this.dataGridView1.CurrentRow.Cells["categoryId"].Value.ToString());
            double          categoryLimit   = double.Parse(this.dataGridView1.CurrentRow.Cells["categoryLimit"].Value.ToString());

            categoryEditDto.categoryId    = categoryId;
            categoryEditDto.categoryName  = categoryName;
            categoryEditDto.categoryType  = categoryType;
            categoryEditDto.categoryLimit = categoryLimit;
            UpdateCategory updateCategory = new UpdateCategory(categoryEditDto, this);

            updateCategory.Show();
        }