public void ResetBadData() { if (th != null) { th.Abort(); } for (int i = datas.Length - 1; i > -1; i--) { datas[i] = new AlgorithmData((int)(((100 - i) / (float)datas.Length) * (ScreenHeight - 70)) + 50); temp[i] = new AlgorithmData(); } }
public void ResetData() { if (th != null) { th.Abort(); } for (int i = 0; i < datas.Length; i++) { datas[i] = new AlgorithmData(rand.Next(50, ScreenHeight - 20)); temp[i] = new AlgorithmData(); } }