コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: valery-shinkevich/sooda
        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
        }