예제 #1
0
 void OnFileDropped(object sender, FileDropEventArgs e)
 {
     foreach(var file in e.FileNames)
       {
     this.AddEditorWindow(file, false);
       }
 }
예제 #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);
 }
예제 #3
0
파일: Form1.cs 프로젝트: Nxun/Naive-Tiger
 private void scintilla1_FileDrop(object sender, FileDropEventArgs e)
 {
     OpenFile(e.FileNames[0]);
 }