// 【嫌儲民用ファイル一括処理アプリ雛形】
using System;using System.IO;using System.Windows.Forms;
partial class Form1{
static object o1 = null,o2 = null,o3 = null;
private void kenmomen( string[] filenames ){
// ♪♪コピペゾーン♪♪
}
protected override void Dispose( bool disposing ){base.Dispose( disposing );}
private void Form1_DragEnter( object sender, DragEventArgs e ){
if( e.Data.GetDataPresent( DataFormats.FileDrop ) ) e.Effect = DragDropEffects.Copy;
else e.Effect = DragDropEffects.None;}
private void Form1_DragDrop( object sender, DragEventArgs e ){try{
string[] fns = (string[])e.Data.GetData( DataFormats.FileDrop, false );
if( fns != null && fns.Length > 0 ) kenmomen( fns );}catch( Exception ){}}}
static class Program{
[STAThread]
static void Main(){
Application.EnableVisualStyles();
Application.Run( new Form1() );}}
public partial class Form1 : Form{
public Form1(){
this.AllowDrop = true;this.DragDrop += new DragEventHandler( Form1_DragDrop );
this.DragEnter += new DragEventHandler( Form1_DragEnter );
o1 = o2 = o3;}}