Пример #1
0
 protected void OnWrapperNeeded(WrapperNeededEventArgs args)
 {
     if (WrapperNeeded != null)
     {
         WrapperNeeded(this, args);
     }
     if (args.Wrapper == null)
     {
         args.Wrapper = TextBoxWrapper.Create(args.TargetControl, MultiDataMode);
     }
 }
Пример #2
0
        ITextBoxWrapper CreateWrapper(Control control)
        {
            if (mListTargetControlWrapper.ContainsKey(control))
            {
                return(mListTargetControlWrapper[control]);
            }

            var args = new WrapperNeededEventArgs(control);

            OnWrapperNeeded(args);
            if (args.Wrapper != null)
            {
                mListTargetControlWrapper[control] = args.Wrapper;
            }

            return(args.Wrapper);
        }