Esempio 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);
        }
Esempio n. 2
0
        public static OperativeSystem GetOperativeSystemInfo()
        {
            OperativeSystem op = new OperativeSystem()
            {
                Name = RuntimeInformation.OSDescription
            };

            return(op);
        }
Esempio 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);
        }
Esempio n. 5
0
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.OperativeSystem = new OperativeSystem();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }