Ejemplo n.º 1
0
        protected void OnHighlightDone(HighlightEventArgs e)
        {
            HighlightDoneEventHandler handler = HighlightDoneEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
 protected void OnHighlightDone(HighlightEventArgs e)
 {
   HighlightDoneEventHandler handler = HighlightDoneEvent;
   if (handler != null)
   {
     handler(this, e);
   }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Highlights the done event worker.
 /// </summary>
 /// <param name="e">The <see cref="LogExpert.HighlightEventArgs"/> instance containing the event data.</param>
 void HighlightDoneEventWorker(HighlightEventArgs e)
 {
     if (dataGridView.FirstDisplayedScrollingRowIndex > e.StartLine &&
         dataGridView.FirstDisplayedScrollingRowIndex < e.StartLine + e.Count ||
         dataGridView.FirstDisplayedScrollingRowIndex + dataGridView.DisplayedRowCount(true) >
         e.StartLine &&
         dataGridView.FirstDisplayedScrollingRowIndex + dataGridView.DisplayedRowCount(true) < e.StartLine + e.Count)
     {
         BeginInvoke(new MethodInvoker(RefreshAllGrids));
     }
 }
Ejemplo n.º 4
0
        // ================= Filter-Highlight stuff ===============================

        /// <summary>
        /// Event handler for the HighlightEvent generated by the HighlightThread
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void HighlightThread_HighlightDoneEvent(object sender, HighlightEventArgs e)
        {
            BeginInvoke(new Action<HighlightEventArgs>(HighlightDoneEventWorker), new object[] { e });
        }