private void PopulateFiles()
{
while (_plugin.GlueState.GetProjects() == null || _plugin.GlueState.GetProjects().Count == 0 || _plugin.GlueState.GetProjects()[0] == null)
{
return;
}
mFoundFiles.Clear();
foreach (var project in _plugin.GlueState.GetProjects())
{
if (Directory.Exists(project.Directory + LibraryFolder + "/"))
{
foreach (var dll in project.LibraryDlls)
{
mFoundFiles.Add(new FileData
{
ProjectType = project.FolderName,
FileName = dll,
ProjectFile = project.Directory + LibraryFolder + "/" + dll,
ServerFile = _url + project.FolderName + "/" + FileManager.RemovePath(dll),
DiskFile = _savePath + project.FolderName + @"\" + FileManager.RemovePath(dll),
TimestampFile = _savePath + project.FolderName + @"\" + FileManager.RemovePath(FileManager.RemoveExtension(dll)) + "-timestamp.txt"
});
}
}
else
{
MessageBox.Show("Library Folder doesn't exist for project " + project.FullFileName);
}
}
}