private void EditAccessPointType(int AccessPointTypeId) { this.AccessPointType = this.srvAccessPointType.GetById(AccessPointTypeId); this.ClearDetailControls(); this.LoadFormFromEntity(); this.frmAccessPointType.HiddenDetail(false); this.ShowDetail(true); }
private void DeleteEntity(int AccessPointTypeId) { if (MessageBox.Show("¿Esta seguro de eliminar el Tipo de Punto de Acceso?", "Advertencia", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) { return; } this.AccessPointType = this.srvAccessPointType.GetById(AccessPointTypeId); this.AccessPointType.Activated = false; this.AccessPointType.Deleted = true; this.srvAccessPointType.SaveOrUpdate(this.AccessPointType); this.Search(); }
public override AccessPointType GetSearchResult() { AccessPointType AccessPointType = null; UltraGridRow activeRow = this.grdSchSearch.ActiveRow; if (activeRow != null) { int AccessPointTypeId = Convert.ToInt32(activeRow.Cells[0].Value); AccessPointType = this.srvAccessPointType.GetById(AccessPointTypeId); } return(AccessPointType); }
private void btnSchCreate_Click(object sender, EventArgs e) { this.AccessPointType = new AccessPointType(); this.ClearDetailControls(); this.ShowDetail(true); }