Beispiel #1
0
        protected override void OnPaintMargin(PaintEventArgs e)
        {
            base.OnPaintMargin(e);
            int line = this.m_origin.line;
            int num  = this.m_origin.line + base.NumVisibleLines;

            if (num > this.m_lines.Count)
            {
                num = this.m_lines.Count;
            }
            int num2 = Math.Min(base.LineHeight, base.LeftMarginWidth);
            int num3 = 0;

            for (int i = line; i < num; i++)
            {
                NomadCodeBox.IIcon icon = (NomadCodeBox.IIcon) this.m_lines[i].tag;
                if (icon != null)
                {
                    icon.Draw(e.Graphics, new Rectangle(0, num3, num2, num2));
                }
                num3 += base.LineHeight;
            }
        }
Beispiel #2
0
 public void SetIcon(int line, NomadCodeBox.IIcon icon)
 {
     this.m_lines[line].tag = icon;
     base.Invalidate();
 }