MainForm.GroupBox_DragDrop C# (CSharp) 메소드

GroupBox_DragDrop() 공개 메소드

public GroupBox_DragDrop ( object sender, DragEventArgs e ) : void
sender object
e DragEventArgs
리턴 void
	void GroupBox_DragDrop (object sender, DragEventArgs e)
	{
		if (e.Data.GetDataPresent (DataFormats.FileDrop)) {
			string [] filenames = (string []) e.Data.GetData (DataFormats.FileDrop);
			if (filenames != null) {
				foreach (string fileName in filenames)
					_filesListBox.Items.Add ("Drop => " + fileName);
			}
		}
	}
MainForm