Esempio n. 1
0
        } /* DisableAllControls */

        private void  ResumeAllControls()
        {
            suspendCount--;
            if (suspendCount > 0)
            {
                // We need to be called until 'suspendCount' == 0  before we actual ResumeLayout
                return;
            }

            int x;

            LiveOrHistory.ResumeLayout();
            TimeDomainScrollBar.ResumeLayout();
            timeRange.ResumeLayout();
            chartPanel.ResumeLayout();
            FindMimMaxButton.ResumeLayout();
            for (x = numDataSeries - 1; x >= 0; x--)
            {
                plottedSeries[x].ResumeLayout();
            }

            ResumeLayout();
        } /* DisableAllControls */
Esempio n. 2
0
        private int suspendCount = 0; // Number of levels that SuspendAllControls has been called.


        private void  SuspendAllControls()
        {
            int x;

            suspendCount++;

            if (suspendCount > 1)
            {
                // All components are suspended.
                return;
            }

            SuspendLayout();
            for (x = 0; x < numDataSeries; x++)
            {
                plottedSeries[x].SuspendLayout();
            }
            FindMimMaxButton.SuspendLayout();
            chartPanel.SuspendLayout();
            timeRange.SuspendLayout();
            TimeDomainScrollBar.SuspendLayout();
            LiveOrHistory.SuspendLayout();
        } /* DisableAllControls */