Beispiel #1
0
        //--------------------------------------------------------------------------------
        /// <summary>
        /// Fired when the back button is clicked
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonBack_Click(object sender, EventArgs e)
        {
            // tell the page chain to go to the previous page
            WizardPage currentPage = PageChain.GoBack();

            // raise the page change event (this currently does nothing but lets the
            // base class know when the active page has changed
            Raise_WizardPageChangeEvent(new WizardPageChangeArgs(currentPage, WizardStepType.Previous));
        }
Beispiel #2
0
        //--------------------------------------------------------------------------------
        /// <summary>
        /// Fired when the back button is clicked
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonBack_Click(object sender, EventArgs e)
        {
            // tell the page chain to go to the previous page
            clsGlobalVariables.WizardPagePrevious = PageChain.GetCurrentPage().Name;
            if (clsGlobalVariables.WizardPagePrevious == "WizardPageCamera")
            {
                WizardPageCamera.DisconnectUSBCamera();
            }

            WizardPage currentPage = PageChain.GoBack();

            clsGlobalVariables.WizardPageCurrent = currentPage.Name;

            if (clsGlobalVariables.WizardPageCurrent == "WizardPageCamera")//WizardPage3
            {
                WizardPageCamera.ConnectUSBCamera();
            }

            // raise the page change event (this currently does nothing but lets the
            // base class know when the active page has changed
            Raise_WizardPageChangeEvent(new WizardPageChangeArgs(currentPage, WizardStepType.Previous));
        }