예제 #1
0
        private void OnDrawHeader(object sender, DrawListViewColumnHeaderEventArgs e)
        {
            e.DrawBackground();
            e.DrawText();
            if (SortColumn != e.ColumnIndex)
            {
                return;
            }
            if (sortOrder == SortOrder.None)
            {
                return;
            }

            Image img = null;

            if (sortOrder == SortOrder.Ascending)
            {
                img = ArrowDrawer.get().getImage(0);
            }
            else
            {
                img = ArrowDrawer.get().getImage(1);
            }
            Rectangle rect = new Rectangle(e.Bounds.Right - 16, e.Bounds.Bottom - 16, 11, 11);

            e.Graphics.DrawImage(img, rect);
        }
예제 #2
0
 public static ArrowDrawer get()
 {
     if (obj == null)
     {
         obj = new ArrowDrawer();
     }
     return(obj);
 }