示例#1
0
        private void EditFirewallBrand(int FirewallBrandId)
        {
            this.FirewallBrand = this.srvFirewallBrand.GetById(FirewallBrandId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmFirewallBrand.HiddenDetail(false);
            this.ShowDetail(true);
        }
        public override FirewallBrand GetSearchResult()
        {
            FirewallBrand FirewallBrand = null;
            UltraGridRow  activeRow     = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int FirewallBrandId = Convert.ToInt32(activeRow.Cells[0].Value);
                FirewallBrand = this.srvFirewallBrand.GetById(FirewallBrandId);
            }

            return(FirewallBrand);
        }
示例#3
0
 private void DeleteEntity(int FirewallBrandId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar la Marca de Firewall?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.FirewallBrand           = this.srvFirewallBrand.GetById(FirewallBrandId);
     this.FirewallBrand.Activated = false;
     this.FirewallBrand.Deleted   = true;
     this.srvFirewallBrand.SaveOrUpdate(this.FirewallBrand);
     this.Search();
 }
示例#4
0
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.FirewallBrand = new FirewallBrand();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }