Esempio n. 1
0
        /// <summary>
        /// Henter siste valgte mapping fra default properties (under User Properties).
        /// </summary>
        private void SetSelectedMappingFromSettingsProperties()
        {
            // -- Hent navnet på selected mapping fra Properties.Settings --
            string strMappingSelected = Properties.Settings.Default.LastMappingSelected;

            this.MappingSelected = this.HL7Mappings.Get(strMappingSelected); // Kan være 'null' hvis mappingen ikke finnes.

            // -- Hvis det finnes kun en mapping, sett denne som selected. --
            if ((this.MappingSelected == null) && (this.HL7Mappings.Count == 1))
            {
                this.MappingSelected = this.HL7Mappings[0];
            }
        }
Esempio n. 2
0
        public int CompareTo(object obj)
        {
            Hl7Mapping compareTo = (Hl7Mapping)obj;

            return(this.DisplayName.CompareTo(compareTo.DisplayName));
        }