private void B_Calc_Click(object sender, EventArgs e) { Frames.Clear(); Frames = new List <Frame_Misc>(); getFilter(); Frame_Misc.X64 = RNG.SelectedIndex == 0; switch (RNG.SelectedIndex) { case 0 when !CreateTimeline.Checked: Search7(); break; case 0 when CreateTimeline.Checked: Search7_Timeline(); break; case 1: Search7_Battle(); break; case 2: Search6(); break; case 3: Search6_Battle(); break; } AdjustDGVColumns(); RNGPool.Clear(); GC.Collect(); }