Beispiel #1
0
 void OnFileDropped(object sender, FileDropEventArgs e)
 {
     foreach(var file in e.FileNames)
       {
     this.AddEditorWindow(file, false);
       }
 }
Beispiel #2
0
 /// <summary>
 /// Raises the <see cref="FileDrop"/> event.
 /// </summary>
 /// <param name="e">An <see cref="FileDropEventArgs"/> that contains the event data.</param>
 protected virtual void OnFileDrop(FileDropEventArgs e)
 {
     EventHandler<FileDropEventArgs> handler = Events[_fileDropEventKey] as EventHandler<FileDropEventArgs>;
     if (handler != null)
         handler(this, e);
 }
Beispiel #3
0
 private void scintilla1_FileDrop(object sender, FileDropEventArgs e)
 {
     OpenFile(e.FileNames[0]);
 }