Ejemplo n.º 1
0
 protected virtual void OnIndexItemChanged(IndexEventArgs e)
 {
     EventHandler<IndexEventArgs> handler = IndexItemChanged;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Ejemplo n.º 2
0
 private void IndexItemChanged_CallBack(int threshold)
 {
     if (threshold >= 0)
     {
         IndexEventArgs args = new IndexEventArgs();
         args.Threshold = threshold;
         args.TimeReached = DateTime.Now;
         OnIndexItemChanged(args);
     }
 }
Ejemplo n.º 3
0
 void IndexPanel_IndexItemChanged_EventHandler(object sender, IndexEventArgs e)
 {
     if (debug)
         Console.WriteLine("The threshold of {0} was reached at {1}.", e.Threshold, e.TimeReached);
 }