Exemplo n.º 1
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PatientSearchInputBoxExtender()
        {
            this.EnableClientState = true;
            this.state             = new PatientSearchInputClientState();

            this.ClientStateValuesLoaded += new EventHandler(this.PatientSearchInputBoxExtender_ClientStateValuesLoaded);
        }
Exemplo n.º 2
0
        /// <summary>ClientStateValuesLoaded event handler</summary>
        /// <param name="sender">sender</param>
        /// <param name="e">event args</param>
        private void PatientSearchInputBoxExtender_ClientStateValuesLoaded(object sender, EventArgs e)
        {
            if (ClientState != null)
            {
                this.state = new JavaScriptSerializer().Deserialize <PatientSearchInputClientState>(ClientState);
                if (this.state.CommonFamilyNames != null)
                {
                    this.CommonFamilyNames = new List <string>(this.state.CommonFamilyNames);
                }

                this.EndGroupDelimiter    = this.state.EndGroupDelimiter;
                this.InformationDelimiter = this.state.InformationDelimiter;

                if (this.state.InformationFormat != null)
                {
                    this.InformationFormat = PatientSearchInputBoxExtender.ConvertInformationArrayToList(this.state.InformationFormat);
                }

                if (this.state.MandatoryInformation != null)
                {
                    this.MandatoryInformation = PatientSearchInputBoxExtender.ConvertInformationArrayToList(this.state.MandatoryInformation);
                }

                this.MaximumAge          = this.state.MaximumAge;
                this.StartGroupDelimiter = this.state.StartGroupDelimiter;

                if (this.state.Titles != null)
                {
                    this.Titles = PatientSearchInputBoxExtender.ConvertTitleArrayToList(this.state.Titles);
                }

                this.Text = this.state.Text;
            }
        }