/// <summary> /// 读取当前架次的极值信息 /// </summary> /// <param name="e"></param> protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); AircraftDataAnalysisWinRT.DataModel.ExtremumReportViewModel viewModel = new AircraftDataAnalysisWinRT.DataModel.ExtremumReportViewModel(); this.DataContext = viewModel; //var extremumInfos = ServerHelper.GetExtremumPointInfos(ApplicationContext.Instance.CurrentFlight); //this.rdgList.ItemsSource = extremumInfos; }
public ExtremumReportItemWrap(ExtremumReportViewModel viewModel, FlightDataEntitiesRT.ExtremumPointInfo info) { this.viewModel = viewModel; this.extremumInfo = info; var para = this.viewModel.FlightParameters.Parameters.FirstOrDefault( new Func<FlightDataEntitiesRT.FlightParameter, bool>(delegate(FlightDataEntitiesRT.FlightParameter p) { if (p.ParameterID == info.ParameterID) return true; return false; })); if (para != null) this.ParameterCaption = para.Caption; }