public Form1() { InitializeComponent(); #if DEBUG #else SystemUtility.InitializeApplication(); #endif engine = new AppEngine(this); this.AllowDrop = true; this.DragOver += (sn, ev) => { string[] files = (string[])ev.Data.GetData(DataFormats.FileDrop); if (files.Count() == 0) return; string path = files[0]; if (!Directory.Exists(path)) { msg("The input should be a valid directory", MessageBoxIcon.Exclamation); return; } string name = path.Split('\\').Last(); //if(msgask("Are you sure you want '"+path+"' as a shortcut?")==DialogResult.Yes) ShortcutRepository.Add(new FolderLink() { Name = name, ExplorerLink = path }); engine.ViewShortcuts(); }; }