/********************************************************************************************************************************************* * *********************************************************************************************************************************************/ public void HandleUpdateAlgorithmSelection(object sender, RoutedEventWithDataArgs AlgorithmConfigData) { // create event for the algo controller RoutedEventWithDataArgs InternalUpdateAlgoSelection = AlgorithmConfigData; InternalUpdateAlgoSelection.SetRoutedEvent(UpdateAlgorithmSelectionEvent); // raise event and callt he associated update function on the controller this.ExecuteCustomEvent(sender, InternalUpdateAlgoSelection); this.AlgorithmSelectionController.Update(); // handle the events InternalUpdateAlgoSelection.Handled = true; AlgorithmConfigData.Handled = true; }
/********************************************************************************************************************************************* * *********************************************************************************************************************************************/ /********************************************************************************************************************************************* * *********************************************************************************************************************************************/ public void HandleUpdateRowColumnEvent(object sender, RoutedEventWithDataArgs routedEventWithData) { // create event for the grid config controller RoutedEventWithDataArgs InternalUpdateGridConfig = routedEventWithData; InternalUpdateGridConfig.SetRoutedEvent(UpdateGridDataEvent); // create he follow up event RoutedEventWithDataArgs ContentUpdateForStatusBar = new RoutedEventWithDataArgs(UpdateStatusBarEvent, "GridUpdate;Info"); // raise the event this.ExecuteCustomEvent(sender, InternalUpdateGridConfig); // handle the events InternalUpdateGridConfig.Handled = true; routedEventWithData.Handled = true; // raise custome event this.ExecuteCustomEvent(sender, ContentUpdateForStatusBar); }