public MammographyHxView() : base(TblRiskDataExt1) { InitializeComponent(); InitializeDropDowns(); UserList users = new UserList(); users.LoadFullList(); List<string> userList = users.Select(user => string.Format("{0}, {1}", ((User)user).userLastName, ((User)user).userFirstName)).ToList(); UIUtils.fillComboBoxFromList(this.createdby, userList, true); }
/**************************************************************************************************/ public MetaData() { Diseases = new DiseaseList(); GeneticTests = new GeneticTestList(); Users = new UserList(); UserGroups = new UserGroupList(); OrderTypes = new OrderTypesList(); Mutations = new MutationList(); SystemWideDefaultPedigreePrefs = new GUIPreference(); CurrentUserDefaultPedigreePrefs = new GUIPreference(); ApptProviders = new ApptProviderList(); KbVariants = new VariantsFromKB(); BrOvCdsRecs = new AllBrOvCdsRecs(); Globals = new GlobalSettings(); }
public MammographyHxView() : base(TblRiskDataExt1) { InitializeComponent(); UserList users = new UserList(); users.LoadFullList(); List<string> userList = users.Select(user => string.Format("{0}, {1}", ((User)user).userLastName, ((User)user).userFirstName)).ToList(); UIUtils.fillComboBoxFromList(this.createdby, userList, true); this._priorSurgeriesAndTreatmentsControls = new List<Control>(); _priorSurgeriesAndTreatmentsControls.AddRange(this.GetControlsByName("breastBiopsies")); _priorSurgeriesAndTreatmentsControls.AddRange(this.GetControlsByName("lumpectomy")); _priorSurgeriesAndTreatmentsControls.AddRange(this.GetControlsByName("radiation")); _priorSurgeriesAndTreatmentsControls.AddRange(this.GetControlsByName("mastectomy")); _priorSurgeriesAndTreatmentsControls.AddRange(this.GetControlsByName("Reduction")); _priorSurgeriesAndTreatmentsControls.AddRange(this.GetControlsByName("Implant")); _priorSurgeriesAndTreatmentsControls.AddRange(this.GetControlsByName("other")); }
/**************************************************************************************************/ private void MainFormLoading_Load(object sender, EventArgs e) { stopWatch.Start(); this.Height = 370; SessionManager.Instance.MetaData.Diseases.LoadFullList(); SessionManager.Instance.MetaData.GeneticTests.LoadFullList(); SessionManager.Instance.MetaData.UserGroups.LoadFullList(); SessionManager.Instance.MetaData.OrderTypes.LoadFullList(); SessionManager.Instance.MetaData.Mutations.LoadFullList(); SessionManager.Instance.MetaData.KbVariants.LoadFullObject(); SessionManager.Instance.MetaData.BrOvCdsRecs.LoadFullObject(); SessionManager.Instance.MetaData.SystemWideDefaultPedigreePrefs.LoadFullObject(); SessionManager.Instance.MetaData.CurrentUserDefaultPedigreePrefs.LoadFullObject(); SessionManager.Instance.MetaData.Globals.LoadFullObject(); users = SessionManager.Instance.MetaData.Users; users.AddHandlersWithLoad(null, UsersListLoaded, null); }