예제 #1
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);
 }
예제 #2
0
 public static OpticalDeviceCommunicator CreateOpticalDeviceCommunicator() => _communicator ?? (_communicator = new OpticalDeviceCommunicator());