Example #1
0
 protected virtual bool OnItemsNavigating(T current)
 {
     if (this.ItemsNavigating != null)
     {
         ItemsNavigatingEventArgs <T> args = new ItemsNavigatingEventArgs <T>(current);
         this.ItemsNavigating(this, args);
         return(args.SkipItem);
     }
     return(false);
 }
Example #2
0
        protected virtual bool OnItemsNavigating(T current)
        {
            if (this.ItemsNavigating == null)
            {
                return(false);
            }
            ItemsNavigatingEventArgs <T> e = new ItemsNavigatingEventArgs <T>(current);

            this.ItemsNavigating((object)this, e);
            return(e.SkipItem);
        }
Example #3
0
 private void Enumerator_ItemsNavigating(object sender, ItemsNavigatingEventArgs <T> e)
 {
     e.SkipItem = this.OnItemsNavigating(e.Item);
 }