예제 #1
0
 private void RequestFlightAnalysisSub(FAChartSubModel subModel, FlightAnalysisSubNavigateParameter parameter)
 {
     if (FlightAnalysisSubNavigationRequested != null)
     {
         this.FlightAnalysisSubNavigationRequested(
             subModel, new FlightAnalysisSubNavigateEventArgs() { Parameter = parameter });
     }
 }
예제 #2
0
        void chart_Tapped(object sender, TappedRoutedEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("Tapped:+" + sender.GetHashCode().ToString());
            if (sender != null && sender is SfChart)
            {
                SfChart chart = sender as SfChart;
                if (chart.DataContext != null && chart.DataContext is FAChartSubModel)
                {
                    FAChartSubModel subModel = chart.DataContext as FAChartSubModel;
                    FlightAnalysisSubNavigateParameter parameter = new FlightAnalysisSubNavigateParameter()
                    {
                        CurrentStartSecond = ViewModel.CurrentStartSecond,
                        CurrentEndSecond = ViewModel.CurrentEndSecond,
                        HostParameterID = subModel.ParameterID
                    };

                    this.RequestFlightAnalysisSub(subModel, parameter);
                    e.Handled = true;
                }
            }
        }
예제 #3
0
        void chart_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            if (sender != null && sender is SfChart)
            {
                SfChart chart = sender as SfChart;
                if (chart.DataContext != null && chart.DataContext is FAChartSubModel)
                {
                    FAChartSubModel subModel = chart.DataContext as FAChartSubModel;
                    FlightAnalysisSubNavigateParameter parameter = new FlightAnalysisSubNavigateParameter()
                    {
                        CurrentStartSecond = ViewModel.CurrentStartSecond,
                        CurrentEndSecond = ViewModel.CurrentEndSecond,
                        HostParameterID = subModel.ParameterID
                    };

                    this.RequestFlightAnalysisSub(subModel, parameter);
                    e.Handled = true;
                }
            }
        }