private void btnDeleteMaterial_Click(object sender, EventArgs e)
        {
            DeleteMaterialForm delete;

            //int[] selRows = gridView.GetSelectedRows();
            //if (selRows.Length >0)
            //{
            //    Material selRow = (Material)(((GridView)gridMaterials.MainView).GetRow(selRows[0]));

            //     delete = new DeleteMaterialForm(selRow);
            //}
            //else
            //{
            delete = new DeleteMaterialForm();
            //}

            delete.ShowDialog();
        }
 private void deleteMaterialToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Materials_Forms.DeleteMaterialForm deleteMaterial = new Materials_Forms.DeleteMaterialForm();
     deleteMaterial.ShowDialog();
 }