Exemple #1
0
 void OnFileDropped(object sender, FileDropEventArgs e)
 {
     foreach(var file in e.FileNames)
       {
     this.AddEditorWindow(file, false);
       }
 }
Exemple #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);
 }
Exemple #3
0
 private void scintilla1_FileDrop(object sender, FileDropEventArgs e)
 {
     OpenFile(e.FileNames[0]);
 }