Displaying map theater name in open/save dialogs

This commit is contained in:
katzsmile
2010-09-15 23:19:15 +04:00
committed by Paul Chote
parent d809fb1e7b
commit 36ba15e7f9

View File

@@ -5,6 +5,7 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using OpenRA.FileFormats;
using System.Windows.Forms; using System.Windows.Forms;
using System.IO; using System.IO;
@@ -27,7 +28,9 @@ namespace OpenRA.Editor
{ {
ListViewItem map1 = new ListViewItem(subDirectory.Name); ListViewItem map1 = new ListViewItem(subDirectory.Name);
map1.ImageIndex = 0; map1.ImageIndex = 0;
MapList.Items.Add(map1); MapList.Items.Add(map1);
var map = new Map(new Folder(txtPath.Text + "\\" + subDirectory.Name));
map1.SubItems.Add(map.Theater);
} }
MapList.Items[0].Selected = true; MapList.Items[0].Selected = true;