//--------------------------------------------------------------------------- public void Dispose() { LayerManager.Get().ModeChanged -= OnModeChanged; }