private void Button1_Click(object sender, RoutedEventArgs e) { if (textBox.Text != "") { GlobalRandom.rnd = new Random(Convert.ToInt32(textBox.Text)); } if (checkBox.IsChecked == true) { Courses.Shuffle(); } if (checkBox1.IsChecked == true) { Hubs.Shuffle(checkBox7.IsChecked ?? false); } if (checkBox2.IsChecked == true) { Rewards.Shuffle(); } if (checkBox3.IsChecked == true) { NPCCoords.Shuffle(); } if (checkBox4.IsChecked == true) { Minigames.Shuffle(); } if (checkBox5.IsChecked == true) { NPCMind.Shuffle(); } if (checkBox6.IsChecked == true) { Unlocks.Shuffle(); } string[] delete = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.new"); foreach (string file in delete) { File.Delete(file); } MessageBox.Show("Done!"); }