private void btnAddNewMap_Click(object sender, EventArgs e) { EditMap = new frmEditMap(null, parser, true); EditMap.ShowDialog(); if (EditMap.save) { parser.AddMap(EditMap.Map); lstMaps.SetObjects(parser.GetMaps()); } }
private void lstMaps_MouseDoubleClick(object sender, MouseEventArgs e) { Map map = (Map)lstMaps.SelectedObject; if (map == null) { return; } EditMap = new frmEditMap(map, MapParser, false); EditMap.ShowDialog(); }
private void lstMaps_MouseDoubleClick(object sender, MouseEventArgs e) { Map map = (Map)lstMaps.SelectedObject; if (map == null) return; EditMap = new frmEditMap(map, parser, false); EditMap.ShowDialog(); }
private void lstMaps_MouseDoubleClick_1(object sender, MouseEventArgs e) { Map map = (Map)lstMaps.SelectedObject; if (map == null) return; frmEditMap editmap = new frmEditMap(map, MapParser, false); editmap.ShowDialog(); lstMaps.SelectObjects(null); lstMaps.SelectObjects(Loc.Maps); }