コード例 #1
0
ファイル: WindowManager.cs プロジェクト: trietptm/retoolkit
 void OnFileDropped(object sender, FileDropEventArgs e)
 {
     foreach(var file in e.FileNames)
       {
     this.AddEditorWindow(file, false);
       }
 }
コード例 #2
0
ファイル: Scintilla.cs プロジェクト: rudybear/moai-ide
 /// <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]);
 }