Beispiel #1
0
 private async void enviarAlServidorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DialogResult msgResult =
             MessageService.displayConfirmWarningMessage(
                     "¿Está seguro desea realizar sincronización con el servidor?",
                     "SINCRONIZANDO TRANSACCIONES AL SERVIDOR..."
                     );
     // Procesar el resultado de la confirmación
     switch (msgResult)
     {
         case DialogResult.Yes:
             // Procesar la sincronización
             //this.processLinearSynchronization();
             await this.processParallelSynchronization(FormatService.formatDrawDate(DateTime.Today));
             break;
         case DialogResult.No:
             break;
         default:
             break;
     }
 }
Beispiel #2
0
 private void syncTimer_Tick(object sender, EventArgs e)
 {
     //Console.WriteLine("Tick: " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
     this.lastSyncTick = DateTime.Now;
     this.processPeridicSynchronization(FormatService.formatDrawDate(DateTime.Today));
 }