Ejemplo n.º 1
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 ();
			}
			   
		}
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 5
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);
        }