private void LogitemsDrop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
try
{
var a = (Array)e.Data.GetData(DataFormats.FileDrop);
if (a != null)
{
Filec.FileName = a.GetValue(0).ToString();
}
}
catch (Exception ex)
{
_log.Error("Drag and drop", ex);
MessageBox.Show("Error in Drag Drop: " + ex.Message);
}
}
}