///<summary>Adds event handlers to a new editor associated with this item.</summary>
 protected override void UpdateEditor(RepositoryItem ritem, UpdateEditorInfoArgs args)
 {
     base.UpdateEditor(ritem, args);
     if (ActiveEditor != null) {
         ActiveEditor.MouseWheel += ActiveEditor_MouseWheel;
         var te = ActiveEditor as TextEdit;
         if (te != null && te.MaskBox != null)
             te.MaskBox.MouseWheel += ActiveEditor_MouseWheel;
     }
 }
Пример #2
0
 ///<summary>Adds event handlers to a new editor associated with this item.</summary>
 protected override void UpdateEditor(RepositoryItem ritem, UpdateEditorInfoArgs args)
 {
     base.UpdateEditor(ritem, args);
     if (ActiveEditor != null)
     {
         ActiveEditor.MouseWheel += ActiveEditor_MouseWheel;
         var te = ActiveEditor as TextEdit;
         if (te != null && te.MaskBox != null)
         {
             te.MaskBox.MouseWheel += ActiveEditor_MouseWheel;
         }
     }
 }