//# __________ PROTOCOL :: CONSTANTS __________ #//
 public VmAccountDataDownloader(VmAccountSynchronizer synchronizer)
     : base(synchronizer)
 {
     AccountPath = VmAccountData.Default.GetAccountDataPath();
     AccountInputPath = VmAccountData.Default.GetAccountInputPath();
     _inputData = new VmAccountInputData(GetDownloadPath());
 }
 //# __________ PROTOCOL :: CONSTANTS __________ #//
 public VmAirportDataDownloader(
     VmAccountSynchronizer synchronizer,
     VmAirportInputData airportInputData)
     : base(synchronizer)
 {
     _airportInputData = airportInputData;
     PlannedRouteDownloader = new VmPlannedRouteDownloader(
         synchronizer,
         airportInputData);
 }
Beispiel #3
0
 //# __________ PROTOCOL :: CONSTRUCTORS __________ #//
 public VmAccountUploader(VmAccountSynchronizer synchronizer)
     : base(synchronizer)
 {
 }
 public void DoSync()
 {
     VmAccountSynchronizer.UpdateProgressType updater = new VmAccountSynchronizer.UpdateProgressType(UpdateList);
     VmAccountSynchronizer ad = new VmAccountSynchronizer(this, updater);
     try
     {
         ad.Synchronize();
         BeginInvoke(
             new StopThreadDelegate(StopThread),
             new Object[] {});
     }
     catch( JwHttpConnectionError x)
     {
         BeginInvoke(
             new HandleHttpConnectionErrorDelegate(HandleHttpConnectionError),
             new Object[] {x});
         System.Threading.Thread.Sleep(10);
     }
 }
 //# __________ PROTOCOL :: CONSTANTS __________ #//
 //# __________ PROTOCOL :: CONSTRUCTOR __________ #//
 public VmAbstractSynchronizer(VmAccountSynchronizer synchronizer)
 {
     Synchronizer = synchronizer;
 }