Пример #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());
     }
 }
Пример #2
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());
     }
 }
Пример #3
0
        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();
        }
Пример #4
0
 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();
 }
Пример #5
0
        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);
        }