Esempio n. 1
0
        void AddNewVariant(Option option)
        {
            if (option.Variance == OptionVariance.Single)
            {
                throw new Exception("Option is not variant.");
            }

            var parameter = FindUniqueVariantName(option);

            option.AddVariant(parameter);
            Option.changed = true;
        }