示例#1
0
 public void DBLoad()
 {
     DBInterface.iLog = this;
     db = new DBInterface();
     db.ConnectTo(DBName);
     LoadSettings();
     Mascots = new List <QPeptide>();
     db.LoadMascots(Mascots);
     if (QuantyAll)
     {
         MSMSList = new List <QPeptide>();
         db.LoadAllMSMS(MSMSList);
         //а теперь сливаем Mascots и MSMSList
         Mascots.Sort(new QPeptide.byMascotSN());
         MSMSList.Sort(new QPeptide.byMascotSN());
         int Count = 0;
         for (int i = 0; i < Mascots.Count; i++)
         {
             while (MSMSList[Count].MascotScan != Mascots[i].MascotScan)
             {
                 Count++;
             }
             MSMSList[Count] = Mascots[i];
         }
     }
     else
     {
         MSMSList = Mascots;
     }
 }
 public void DBLoad()
 {
     DBInterface.iLog = this;
     db = new DBInterface();
     db.ConnectTo(DBName);
     LoadSettings();
     Mascots = new List<QPeptide>();
     db.LoadMascots(Mascots);
     if (QuantyAll ){
         MSMSList = new List<QPeptide>();
         db.LoadAllMSMS(MSMSList);
         //а теперь сливаем Mascots и MSMSList
         Mascots.Sort(new QPeptide.byMascotSN());
         MSMSList.Sort(new QPeptide.byMascotSN());
         int Count=0;
         for ( int i = 0 ; i< Mascots.Count ; i++){
             while( MSMSList[Count].MascotScan != Mascots[i].MascotScan) {
                 Count++;
             }
             MSMSList[Count] = Mascots[i];
         }
     }else{
         MSMSList = Mascots;
     }
 }