private void btnOpenWinmerge_Click(object sender, EventArgs e)
        {
            var config = GetCurrentConfigFromUI(true);

            if (!SyncConfiguration.Validate(config))
            {
                return;
            }

            RunImplementation.OpenWinmerge(m_globalSettings.m_winMergeDir, config.m_src, config.m_destination, true);
        }
Ejemplo n.º 2
0
 private void btnCompareWinmerge_Click(object sender, EventArgs e)
 {
     // "View in winmerge"
     foreach (var item in IterateListViewItems(true))
     {
         var itemObj = item as CCreateSyncItem;
         if (itemObj != null && (itemObj.status == CCreateSyncItemStatus.ChangedAndDestNewer || itemObj.status == CCreateSyncItemStatus.ChangedAndSrcNewer))
         {
             RunImplementation.OpenWinmerge(m_globalSettings.m_winMergeDir,
                                            itemObj.GetLeftPath(m_results.config), itemObj.GetRightPath(m_results.config), false);
         }
     }
 }