private void tsb_Synch_Click(object sender, EventArgs e) { try { FSynchronizer rf = new FSynchronizer(); rf.GlobalIgnoreList = _ConfigFSynchr.GlobalIgnoreList; FSynchList fSList = rf.GetSynchList(GetCurrentTarget()); using (FTargetSynchList fTSL = new FTargetSynchList()) { fTSL.TSynchList = fSList; if (fTSL.ShowForm()) { rf.RunSynch(fSList); MessageBox.Show("ok"); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void tsmi_SynchTarget_Click(object sender, EventArgs e) { try { FSynchronizer rf = new FSynchronizer(); rf.GlobalIgnoreList = _ConfigFSynchr.GlobalIgnoreList; FSynchList fSList = rf.GetSynchList(GetCurrentTarget()); using (FTargetSynchList fTSL = new FTargetSynchList()) { fTSL.TSynchList = fSList; if (fTSL.ShowForm()) { rf.RunSynch(fSList); MessageBox.Show("ok"); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }