/// <summary>
 /// reseting the package objects
 /// </summary>
 private void ShutDown()
 {
     if (cb != null)
     {
         //FileStream fs = File.Create(cb.ProjPath + "\\CoProFiles\\timestamps.txt");
         //fs.Close();
         //StreamWriter sw = new StreamWriter(cb.ProjPath + "\\CoProFiles\\timestamps.txt");
         //sw.Write(TimeStampDirectory(cb.ProjPath, 1, cb.ProjPath.Substring(cb.ProjPath.LastIndexOf('\\'))));
         //sw.Close();
         if (cb.IsAdmin)
         {
             XElement      xe  = CreateFileSystemXmlTree(cb.ProjPath, 1, cb.ProjPath.Substring(cb.ProjPath.LastIndexOf('\\') + 1));
             XmlTextWriter xwr = new XmlTextWriter(cb.ProjPath + "\\CoProFiles\\timestamps.xml", System.Text.Encoding.UTF8);
             xwr.Formatting = Formatting.Indented;
             xe.WriteTo(xwr);
             xwr.Close();
         }
         cb.Abort();
         cb = null;
         CoProFilterProvider.isFirst = true;
     }
     if (CoProgrammerPackage.service != null)
     {
         CoProgrammerPackage.service.Close();
         CoProgrammerPackage.service = null;
     }
 }
 /// <summary>
 /// reseting the package objects
 /// </summary>
 private void ShutDown()
 {
     if (cb != null)
     {
         //FileStream fs = File.Create(cb.ProjPath + "\\CoProFiles\\timestamps.txt");
         //fs.Close();
         //StreamWriter sw = new StreamWriter(cb.ProjPath + "\\CoProFiles\\timestamps.txt");
         //sw.Write(TimeStampDirectory(cb.ProjPath, 1, cb.ProjPath.Substring(cb.ProjPath.LastIndexOf('\\'))));
         //sw.Close();
         if (cb.IsAdmin)
         {
             XElement xe = CreateFileSystemXmlTree(cb.ProjPath, 1, cb.ProjPath.Substring(cb.ProjPath.LastIndexOf('\\') + 1));
             XmlTextWriter xwr = new XmlTextWriter(cb.ProjPath + "\\CoProFiles\\timestamps.xml", System.Text.Encoding.UTF8);
             xwr.Formatting = Formatting.Indented;
             xe.WriteTo(xwr);
             xwr.Close();
         }
         cb.Abort();
         cb = null;
         CoProFilterProvider.isFirst = true;
     }
     if (CoProgrammerPackage.service != null)
     {
         CoProgrammerPackage.service.Close();
         CoProgrammerPackage.service = null;
     }
 }