private void EditOperativeSystem(int OperativeSystemId) { this.OperativeSystem = this.srvOperativeSystem.GetById(OperativeSystemId); this.ClearDetailControls(); this.LoadFormFromEntity(); this.frmOperativeSystem.HiddenDetail(false); this.ShowDetail(true); }
public static OperativeSystem GetOperativeSystemInfo() { OperativeSystem op = new OperativeSystem() { Name = RuntimeInformation.OSDescription }; return(op); }
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); }
private void btnSchCreate_Click(object sender, EventArgs e) { this.OperativeSystem = new OperativeSystem(); this.ClearDetailControls(); this.ShowDetail(true); }