public void Flip(int index) { if (runArray.Count == 0) { runArray.Add(new Run(index, index)); } else { if (this.Get(index) == true) { this.Set(index, false); } else { this.Set(index, true); } } }