示例#1
0
 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());
     }
 }