internal void FillResult(WizardResult result) { result.ReverseEngineerDatabase = checkBoxGenerateSchema.Checked; result.SeparateStubs = checkBoxSeparateStubs.Checked; result.ModifyBuildEvent = checkBoxModifyBuildEvent.Checked; result.ModifyAssemblyInfo = checkBoxAddAttributesToAssemblyInfo.Checked; result.DisableIdentityColumns = checkBoxDisableIdentityColumns.Checked; result.CreateAppConfigFile = checkBoxCreateConfig.Checked && comboBoxConfigStyle.SelectedIndex == 0; result.CreateSoodaXmlConfigFile = checkBoxCreateConfig.Checked && comboBoxConfigStyle.SelectedIndex == 1; result.CreateKeyGenTable = checkBoxCreateKeyGen.Checked; }
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(); }