internal static FlightAnalysisSubViewModel Create(
            AircraftDataAnalysisWinRT.Domain.FlightAnalysisViewModel HostViewModel,
            FlightDataEntitiesRT.Flight flight, string hostParameterID)
        {
            FlightAnalysisSubViewModel viewModel = new FlightAnalysisSubViewModel() { ViewModel = HostViewModel };
            viewModel.HostParameterID = hostParameterID;
            viewModel.CurrentStartSecond = flight.StartSecond;
            viewModel.CurrentEndSecond = flight.EndSecond;

            var dataEntities = AircraftDataAnalysisWinRT.Services.ServerHelper.GetData(flight, new string[] { hostParameterID },
                flight.StartSecond, flight.EndSecond);

            return viewModel;
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (e == null || e.Parameter == null
                || !(e.Parameter is FlightAnalysisSubNavigateParameter))
                return;

            FlightAnalysisSubNavigateParameter parameter = e.Parameter as FlightAnalysisSubNavigateParameter;

            FlightAnalysisSubViewModel viewModel = FlightAnalysisSubViewModelFactory.Create(ApplicationContext.Instance.GetViewModelByCurrentFlight(),
                ApplicationContext.Instance.CurrentFlight,
                parameter.HostParameterID);

            this.m_viewModel = viewModel;
            this.DataContext = m_viewModel;

            this.chartCtrl.DataContext = m_viewModel;
            this.gridCtrl.DataContext = m_viewModel;
            this.chartCtrl.SubViewModel = m_viewModel;
            this.gridCtrl.SubViewModel = m_viewModel;
        }