Exemplo n.º 1
0
 /// <summary>
 /// Refereshes molecules, leaving those already assigned intact
 /// </summary>
 public void RefreshMolecules()
 {
     foreach (Molecule molecule in Molecules.ToList())
     {
         molecule.Refresh();
     }
     AddNewMols();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Refereshes molecules, leaving those already assigned intact
 /// </summary>
 public void RefreshMolecules()
 {
     foreach (Molecule molecule in Molecules.ToList())
     {
         if (molecule.Atoms.Count == 0)
         {
             //it's empty, trash it
             Molecules.Remove(molecule);
         }
         else
         {
             molecule.Refresh();
         }
     }
     AddNewMols();
 }