Example #1
0
        internal bool Collect(bool dispose)
        {
            DropMarkerCollectEventArgs e = new DropMarkerCollectEventArgs(this);

            Scintilla.OnDropMarkerCollect(e);

            if (e.Cancel)
            {
                return(false);
            }

            GotoStart();

            if (dispose)
            {
                Dispose();
            }

            return(true);
        }
Example #2
0
 /// <summary>
 /// Raises the <see cref="DropMarkerCollect"/> event.
 /// </summary>
 /// <param name="e">An <see cref="DropMarkerCollectEventArgs"/> that contains the event data.</param>
 protected internal virtual void OnDropMarkerCollect(DropMarkerCollectEventArgs e)
 {
     EventHandler<DropMarkerCollectEventArgs> handler = Events[_dropMarkerCollectEventKey] as EventHandler<DropMarkerCollectEventArgs>;
     if (handler != null)
         handler(this, e);
 }