//we eventually will need to save these settings and allow removal //from the shelf private void UserControl_Drop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) { string[] path = (string[])e.Data.GetData(DataFormats.FileDrop); foreach (string p in path) { string fname = Path.GetFileNameWithoutExtension(p); if (Path.GetExtension(p).Equals(".mtg")) { NodeResource nsr = new NodeResource(); nsr.Title = fname; nsr.Type = p; root.Add(nsr); } } } }