protected virtual void GetFilterSelection(CommonFilterCollection filterCollection) { if (_reportedAircraft != null) { _filterSelection = "All"; if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = filterCollection.ToStrings(); } else if (_reportedBaseComponent != null) { _filterSelection = "All"; if (filterCollection == null) { return; } if (_reportedBaseComponent.BaseComponentType == BaseComponentType.LandingGear) { _filterSelection = _reportedBaseComponent.TransferRecords.GetLast().Position; } if (_reportedBaseComponent.BaseComponentType == BaseComponentType.Engine) { _filterSelection = BaseComponentType.Engine + " " + _reportedBaseComponent.TransferRecords.GetLast().Position; } if (_reportedBaseComponent.BaseComponentType == BaseComponentType.Apu) { _filterSelection = BaseComponentType.Apu.ToString(); } } else { IEnumerable <IGrouping <Aircraft, BaseEntityObject> > groupByAircraft = _reportedDirectives.GroupBy(GlobalObjects.AircraftsCore.GetParentAircraft) .OrderBy(g => g.Key.ToString() + " " + g.Key.Model.ToString()); _filterSelection = "All"; if (GlobalObjects.AircraftsCore.GetAircraftsCount() == groupByAircraft.Count()) { if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = filterCollection.ToStrings(); } else { foreach (IGrouping <Aircraft, BaseEntityObject> byAircraft in groupByAircraft) { _filterSelection += (byAircraft.Key + "; "); } if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = $"{_filterSelection} {filterCollection}"; } } }
protected virtual void GetFilterSelection(CommonFilterCollection filterCollection) { if (_reportedWorkPackage != null) { _filterSelection = $"Work Package: {_reportedWorkPackage.Title}"; if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = $"{_filterSelection} {filterCollection}"; } else if (_reportedAircraft != null) { _filterSelection = "All"; if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = filterCollection.ToStrings(); } else { _filterSelection = "All"; } }
private void GetFilterSelection(CommonFilterCollection filterCollection) { _filterSelection = "All"; if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = filterCollection.ToStrings(); }
protected virtual void GetFilterSelection(CommonFilterCollection filterCollection) { if (_reportedAircraft != null) { _filterSelection = "All"; if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = filterCollection.ToStrings(); } else { IEnumerable <IGrouping <Aircraft, NextPerformance> > groupByAircraft = _reportedDirectives.GroupBy(GlobalObjects.AircraftsCore.GetParentAircraft) .OrderBy(g => g.Key.ToString() + " " + g.Key.Model.ToString()); _filterSelection = "All"; if (GlobalObjects.AircraftsCore.GetAircraftsCount() == groupByAircraft.Count()) { if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = filterCollection.ToStrings(); } else { foreach (IGrouping <Aircraft, NextPerformance> byAircraft in groupByAircraft) { _filterSelection += (byAircraft.Key + "; "); } if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = $"{_filterSelection} {filterCollection}"; } } }
protected virtual void GetFilterSelection(CommonFilterCollection filterCollection) { if (_reportedWorkPackage != null) { _filterSelection = $"Work Package: {_reportedWorkPackage.Title}"; if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = $"{_filterSelection} {filterCollection}"; } else if (_reportedBaseComponent != null) { _filterSelection = "All"; if (filterCollection == null || filterCollection.IsEmpty) { return; } if (_reportedBaseComponent.BaseComponentType == BaseComponentType.LandingGear) { _filterSelection = _reportedBaseComponent.TransferRecords.GetLast().Position; } if (_reportedBaseComponent.BaseComponentType == BaseComponentType.Engine) { _filterSelection = BaseComponentType.Engine + " " + _reportedBaseComponent.TransferRecords.GetLast().Position; } if (_reportedBaseComponent.BaseComponentType == BaseComponentType.Apu) { _filterSelection = BaseComponentType.Apu.ToString(); } } else if (_reportedAircraft != null) { _filterSelection = "All"; if (filterCollection == null || filterCollection.IsEmpty) { return; } _filterSelection = filterCollection.ToStrings(); } else { _filterSelection = "All"; } }