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