private void duplicateLevelToolStripMenuItem_Click(object sender, EventArgs e) { if (Orison.Project == null) { return; } Orison.AddLevel(new Level(Orison.Levels[getTargetLevel()])); }
private void MainWindow_DragDrop(object sender, DragEventArgs e) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); if (Orison.Project == null) { if (files.Length == 1 && Path.GetExtension(files[0]) == ".oep") { Orison.LoadProject(files[0]); } } else { foreach (string file in files) { Orison.AddLevel(new Level(Orison.Project, file)); } } }