private void GenerateProduction(Library.Project f, string destinationDirectory)
 {
     ConfigDirectories.AddProductionFolder(f.Title, "", destinationDirectory);
     foreach (Page p in f.Pages)
     {
         OutputHTML html = p.GenerateProduction();
         ConfigDirectories.AddProductionFolder(f.Title, p.Folder, destinationDirectory);
         FileStream fs = new FileStream(Path.Combine(destinationDirectory,
                                                     ConfigDirectories.RemoveLeadSlash(p.Folder),
                                                     ConfigDirectories.RemoveLeadSlash(p.Name)),
                                        FileMode.Create);
         StreamWriter sw = new StreamWriter(fs);
         sw.WriteLine(html.HTML.ToString());
         sw.Close();
         sw.Dispose();
         fs.Close();
         fs.Dispose();
     }
     foreach (Library.File s in f.Files)
     {
         ConfigDirectories.AddProductionFile(f.Title,
                                             Path.Combine(s.Folder, s.FileName),
                                             Path.Combine(ConfigDirectories.GetBuildFolder(f.Title), s.Folder, s.FileName), destinationDirectory);
     }
 }