public void LoadByID(int itmID) { ClearForm(); moTitle.Load(itmID); LoadObjectToScreen(); mbItemChanged = false; }
private void LoadObjectToScreen() { CBEmployeeTitle et = new CBEmployeeTitle(); txtNumber.Text = moEmp.Number; txtName.Text = moEmp.Name; txtAbbrev.Text = moEmp.Abbrev; et.Load(moEmp.EmpTitleID); cboTitle.Text = et.Name; chkIsProjMngr.Checked = moEmp.IsProjectManager; chkIsRelMngr.Checked = moEmp.IsRelManager; //******************************Added 7/13/2015 numMinHrs.Value = moEmp.MinHrs; numMaxReg.Value = moEmp.MaxRegHrs; numMaxAll.Value = moEmp.MaxAllHrs; chkActive.Checked = moEmp.IsActive; chkContractor.Checked = moEmp.Contractor; cmbLocation.Text = moEmp.OfficeLocation; cmbType.Text = moEmp.EngineerType; LoadEmpDeptBox(); }