Inheritance: System.EventArgs
Example #1
0
 protected void OnWrapperNeeded(WrapperNeededEventArgs args)
 {
     if (WrapperNeeded != null)
     {
         WrapperNeeded(this, args);
     }
     if (args.Wrapper == null)
     {
         args.Wrapper = TextBoxWrapper.Create(args.TargetControl);
     }
 }
Example #2
0
        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);
        }
Example #3
0
 protected void OnWrapperNeeded(WrapperNeededEventArgs args)
 {
     if (WrapperNeeded != null)
     {
         WrapperNeeded(this, args);
     }
     if (args.Wrapper == null)
     {
         if (args.TargetControl is ScintillaNET.Scintilla)
         {
             args.Wrapper = ScintillaWrapper.Create((ScintillaNET.Scintilla)args.TargetControl);
         }
         else
         {
             args.Wrapper = TextBoxWrapper.Create(args.TargetControl);
         }
     }
 }
        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);
 }