private void Form1_DragDrop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) { string[] D = e.Data.GetData(DataFormats.FileDrop) as string[]; BackColor = Color.Green; foreach (string S in D) { if (File.Exists(S)) { try { BOM.LoadRotationOffsets(); Factory.MakeBomAndPlacement(S); Factory.ZipGerbers(S, MakeFrameBox.Checked, (int)FrameMM.Value, FrameName.Text); CountDown = 10; } catch (Exception) { BackColor = Color.Red; } } } } }