Exemplo n.º 1
0
        public void ReinitializeComboBox(ComboBox comboBox, List <string> path)
        {
            var instrumentViewer = new InstrumentViewer();
            var items            = instrumentViewer.GetItems(path);

            InitializeComboBox(comboBox, items);
        }
        private Type CreateExtendedClass(string name)
        {
            var fullInfo = new InstrumentViewer().GetInstrumentInfo(name);
            var info     = new List <string>();
            var builder  = new ClassBuilder();

            foreach (ItemInfo itemInfo in fullInfo)
            {
                info.Add(itemInfo.Type);
            }

            return(builder.Create(info));
        }