/// <summary>
        /// Selects the non-functional property for the interactions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SelectedInteractionProperty_SelectedIndexChanged(object sender, EventArgs e)
        {
            var selection = (string)SelectedInteractionProperty.SelectedItem;

            _model.LoadFeaturesForProperty(selection, Distribution.DistributionType.Interaction);
            SelectedInteractionValues.ResetText();
            SelectedInteractionValues.Items.Clear();
            BootstrapInteractions.Enabled = selection != "Random functions";
            foreach (var d in _model.AvailableDistributions.Where(d => d.DistType == Distribution.DistributionType.Interaction))
            {
                SelectedInteractionValues.Items.Add(d);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Selects the desired Non-functional property value.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FeatureNFPBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            var selection = (string)FeatureNFPBox.SelectedItem;

            BootstrapClick.Enabled = selection != "Random functions";
            _model.LoadFeaturesForProperty(selection, Distribution.DistributionType.Feature);
            RealFeatureValuesBox.ResetText();
            RealFeatureValuesBox.Items.Clear();

            foreach (var d in _model.AvailableDistributions.Where(d => d.DistType == Distribution.DistributionType.Feature))
            {
                RealFeatureValuesBox.Items.Add(d);
            }
            BootstrapClick.Enabled   = false;
            SelectSecondDist.Enabled = false;
            SelectFirstDist.Enabled  = false;
        }