Step() public method

public Step ( ) : bool
return bool
		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 ();
			}
			   
		}
Example #2
0
        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();
            }
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }