Remove some duplication

This commit is contained in:
Paul Chote
2010-12-29 21:41:04 +13:00
parent fc6438e311
commit e652a15b01
2 changed files with 9 additions and 15 deletions

View File

@@ -3,6 +3,7 @@ using System.IO;
using System.Windows.Forms;
using OpenRA.FileFormats;
using OpenRA.Graphics;
using System.Linq;
namespace OpenRA.Editor
{
@@ -10,9 +11,12 @@ namespace OpenRA.Editor
{
public string MapFolderPath;
public MapSelect()
public MapSelect(string currentMod)
{
InitializeComponent();
MapFolderPath = new string[] { Environment.CurrentDirectory, "mods", currentMod, "maps" }
.Aggregate(Path.Combine);
InitializeComponent();
MapIconsList.Images.Add(pictureBox1.Image);
}