private void bunifuCustomDataGridFabricDataBase_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 11)
            {
                AddForms.FabricCurtainAddForm.FCFabricFabricAddForm editFabric = new AddForms.FabricCurtainAddForm.FCFabricFabricAddForm(
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnFabric_id"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnCategory_id"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnType_id"].Value.ToString(),
                    bunifuCustomDataGridFabricDataBase.Rows[e.RowIndex].Cells["ColumnSubtype_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()
                    );
                editFabric.DialogResult = DialogResult.None;
                editFabric.ShowDialog();
                if (editFabric.DialogResult == DialogResult.OK)
                {
                    load_fabrics();
                }
            }
            else if (e.ColumnIndex == 12)
            {
                DialogResult dialog = MessageBox.Show("Ви дійсно бажаєте видалити цей об'єкт?", "?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (dialog == DialogResult.No)
                {
                    return;
                }

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