示例#1
0
 public void AddBestandteil(Element element, int anzahlAtome)
 {
     for (int cnt = 0; cnt < anzahlAtome; cnt++)
     {
         Bestandteile.Add(new Element[] { element });
     }
 }
示例#2
0
 public void AddBestandteil(Atombindung atombindung, int anzahlAtome)
 {
     for (int cnt = 0; cnt < anzahlAtome; cnt++)
     {
         Bestandteile.Add(atombindung.Bestandteile.SelectMany(x => x).ToArray());
     }
 }
示例#3
0
 public bool IstElementbindung()
 {
     return(!Bestandteile.Any(x => x.Length > 1 || x.Any(y => !y.Symol.Equals(Bestandteile[0][0].Symol))));
 }