Exemple #1
0
        private void frmSync_Load(object sender, EventArgs e)
        {
            Syncer syncer = new Syncer();

            syncer.TaskAdded    += Syncer_TaskAdded;
            syncer.SyncComplete += Syncer_SyncComplete;

            syncer.BeginSync();
        }
Exemple #2
0
        public void Run()
        {
            IsRunning = true;

            //Updater.UpdaterResults updaterResults = Updater.Run();
            //if (updaterResults.HasUpdates)
            //{
            //    DisplayUpdates(updaterResults.UpdatesAvailable);
            //    IsRunning = false;
            //    return;
            //}

            Syncer syncer = new Syncer();

            syncer.TaskAdded    += Syncer_TaskAdded;
            syncer.SyncComplete += Syncer_SyncComplete;
            syncer.BeginSync();
        }