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."); } } }
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); } }); } }