public void SetDrawingEnabled(bool enabled) { if (m_IsDrawingEnabled == enabled) { return; } m_IsDrawingEnabled = enabled; if (!enabled && m_Drawing != null) { m_Drawing.Clear(); } if (enabled && m_Message != null) { Redraw(); } }