示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }