Exemple #1
0
        private void FinishOnPageLoad()
        {
            if (radioButtonCreateNewComponent.Checked)
            {
                // Create the result object
                _results = new ConvertKeyToNewComponentResults(
                    textBoxNewComponentDefName.Text,
                    textBoxNewComponentName.Text,
                    checkBoxCreateNewCompDeleteProperties.Checked);
            }
            else
            {
                _results = new ConvertKeyToExistingComponentResults(
                    comboBoxExistingComponentDefs.GetSelectedItem <ComponentSpecification>(),
                    textBoxUseExistingNameOfComponent.Text,
                    checkBoxUseExistingDeleteExistingProperties.Checked,
                    GetPropertyMappings());
            }

            labelFinishedChanges.Text = _results.GetTextualDescription();
        }
        private void FinishOnPageLoad()
        {
            if(radioButtonCreateNewComponent.Checked)
            {
                // Create the result object
                _results = new ConvertKeyToNewComponentResults(
                    textBoxNewComponentDefName.Text,
                    textBoxNewComponentName.Text,
                    checkBoxCreateNewCompDeleteProperties.Checked);
            }
            else
            {
                _results = new ConvertKeyToExistingComponentResults(
                    comboBoxExistingComponentDefs.GetSelectedItem<ComponentSpecification>(),
                    textBoxUseExistingNameOfComponent.Text,
                    checkBoxUseExistingDeleteExistingProperties.Checked,
                    GetPropertyMappings());
            }

            labelFinishedChanges.Text = _results.GetTextualDescription();
        }