private void frmSync_Load(object sender, EventArgs e) { Syncer syncer = new Syncer(); syncer.TaskAdded += Syncer_TaskAdded; syncer.SyncComplete += Syncer_SyncComplete; syncer.BeginSync(); }
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(); }