GetStandardValues(ITypeDescriptorContext context)
        {
            var list = ExposedVariableManager.GetAvailableNewVariableTypes(AllowNone);

            StandardValuesCollection svc = new StandardValuesCollection(list);

            return(svc);
        }
Exemplo n.º 2
0
        public void TextExposingCsvTypes()
        {
            List <string> availableNewTypeVariables = ExposedVariableManager.GetAvailableNewVariableTypes();

            if (!availableNewTypeVariables.Contains(mCsvContainerEntitySave.ReferencedFiles[0].Name))
            {
                throw new Exception("The type from CSV " + mCsvContainerEntitySave.ReferencedFiles[0].Name + " was not returned as a possible new variable type and it should be");
            }
        }
Exemplo n.º 3
0
        private void FillNewVariableTypes(IElement element)
        {
            List <string> newVariableTypes = ExposedVariableManager.GetAvailableNewVariableTypes(allowNone: false);

            foreach (string s in newVariableTypes)
            {
                this.NewTypeListBox.Items.Add(s);
            }

            this.NewTypeListBox.SelectedIndex = 0;
        }
Exemplo n.º 4
0
        private void FillNewVariableTypes()
        {
            List <string> newVariableTypes = ExposedVariableManager.GetAvailableNewVariableTypes(allowNone: false,
                                                                                                 includeStateCategories: createNewVariableViewModel.IncludeStateCategories);

            createNewVariableViewModel.AvailableVariableTypes.Clear();

            foreach (var type in newVariableTypes)
            {
                createNewVariableViewModel.AvailableVariableTypes.Add(type);
            }

            //createNewVariableControl1.FillAvailableTypes(newVariableTypes);
        }