Beispiel #1
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);
         }
     }
 }
Beispiel #2
0
        public static ScintillaWrapper Create(Scintilla targetControl)
        {
            var result = new ScintillaWrapper(targetControl);

            return(result);
        }