diff options
| author | MichaelTheShifter <[email protected]> | 2016-05-24 20:27:25 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-05-24 20:27:35 -0400 |
| commit | b6bc4fd3de7324dd4b086c215768bc50b54c49bb (patch) | |
| tree | eba44505bcd8d824a093a0b18d471ffa0477384a /source/WindowsFormsApplication1/ListViewEx.cs | |
| parent | 95a1f2e4ae8fdb6862dc238106b1cda4948262a9 (diff) | |
| download | shiftos-c--b6bc4fd3de7324dd4b086c215768bc50b54c49bb.tar.gz shiftos-c--b6bc4fd3de7324dd4b086c215768bc50b54c49bb.tar.bz2 shiftos-c--b6bc4fd3de7324dd4b086c215768bc50b54c49bb.zip | |
0.1.1 Release Candidate 1
Committing all code for 0.1.1 Release Candidate 1.
Diffstat (limited to 'source/WindowsFormsApplication1/ListViewEx.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/ListViewEx.cs | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/source/WindowsFormsApplication1/ListViewEx.cs b/source/WindowsFormsApplication1/ListViewEx.cs new file mode 100644 index 0000000..075c3df --- /dev/null +++ b/source/WindowsFormsApplication1/ListViewEx.cs @@ -0,0 +1,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; } + } + +} |
