Пример #1
0
        private void wizard_SelectedPageChanging(object sender, WizardPageSelectionChangeEventArgs e)
        {
            if (e.NewPage.Name == "input")
            {
                wizard.BackEnabled   = false;
                wizard.FinishEnabled = false;
                ValidateInputPage();
            }
            else if (e.NewPage.Name == "output")
            {
                if (!_userUpdatedOutput)
                {
                    outputFileNameTextBox.Text = Path.Combine(
                        Path.GetDirectoryName(ImageFileCollection.First().Tag.ToString()),
                        $"image2df-output-{DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")}.pdf");
                    _userUpdatedOutput = false;
                }

                wizard.BackEnabled   = true;
                wizard.NextEnabled   = true;
                wizard.FinishEnabled = false;
            }
            else if (e.NewPage.Name == "run")
            {
                wizard.BackEnabled   = true;
                wizard.NextEnabled   = false;
                wizard.FinishEnabled = false;
            }
        }
Пример #2
0
        private void wizard_SelectedPageChanging(object sender, WizardPageSelectionChangeEventArgs e)
        {
            if (e.NewPage.Name == "input")
            {
                wizard.BackEnabled = false;
                wizard.FinishEnabled = false;
                ValidateInputPage();
            }
            else if(e.NewPage.Name == "output")
            {
                if (!_userUpdatedOutput)
                {
                    outputFileNameTextBox.Text = Path.Combine(
                        Path.GetDirectoryName(ImageFileCollection.First().Tag.ToString()), 
                        $"image2df-output-{DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")}.pdf");
                    _userUpdatedOutput = false;
                }

                wizard.BackEnabled = true;
                wizard.NextEnabled = true;
                wizard.FinishEnabled = false;
            }
            else if (e.NewPage.Name == "run")
            {
                wizard.BackEnabled = true;
                wizard.NextEnabled = false;
                wizard.FinishEnabled = false;
            }
        }