Exemplo n.º 1
0
 // <summary>
 // Only for empty object.
 // </summary>
 public void AddElement(ScrambleElements el)
 {
     if (scrambleElements.Count() == 20)
     {
         throw new InvalidOperationException("Method \"AddElement(el)\" is only avaliable for empty Scramble object"); // TODO: FIX BUG
     }
     else
     {
         var v = scrambleElements.ToList();
         v.Add(el);
         scrambleElements = v.ToArray();
         if (this.scrambleElements.Count() == 20)
         {
             Empty = new Scramble(false);
         }
     }
 }
Exemplo n.º 2
0
 public void LoadScramble(Scramble scramble)
 {
     this.scramble = scramble;
     CurrentTime   = new Time(scramble); //, user
 }