private void barButtonItemSync_ItemClick(object sender, ItemClickEventArgs e) { if (m_Shelp == null || m_Shelp.ResultProcessed) { StartSync(); m_Shelp = new Sync.SyncHelper(); m_Shelp.GoSync(); } }
private void start(object parametro) { SyncHelper mestesso = parametro as SyncHelper; ResultInfo = new MergeSyncLib.ReplicamenteInfo(); try { MergeSyncLib.Replicamente rx = new MergeSyncLib.Replicamente(ResultInfo); mestesso.Result = rx.Go("(local)\\SQLEXPRESS", "MuseiXafRev1locale"); } catch (Exception ex) { mestesso.Result = false; mestesso.ResultInfo.Info += Environment.NewLine + ex.Message; } mestesso.SyncFinished = true; }