void populateList(XapEntry entry)
{
string p = (entry == null ? Root : entry.FullPath);
if (entry != null) entry.Children = new List<XapEntry>();
foreach(string d in Directory.GetDirectories(p))
{
XapEntry e = new XapEntry(d, this, true);
populateList(e);
if (entry == null) List.Add(e);
else entry.Children.Add(e);
}
foreach (string f in Directory.GetFiles(p))
{
XapEntry e = new XapEntry(f, this, false);
if (entry == null) List.Add(e);
else entry.Children.Add(e);
}
}
public void Pack(string fp)