Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 private void toolStripButtonAddTest_Click(object sender, EventArgs e)
 {
     ProjectState.AddTests();
 }