private void MainForm_DragDrop(object sender, DragEventArgs e) { FileInfo[] fi = GetDragDropFile(e); if (fi.Length == 0) { return; } if (fi[0].Extension.ToLower() == ".ctfx") { ProjectState.OpenProject(fi[0].FullName, true); } else { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); ProjectState.AddTests(files); } }
private void toolStripButtonAddTest_Click(object sender, EventArgs e) { ProjectState.AddTests(); }