public virtual bool DeleteAllWaypoints(IJobMonitor jobMonitor) { bool result = false; if (this.Open()) { try { GlobalsatPacket packet = PacketFactory.DeleteAllWaypoints(); 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); }