public virtual bool DeleteWaypoints(IList <GlobalsatWaypoint> waypointNames, IJobMonitor jobMonitor) { bool result = false; if (this.Open()) { try { GlobalsatPacket packet = PacketFactory.DeleteWaypoints(this.FitnessDevice.configInfo.MaxNrWaypoints, waypointNames); GlobalsatPacket response = (GlobalsatPacket)this.SendPacket(packet); result = true; } catch (Exception e) { jobMonitor.ErrorText = Properties.Resources.Device_DeleteWaypoints_Error + e; } finally { this.Close(); } } if (!this.DataRecieved) { NoCommunicationError(jobMonitor); } return(result); }