private void btnAddBuilding_Click(object sender, EventArgs e) { frmBuildingDetails fmBuildingDetails = new frmBuildingDetails(); fmBuildingDetails.Op = "new"; fmBuildingDetails.Show(this); }
private void btnEditBuilding_Click(object sender, EventArgs e) { if (gvBuilding.CurrentRow.Index >= 0) { frmBuildingDetails fmBuildingDetails = new frmBuildingDetails(); fmBuildingDetails.Op = "edit"; fmBuildingDetails.SelectedBuilding = buildingSelected; fmBuildingDetails.Show(); } }