private void EditAccessPointBrand(int AccessPointBrandId)
        {
            this.AccessPointBrand = this.srvAccessPointBrand.GetById(AccessPointBrandId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmAccessPointBrand.HiddenDetail(false);
            this.ShowDetail(true);
        }
示例#2
0
        public override AccessPointBrand GetSearchResult()
        {
            AccessPointBrand AccessPointBrand = null;
            UltraGridRow     activeRow        = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int AccessPointBrandId = Convert.ToInt32(activeRow.Cells[0].Value);
                AccessPointBrand = this.srvAccessPointBrand.GetById(AccessPointBrandId);
            }

            return(AccessPointBrand);
        }
 private void DeleteEntity(int AccessPointBrandId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar la Marca de Punto de Acceso?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.AccessPointBrand           = this.srvAccessPointBrand.GetById(AccessPointBrandId);
     this.AccessPointBrand.Activated = false;
     this.AccessPointBrand.Deleted   = true;
     this.srvAccessPointBrand.SaveOrUpdate(this.AccessPointBrand);
     this.Search();
 }
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.AccessPointBrand = new AccessPointBrand();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }