/// <summary> /// Handles the Click event of the btnSave control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> protected void btnSave_Click( object sender, EventArgs e ) { EntityTypeService entityTypeService = new EntityTypeService(); EntityType entityType = entityTypeService.Get( int.Parse( hfEntityTypeId.Value ) ); entityType.FriendlyName = tbFriendlyName.Text; entityType.IsCommon = cbCommon.Checked; entityTypeService.Save( entityType, CurrentPersonId ); BindGrid(); pnlDetails.Visible = false; pnlList.Visible = true; hfEntityTypeId.Value = string.Empty; }