public void EventsCanvas_PropertyChanged(object sender, PropertyChangedEventArgs e) { switch (e.PropertyName) { case TwNotificationProperty.OnMouseEnterPolygon: inPolygon = true; StatusBar.Content = polygonHelp; break; case TwNotificationProperty.OnMouseLeavePolygon: inPolygon = false; StatusBar.Content = zoomHelp; break; case TwNotificationProperty.OnMouseEnterEventsCanvas: if (!inPolygon) { StatusBar.Content = zoomHelp; } break; case TwNotificationProperty.OnMouseLeaveEventsCanvas: StatusBar.Content = string.Empty; break; case TwNotificationProperty.OnLeaveHorizontalSplitMode: case TwNotificationProperty.OnLeaveVerticalSplitMode: case TwNotificationProperty.OnLeaveMergeAllIntoBaseMode: GraphToolBar.ClearMergeSplitButtons(); break; case TwNotificationProperty.OnAddFixtureRequested: FixtureProfilesEditor.AddFixture(GetCurrentEventOrSelectedEvents()); break; case TwNotificationProperty.OnApplyFixtureRequested: FixtureProfilesEditor.ApplyFixture(GetCurrentEventOrSelectedEvents()); break; } }
void ApplyFixtureExecuted(object sender, ExecutedRoutedEventArgs e) { FixtureProfilesEditor.ApplyFixture(Analysis.Events.SelectedEvents); }