public void CopySeeds(ref cSeed ThisSeed) { Seeds.Clear(); SeedIndex.Clear(); for (int i = 0; i < ThisSeed.Seeds.Count; i++) { Seeds.Add(ThisSeed.Seeds[i]); SeedIndex.Add(ThisSeed.SeedIndex[i]); } }
public bool bSameSeed(ref cSeed PrevSeed) { int i; int n = Seeds.Count; if (n != PrevSeed.Seeds.Count) { return(false); } for (i = 0; i < n; i++) { if (!PrevSeed.Seeds.Contains(Seeds[i])) { return(false); } } return(true); }