protected override void OnActivated () { try { RotateOperation op = new RotateOperation (item.Current, direction); while (op.Step ()); item.Collection.MarkChanged (item.Index, FullInvalidate.Instance); } catch (Exception e) { Dialog d = new EditExceptionDialog (null, e, item.Current); d.Show (); d.Run (); d.Destroy (); } }
protected override void OnActivated() { try { RotateOperation op = new RotateOperation(item.Current, direction); while (op.Step()) { } item.Collection.MarkChanged(item.Index, FullInvalidate.Instance); } catch (Exception e) { Dialog d = new EditExceptionDialog(null, e, item.Current); d.Show(); d.Run(); d.Destroy(); } }
public bool Step() { if (Index >= Items.Length) { return(false); } if (op == null) { op = new RotateOperation(Items [Index], direction); } if (op.Step()) { return(true); } else { Index++; op = null; } return(Index < Items.Length); }
public override bool Step() { if (index >= items.Length) { return(false); } if (op == null) { op = new RotateOperation(items [index], direction); } if (op.Step()) { return(true); } else { index++; op = null; } return(index < items.Length); }
public bool Step() { if (index >= items.Length) return false; if (op == null) op = new RotateOperation (items [index], direction); if (op.Step ()) return true; else { index++; op = null; } return (index < items.Length); }