private void button4_Click(object sender, EventArgs e) { this.panel1.Controls.Clear(); //Thread.Sleep(1); Tools.Perform(int.Parse(num.Text)); arr = Tools.ButtonArray; Tools.Draw(); }