Example #1
0
        private void capturesListBox_DrawItem(object sender, DrawItemEventArgs e)
        {
            if (e.Index < 0)
            {
                return;
            }
            CapturesListBoxItem c = capturesListBox.Items[e.Index] as CapturesListBoxItem;

            if (c == null)
            {
                return;
            }
            using (var b = new System.Drawing.SolidBrush(c.Color.ToSystemDrawingObject()))
                e.Graphics.FillRectangle(b, e.Bounds);
            e.Graphics.DrawString(c.Text, this.Font, System.Drawing.Brushes.Black, e.Bounds);
        }
 void IView.AddCapturesListBoxItem(CapturesListBoxItem item)
 {
     capturesDataSource.items.Add(item);
     capturesTable.ReloadData();
 }
Example #3
0
 void IView.AddCapturesListBoxItem(CapturesListBoxItem item)
 {
     capturesListBox.Items.Add(item);
 }