Ejemplo n.º 1
0
        private void timerNavigation_Tick(object sender, EventArgs e)
        {
            bool bStop      = false;
            int  nIncrement = m_nFrameSkip;

            if (!m_bPlay)
            {
                nIncrement *= -1;
            }
            ImageObject io = m_NavigationObject.IncrementUpdate(nIncrement, out bStop);

            this.UpdateNavigation         = false;
            toolStripTextBoxStation.Text  = io.Milepost.ToString();
            this.UpdateNavigation         = false;
            toolStripComboBoxSection.Text = io.Section;
            this.UpdateNavigation         = true;
            ImageViewManager.UpdateNavigateTick(ImageViewManager.TreeView.Nodes, m_NavigationObject);
        }
Ejemplo n.º 2
0
        private void DecrementNavigation()
        {
            bool        bStop = false;
            ImageObject io    = m_NavigationObject.IncrementUpdate(-1, out bStop);

            if (!bStop)
            {
                this.UpdateNavigation         = false;
                toolStripTextBoxStation.Text  = io.Milepost.ToString();
                toolStripComboBoxSection.Text = io.Section;
                ImageViewManager.UpdateNavigateTick(ImageViewManager.TreeView.Nodes, m_NavigationObject);
                if (toolStripTextBoxFrameDelay.Visible)
                {
                    toolStripTextBoxFrameDelay.Visible = false;
                    toolStripLabelSecond.Text          = toolStripTextBoxFrameDelay.Text + " seconds";
                }
                this.UpdateNavigation = true;
            }
        }