public void AddMasterBar(MasterBarBounds bounds)
{
if (bounds.StaveGroupBounds == null)
{
bounds.StaveGroupBounds = _currentStaveGroup;
_masterBarLookup[bounds.Index] = bounds;
_currentStaveGroup.AddBar(bounds);
}
else
{
_masterBarLookup[bounds.Index] = bounds;
}
}