Example #1
0
        public void RollDown()      // start the roll down..
        {
            timer.Stop();

            if (mode == Mode.DownAwaitRollDecision)     // cancel the decision
            {
                mode = Mode.Down;
            }
            else if (mode != Mode.Down)
            {
                //System.Diagnostics.Debug.WriteLine(Environment.TickCount + " roll down, start animating, size " + unrolledheight);
                mode = Mode.RollingDown;
                targetrolltickstart = Environment.TickCount;
                timer.Interval      = rolltimerinterval;
                DeployStarting?.Invoke(this, EventArgs.Empty);
                timer.Start();

                foreach (Control c in Controls)     // everything except hidden marker visible
                {
                    if (!Object.ReferenceEquals(c, hiddenmarker1) && !Object.ReferenceEquals(c, hiddenmarker2))
                    {
                        c.Visible = true;
                    }
                }
            }
        }
Example #2
0
        public void RollDown()
        {
            timer.Stop();

            if (Height < UnrolledHeight)
            {
                //System.Diagnostics.Debug.WriteLine(Environment.TickCount + " roll down, start animating");
                mode           = Mode.RollDown;
                timer.Interval = 25;
                DeployStarting?.Invoke(this, EventArgs.Empty);
                timer.Start();

                foreach (Control c in Controls)     // everything except hidden marker visible
                {
                    if (!Object.ReferenceEquals(c, hiddenmarker))
                    {
                        c.Visible = true;
                    }
                }
            }
            else
            {
                mode = Mode.None;
                //System.Diagnostics.Debug.WriteLine(Environment.TickCount + " ignore roll down at max h");
            }
        }