Пример #1
0
        private void fillCharactList()
        {
            List <Characteristic> characteristics = characteristicsService.getAllCharacteristics();
            ListViewItem          item            = null;

            foreach (Characteristic charact in characteristics)
            {
                string[] row = { charact.id.ToString(), charact.name, charact.type.ToString() };
                item = new ListViewItem(row);
                this.characteristicsListView.Items.Add(item);
            }
        }
Пример #2
0
        private void initializeLists()
        {
            List <Characteristic> characteristics = characteristicsService.getAllCharacteristics();

            foreach (Characteristic charact in characteristics)
            {
                string[]     row  = { charact.id.ToString(), charact.name };
                ListViewItem item = new ListViewItem(row);
                this.availableCharactlistView.Items.Add(item);
            }
            if (selectedObjectOfInvestigation != null)
            {
                this.OjectName.Text = selectedObjectOfInvestigation.name;
                foreach (Characteristic charact in selectedObjectOfInvestigation.characteristics)
                {
                    string[]     row  = { charact.id.ToString(), charact.name };
                    ListViewItem item = new ListViewItem(row);
                    this.selectedCharectlistView.Items.Add(item);
                }
            }
        }