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