Exemplo n.º 1
0
 //# __________ PROTOCOL :: CONSTANTS __________ #//
 public VmAccountDataDownloader(VmAccountSynchronizer synchronizer)
     : base(synchronizer)
 {
     AccountPath = VmAccountData.Default.GetAccountDataPath();
     AccountInputPath = VmAccountData.Default.GetAccountInputPath();
     _inputData = new VmAccountInputData(GetDownloadPath());
 }
Exemplo n.º 2
0
 //# __________ PROTOCOL :: CONSTANTS __________ #//
 public VmAirportDataDownloader(
     VmAccountSynchronizer synchronizer,
     VmAirportInputData airportInputData)
     : base(synchronizer)
 {
     _airportInputData = airportInputData;
     PlannedRouteDownloader = new VmPlannedRouteDownloader(
         synchronizer,
         airportInputData);
 }
Exemplo n.º 3
0
 //# __________ PROTOCOL :: CONSTRUCTORS __________ #//
 public VmAccountUploader(VmAccountSynchronizer synchronizer)
     : base(synchronizer)
 {
 }
Exemplo n.º 4
0
 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);
     }
 }
Exemplo n.º 5
0
 //# __________ PROTOCOL :: CONSTANTS __________ #//
 //# __________ PROTOCOL :: CONSTRUCTOR __________ #//
 public VmAbstractSynchronizer(VmAccountSynchronizer synchronizer)
 {
     Synchronizer = synchronizer;
 }