public void OnMouseUp(MousePosition position, LayoutModel layout, char cellType) { }
public void OnMouseDrag(MousePosition position, LayoutModel layout, char cellType) { layout[position.CellIndex] = cellType; }
public override void OnMouseUp(MousePosition position, LayoutModel layout, char cellType) { base.OnMouseUp(position, layout, cellType); layout.DrawEllipse(StartPosition.CellIndex, CurrentPosition.CellIndex, cellType); }
public virtual void OnMouseDown(MousePosition position, LayoutModel layout, char cellType) { IsButtonPressed = true; StartPosition = CurrentPosition = position; CellType = cellType; }
public override void OnMouseUp(MousePosition position, LayoutModel layout, char cellType) { base.OnMouseUp(position, layout, cellType); layout.DrawRectangle(StartPosition.CellIndex, position.CellIndex, cellType); }