private void btnUpdateMaterial_Click(object sender, EventArgs e)
        {
            UpdateMaterialForm update;

            //int[] selRows = gridView.GetSelectedRows();

            //if (selRows.Length > 0)
            //{
            //    Material selRow = (Material)(((GridView)gridMaterials.MainView).GetRow(selRows[0]));
            //     update = new UpdateMaterialForm(selRow);
            //}
            //else
            //{
            update = new UpdateMaterialForm();
            //}


            update.ShowDialog();
        }
 private void updateMaterialToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Materials_Forms.UpdateMaterialForm updateMaterial = new Materials_Forms.UpdateMaterialForm();
     updateMaterial.ShowDialog();
 }