Esempio n. 1
0
        private void MakeItem
            (ICommonAlarm alarm, ListViewGroup group)
        {
            var item = new ListViewItem(alarm.Name)
            {
                Tag   = alarm.Id,
                Group = group
            };

            item.SubItems.Add(alarm.Text);
            _cListView.Items.Add(item);
            _cListView.Columns[0].Width = NameColumnWidth;
        }
Esempio n. 2
0
 public void Remove
     (ICommonAlarm alarm)
 {
     _cListView.Items.RemoveByKey(alarm.Name);
     _cListView.Columns[0].Width = NameColumnWidth;
 }