Esempio n. 1
0
        public override void Process(ImportItemsArgs args)
        {
            List <string> mallNames;

            if (args.ContentType == ContentType.Store.ToString())
            {
                mallNames = GetMallName(args.ImportDatas[0]);
            }
            else
            {
                mallNames = new DescriptionAttributes <Malls>().Descriptions.ToList();
            }
            args.MallItems = CreateMallItems(mallNames, args);
        }
Esempio n. 2
0
        public FormSetup()
        {
            InitializeComponent();

            var descriptions = new DescriptionAttributes <Part>().Descriptions.ToList();

            this.cbbLeft.Items.AddRange(descriptions.ToArray());
            this.cbbRight.Items.AddRange(descriptions.ToArray());

            this.cbbLeft.SelectedIndexChanged  += cbbLeft_SelectedIndexChanged;
            this.cbbRight.SelectedIndexChanged += cbbRight_SelectedIndexChanged;
            this.Load      += FormSetup_Load;
            this.formMotors = new FormMotor();
            this.formDIO    = new FormDigitalIO();
        }