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