public DecisionRecordFlightAnalysisViewModel(DecisionWrap decisionWrap)
            : base()
        {
            this.DecisionWrap = decisionWrap;

            this.InitData();
        }
        private AircraftDataAnalysisWinRT.Domain.FaultDiagnosisFASubNavigateParameter GenerateParameter(DecisionWrap wrap)
        {
            AircraftDataAnalysisWinRT.Domain.FaultDiagnosisFASubNavigateParameter parameter =
                new AircraftDataAnalysisWinRT.Domain.FaultDiagnosisFASubNavigateParameter()
                {
                    DecisionStartSecond = wrap.Record == null ? 0 : wrap.Record.StartSecond,
                    DecisionEndSecond = wrap.Record == null ? 0 : wrap.Record.EndSecond,
                    DecisionHappenSecond = wrap.Record == null ? 0 : wrap.Record.HappenSecond,
                    RelatedParameterIDs = wrap.Decision.RelatedParameters,
                    DataLoader = null,
                    FlightEndSecond = ApplicationContext.Instance.CurrentFlight.EndSecond,
                    FlightStartSecond = 0,
                    DecisionID = wrap.DecisionID,
                    DecisionName = wrap.Decision.DecisionName,
                };

            List<string> temp = new List<string>(wrap.Decision.RelatedParameters);
            if (temp.Count > 0)
            {
                parameter.HostParameterID = temp[0];
            }
            if (temp.Count > 1)
            {
                parameter.RelatedParameterIDs = temp.GetRange(1, temp.Count - 1).ToArray();
            }
            else
            {
                parameter.RelatedParameterIDs = new string[] { };
            }

            return parameter;
        }