예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="tb"></param>
        /// <param name="subject"></param>
        public string AddIsNumber(TextBox tb
                                  , string subject)
        {
            #region
            ValidateInformation obj = new ValidateInformation();
            obj.Content             = tb.Text.Trim();
            obj.ValidType           = ValidateType.IsNumber;
            obj.Subject             = subject;
            obj.WillValidateControl = tb;

            _validateList.Add(obj);
            return(obj.Content);

            #endregion
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="cb"></param>
        /// <param name="subject"></param>
        public string AddComboboxNotEmpty(ComboBox cb
                                          , string subject)
        {
            #region
            ValidateInformation obj = new ValidateInformation();
            obj.Content             = cb.SelectedValue.ToString();
            obj.ValidType           = ValidateType.NotEmpty;
            obj.Subject             = subject;
            obj.WillValidateControl = cb;

            _validateList.Add(obj);
            return(obj.Content);

            #endregion
        }