private void Score_MeasureInvalidated(object sender, Model.Events.InvalidateEventArgs <Measure> e) { if (InvalidatingMode != InvalidatingModes.RedrawInvalidatedRegion) { return; } var score = (sender as MusicalSymbol)?.Staff?.Score ?? e.InvalidatedObject?.Staff?.Score; if (score == null) { return; } score.MeasureInvalidated -= Score_MeasureInvalidated; RenderOnCanvas(e.InvalidatedObject); score.MeasureInvalidated += Score_MeasureInvalidated; }
private void Score_StaffInvalidated(object sender, Model.Events.InvalidateEventArgs <Staff> e) { RenderOnCanvas(e.InvalidatedObject.Score); }
private void Score_ScoreInvalidated(object sender, Model.Events.InvalidateEventArgs <Score> e) { RenderOnCanvas(e.InvalidatedObject); }