private void FireCellDoubleClick(Cell c) { if (CellDoubleClick != null) { CellDoubleClickEventArgs arg = new CellDoubleClickEventArgs(); arg.Cell = new ImageCell() { Image = c.Image, Path = c.Path, Text = c.Text, Tag = c.Tag, }; CellDoubleClick(this, arg); } }
private void SquareListView_MouseClick(object sender, MouseEventArgs e) { Cell c = CellFromPoint(e.Location); if (c != null) { this.SelectedCell = c; } }
private void PaintSelectedCell(Cell c) { LastSelectedCell.Selected = false; this.Invalidate(LastSelectedCell.Bound); c.Selected = true; this.Invalidate(c.Bound); }
private void PaintSelectedCell(Cell c) { LastSelectedCell.Selected = false; this.Invalidate(Rectangle.Round(LastSelectedCell.Rec)); c.Selected = true; this.Invalidate(Rectangle.Round(c.Rec)); }