public void UpdateData(DrawingToolType _tool, Color _color) { // Update a ColorProfile entry from specified color. // This method is only used to update the color. switch (_tool) { case DrawingToolType.Angle2D: m_DecorationAngle2D.Update(_color); break; case DrawingToolType.Chrono: m_DecorationChrono.Update(_color); break; case DrawingToolType.Cross2D: m_DecorationCross2D.Update(_color); break; case DrawingToolType.Line2D: m_DecorationLine2D.Update(_color); break; case DrawingToolType.Pencil: m_DecorationPencil.Update(_color); break; case DrawingToolType.Text: m_DecorationText.Update(_color); break; default: // These tools do not have any color info. (shouldn't happen) break; } }
public override void UpdateDecoration(Color _color) { m_PenStyle.Update(_color); }