protected void OnWrapperNeeded(WrapperNeededEventArgs args) { if (WrapperNeeded != null) { WrapperNeeded(this, args); } if (args.Wrapper == null) { args.Wrapper = TextBoxWrapper.Create(args.TargetControl); } }
private ITextBoxWrapper CreateWrapper(Control control) { if (WrapperByControls.ContainsKey(control)) { return(WrapperByControls[control]); } var args = new WrapperNeededEventArgs(control); OnWrapperNeeded(args); if (args.Wrapper != null) { WrapperByControls[control] = args.Wrapper; } return(args.Wrapper); }
private ITextBoxWrapper CreateWrapper(Control control) { if (WrapperByControls.ContainsKey(control)) return WrapperByControls[control]; var args = new WrapperNeededEventArgs(control); OnWrapperNeeded(args); if (args.Wrapper != null) WrapperByControls[control] = args.Wrapper; return args.Wrapper; }
protected void OnWrapperNeeded(WrapperNeededEventArgs args) { if (WrapperNeeded != null) WrapperNeeded(this, args); if (args.Wrapper == null) args.Wrapper = TextBoxWrapper.Create(args.TargetControl); }