Example #1
0
        private void Sync()
        {
            //var sync = new Sync.Sync { Worker = this.worker };
            //try
            //{
            //    sync.DoSyncMaster();
            //    sync.DoSync(AppContext.CurrentClinicId);
            //    sync.DoRemove(AppContext.CurrentClinicId);
            //}
            //finally
            //{
            //    sync.UpdateSyncResult(AppContext.CurrentClinicId);
            //}

            //HieuNK - fix synchronize
            Medical.Synchronization.Synchronize synservice = new Medical.Synchronization.Synchronize();
            synservice.SendingCompleted += synservice_SendingCompleted;
            synservice.SendAll(AppContext.CurrentClinicId.ToString());
        }
Example #2
0
        private void Sync()
        {
            //var sync = new Sync.Sync { Worker = this.worker };
            //try
            //{
            //    sync.DoSyncMaster();
            //    sync.DoSync(AppContext.CurrentClinicId);
            //    sync.DoRemove(AppContext.CurrentClinicId);
            //}
            //finally
            //{
            //    sync.UpdateSyncResult(AppContext.CurrentClinicId);
            //}

            //HieuNK - fix synchronize
            Medical.Synchronization.Synchronize synservice = new Medical.Synchronization.Synchronize();
            synservice.SendingCompleted += synservice_SendingCompleted;
            synservice.SendAll(AppContext.CurrentClinicId.ToString());
        }