private void buttonFinish_Click(object sender, System.EventArgs e)
        {
            WizardResult result = new WizardResult();

            result.ConnectionString = _connectToDatabasePage.ConnectionString;
            result.SelectedDatabase = _chooseDatabasePage.SelectedDatabase;
            _optionsPage.FillResult(result);

            using (ConfiguringSoodaForm csf = new ConfiguringSoodaForm())
            {
                csf.Strategy      = _strategy;
                csf.WizardOptions = result;
                csf.ShowDialog(this);
            }

            //DialogResult = DialogResult.OK;
            Close();
        }
        private void buttonFinish_Click(object sender, System.EventArgs e)
        {
            WizardResult result = new WizardResult();
            result.ConnectionString = _connectToDatabasePage.ConnectionString;
            result.SelectedDatabase = _chooseDatabasePage.SelectedDatabase;
            _optionsPage.FillResult(result);

            using (ConfiguringSoodaForm csf = new ConfiguringSoodaForm())
            {
                csf.Strategy = _strategy;
                csf.WizardOptions = result;
                csf.ShowDialog(this);
            }

            //DialogResult = DialogResult.OK;
            Close();
        }
Ejemplo n.º 3
0
        public static void Main(string[] args)
        {
            string projectFile;

            if (args.Length == 0)
            {
                projectFile = null;
            }
            else
            {
                projectFile = args[0];
            }

            ProjectFileConfigurationStrategy strategy = new ProjectFileConfigurationStrategy(projectFile);

            Application.EnableVisualStyles();
            Application.Run(new SoodaConfigurationWizard(strategy));
#if A
            using (SoodaConfigurationWizard wizard = new SoodaConfigurationWizard())
            {
                if (DialogResult.OK == wizard.ShowDialog())
                {
                    WizardResult result = wizard.Result;

                    using (ConfiguringSoodaForm csf = new ConfiguringSoodaForm())
                    {
                        csf.ShowDialog();
                    }
                }
            }
#endif
        }