private void AirportThrowHelper(string icao) { if (model.FuelPlanningModel.AirwayNetwork.AirportList[icao] == null) { throw new ArgumentException( ActionContextMenuHelper.NonExistingAirportMsg(icao)); } }
/// <exception cref="ArgumentException"></exception> private void WaypointThrowHelper(IRouteFinderRowView v) { if (!v.SelectedWaypointIndex.HasValue) { throw new ArgumentException( ActionContextMenuHelper.NonExistingWptMsg(v.WaypointIdent)); } }
/// <exception cref="ArgumentException"></exception> private void EnsureAirportExists(string icao) { if (AirportList[icao] == null) { var msg = ActionContextMenuHelper.NonExistingAirportMsg(icao); throw new ArgumentException(msg); } }
public void ExportRouteFiles() { ActionContextMenuHelper.ExportRouteFiles( view, Route, AppOptions.ExportCommands.Values, AirportList); }
public void ExportRouteFiles() { ActionContextMenuHelper.ExportRouteFiles( view, Route, AppOptions.ExportCommands, airwayNetwork.Navaids, AirportList, exportMenu); }
public void ExportRouteFiles() { Debug.Assert(view.IsAirportToAirport()); var o = model.FuelPlanningModel.AppOption.Instance; var airportList = model.FuelPlanningModel.AirwayNetwork.AirportList; var cmds = o.ExportCommands.Values; ActionContextMenuHelper.ExportRouteFiles(view, Route, cmds, airportList); }