Esempio n. 1
0
 private void DetectConflicts(ConfigNode parent)
 {
     foreach (var node in parent.Children)
     {
         if (node.VirtualPath is IVirtualFolder)
         {
             DetectConflicts(node);
         }
         else
         {
             if (m_dstFs.GetPath(node.VirtualPath).Exists())
             {
                 int idx = dataGridViewEx1.Rows.Add(VirtualFileExtension.NormalizePath(node.VirtualPath.FullPath), Path.GetFileNameWithoutExtension(node.VirtualPath.Name), node.Selected);
                 dataGridViewEx1.Rows[idx].Tag = node;
                 node.Tag              = dataGridViewEx1.Rows[idx];
                 node.SelectedChanged += new EventHandler(node_SelectedChanged);
                 m_conflicts.Add((ConfigFileNode)node);
             }
         }
     }
 }