private void OnDrop(object sender, DragEventArgs e)
{
if (!isWorking && e.Data.GetDataPresent(DataFormats.FileDrop))
{
string filePath = ((string[])e.Data.GetData(DataFormats.FileDrop))[0];
FileInfo fi = new FileInfo(filePath);
if (fi.Extension == ".xml" || fi.Extension == ".tgz" || fi.Extension == ".tar")
{
importFilePath.Text = filePath;
importStart.IsEnabled = true;
}
e.Handled = true;
}
}