Пример #1
0
        public bool DeleteTrackIfActive()
        {
            if (!track.Active)
            {
                return(false);
            }

            targetManager.NotifyAllObservers(track, NotifyType.Delete);
            SystemCommunicator.DeleteTrack(track);
            return(true);
        }
Пример #2
0
 public void UpdateTrack(Sector s)
 {
     if (track.SectorIndex != s.Index)
     {
         return;
     }
     MoveTrack();
     targetManager.NotifyAllObservers(track, NotifyType.Update);
     track.SetRefreshTimeNow();  //设置更新时间
     SystemCommunicator.UpdateTrack(track);
     OpticalDeviceCommunicator.CreateOpticalDeviceCommunicator().SendTrack(track);
 }