private void bunifuCustomDataGridFabricDataBase_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 8)
            {
                AddForms.RCAddForm.RCFabricAddForm editFabric = new AddForms.RCAddForm.RCFabricAddForm(
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnFabric_id"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnCategory_id"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnName"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnAdditional"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnImg_path"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnMax_width"].Value.ToString()
                    );
                editFabric.DialogResult = DialogResult.None;
                editFabric.ShowDialog();
                if (editFabric.DialogResult == DialogResult.OK)
                {
                    load_fabrics();
                }
            }
            else if (e.ColumnIndex == 9)
            {
                DialogResult dialog = MessageBox.Show("Ви дійсно бажаєте видалити цей об'єкт?", "?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (dialog == DialogResult.No)
                {
                    return;
                }

                AddForms.RCAddForm.RCFabricAddForm editFabric = new AddForms.RCAddForm.RCFabricAddForm(
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnFabric_id"].Value.ToString(),
                    this
                    );
            }
        }
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     AddForms.RCAddForm.RCFabricAddForm fabricAddForm = new AddForms.RCAddForm.RCFabricAddForm();
     fabricAddForm.DialogResult = DialogResult.None;
     fabricAddForm.ShowDialog();
     if (fabricAddForm.DialogResult == DialogResult.OK)
     {
         load_fabrics();
     }
 }