Ejemplo n.º 1
0
 public void MarkChanged(BrowsableEventArgs args)
 {
     if (ItemsChanged != null)
     {
         ItemsChanged(this, args);
     }
 }
Ejemplo n.º 2
0
 protected void HandleCollectionItemsChanged(IBrowsableCollection collection, BrowsableEventArgs eventArgs)
 {
     foreach (int item in eventArgs.Items)
     {
         if (item == Index)
         {
             SetIndex(Index, eventArgs.Changes);
         }
     }
 }
Ejemplo n.º 3
0
 protected void HandleCollectionItemsChanged(IBrowsableCollection collection, BrowsableEventArgs eventArgs)
 {
     foreach (int item in eventArgs.Items) {
         if (item == Index)
             SetIndex (Index, eventArgs.Changes);
     }
 }
Ejemplo n.º 4
0
        void HandleCollectionItemsChanged(IBrowsableCollection coll, BrowsableEventArgs args)
        {
            if (!args.Changes.DataChanged)
                return;
            foreach (int item in args.Items)
                thumb_cache.TryRemove ((selection.Collection [item]).DefaultVersion.Uri);

            //FIXME call QueueDrawArea
            QueueDraw ();
        }
 public void MarkChanged(BrowsableEventArgs args)
 {
     if (ItemsChanged != null)
         ItemsChanged (this, args);
 }
Ejemplo n.º 6
0
 public void MarkChanged(BrowsableEventArgs args)
 {
     ItemsChanged?.Invoke(this, args);
 }
Ejemplo n.º 7
0
        internal void HandleSelectionItemsChanged(IBrowsableCollection collection, BrowsableEventArgs args)
        {
            if (!args.Changes.MetadataChanged)
                return;

            if (!Visible) {
                up_to_date = false;
            } else {
                update_delay.Start ();
            }
        }
Ejemplo n.º 8
0
        private void HandleParentItemsChanged(IBrowsableCollection collection, BrowsableEventArgs args)
        {
            if (this.ItemsChanged == null)
                return;

            List<int> local_ids = new List<int> ();
            foreach (int parent_index in args.Items) {
                // If the item isn't part of the selection ignore it
                if (!this.Contains (collection [parent_index]))
                    return;

                int local_index = this.IndexOf (parent_index);
                if (local_index >= 0)
                    local_ids.Add (local_index);
            }

            if (local_ids.Count == 0)
                return;

            int [] items = local_ids.ToArray ();
            ItemsChanged (this, new BrowsableEventArgs (items, args.Changes));
        }
Ejemplo n.º 9
0
 // Proxy selection item changes to the subscribed sidebar pages.
 public void HandleSelectionItemsChanged(IBrowsableCollection collection, BrowsableEventArgs args)
 {
     if (SelectionItemsChanged != null)
         SelectionItemsChanged (collection, args);
 }
 protected virtual void ItemsChangedHandler(IBrowsableCollection collection, BrowsableEventArgs args)
 {
     if (ItemsChanged != null)
         ItemsChanged (this, args);
 }