Exemplo n.º 1
0
        private void EditOperativeSystem(int OperativeSystemId)
        {
            this.OperativeSystem = this.srvOperativeSystem.GetById(OperativeSystemId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmOperativeSystem.HiddenDetail(false);
            this.ShowDetail(true);
        }
Exemplo n.º 2
0
        public static OperativeSystem GetOperativeSystemInfo()
        {
            OperativeSystem op = new OperativeSystem()
            {
                Name = RuntimeInformation.OSDescription
            };

            return(op);
        }
Exemplo n.º 3
0
 private void DeleteEntity(int OperativeSystemId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar el Sistema Operativo?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.OperativeSystem           = this.srvOperativeSystem.GetById(OperativeSystemId);
     this.OperativeSystem.Activated = false;
     this.OperativeSystem.Deleted   = true;
     this.srvOperativeSystem.SaveOrUpdate(this.OperativeSystem);
     this.Search();
 }
        public override OperativeSystem GetSearchResult()
        {
            OperativeSystem OperativeSystem = null;
            UltraGridRow    activeRow       = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int OperativeSystemId = Convert.ToInt32(activeRow.Cells[0].Value);
                OperativeSystem = this.srvOperativeSystem.GetById(OperativeSystemId);
            }

            return(OperativeSystem);
        }
Exemplo n.º 5
0
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.OperativeSystem = new OperativeSystem();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }