Ejemplo n.º 1
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);
     }
 }
Ejemplo n.º 2
0
 private void tsb_SynchAll_Click(object sender, EventArgs e)
 {
     try
     {
         FSynchronizer rf = new FSynchronizer();
         rf.GlobalIgnoreList = _ConfigFSynchr.GlobalIgnoreList;
         foreach (ConfigTarget ct in _ConfigFSynchr.Targets)
         {
             rf.RunSynch(rf.GetSynchList(ct));
         }
         MessageBox.Show("ok");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }