void AssertIsValid()
 {
     if (!pad.sorting && !currentIter.Equals(Gtk.TreeIter.Zero) && !store.IterIsValid(currentIter))
     {
         if (dataItem == null || !MoveToObject(dataItem))
         {
             throw new InvalidOperationException("Tree iterator has been invalidated.");
         }
     }
 }
Ejemplo n.º 2
0
 void StartAnimation()
 {
     if (Animation == null)
     {
         Animation = AnimatedIcon.StartAnimation(delegate(Xwt.Drawing.Image pix) {
             if (TreeStore.IterIsValid(Iter))
             {
                 TreeStore.SetValue(Iter, Column, pix);
             }
             else
             {
                 UnregisterTreeAnimation(this);
             }
         });
     }
 }