aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/ListViewEx.cs
blob: 075c3df92b18bf99959abfff72026159dd68190d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ShiftOS
{
    public partial class ListViewEx : UserControl
    {
        private List<Item> items = null;
        private List<Column> columns = null;

        public ListViewEx()
        {
            InitializeComponent();
            items = new List<Item>();
            columns = new List<Column>();
        }

        private Color _item_color = Color.Gray;

        public Color ItemSelectedColor
        {
            get { return _item_color; }
            set
            {
                _item_color = value;
            }
        }

        private void setup_ui()
        {
            
        }
    }

    public class Item
    {
        public Item(string text)
        {
            Text = text;
            SubItems = new List<Item>();
        }

        public string Text { get; set; }
        public List<Item> SubItems { get; set; }
        public object Tag { get; set; }
    }

    public class Column
    {
        public Column(string text)
        {
            Text = text;
        }

        public string Text { get; set; }
    }

}