Beispiel #1
0
        private void AddSoftwareToList(Web.Software.RootObject softwarePiece, CollectionList <ListViewItem> List, object Tag)
        {
            ListViewItem item = new ListViewItem(softwarePiece.software_name);

            item.SubItems.Add(softwarePiece.software_acronym);
            item.SubItems.Add(softwarePiece.first_name + " " + softwarePiece.last_name);
            item.SubItems.Add(softwarePiece.software_province);
            item.Tag = Tag;

            List.Add(item);
        }
Beispiel #2
0
        private void AddSoftwareToList(Web.Software.RootObject softwarePiece, Web.Software.Request software, CollectionList <ListViewItem> List, Color col, object Tag, bool checkedState)
        {
            ListViewItem item = new ListViewItem(softwarePiece.software_name);

            item.SubItems.Add(softwarePiece.software_acronym);
            item.SubItems.Add(softwarePiece.first_name + " " + softwarePiece.last_name);
            item.SubItems.Add(softwarePiece.software_province);
            item.SubItems.Add(software.user_id);
            item.Tag       = Tag;
            item.ForeColor = col;
            item.Checked   = checkedState;

            List.Add(item);
        }