private void bbiNew_ItemClick(object sender, ItemClickEventArgs e)
        {
            UnitUpdateForm frmUnitUpdateForm = new UnitUpdateForm();

            frmUnitUpdateForm.ShowDialog();
            LoadData();
        }
        private void bbiEdit_ItemClick(object sender, ItemClickEventArgs e)
        {
            int rowIndex = gvUnit.FocusedRowHandle;
            var col      = "UnitId";
            var value    = gvUnit.GetRowCellValue(rowIndex, col);

            if (value != null)
            {
                UnitUpdateForm updateForm = new UnitUpdateForm();
                updateForm.Id = (int)value;
                updateForm.ShowDialog();
                LoadData();
            }
        }