private async Task CreateButtons() { this.ClearScreen(); for (int index = 0; index < this.intArr.Length; index++) { var item = this.intArr[index]; var btn = ButtonFactory.Create(item, index); this.buttons.Add(btn); this.Controls.Add(btn); } await this.Sort(); //this.CreateSwapAnimation(buttons[0], this.buttons[2]); }