private void lstLocations_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     Location loc = (Location)lstLocations.SelectedObject;
     if (loc == null)
         return;
     frmEditLocation editLoc = new frmEditLocation(loc, MapParser,LocParser,false);
     editLoc.ShowDialog();
 }
 private void btnAddNewLocation_Click(object sender, EventArgs e)
 {
     frmEditLocation editLoc = new frmEditLocation(null, MapParser,LocParser, true);
     editLoc.ShowDialog();
     if (editLoc.Save)
     {
         Locations.Add(editLoc.Loc);
         lstLocations.SetObjects(Locations);
     }
 }
Beispiel #3
0
        private void btnAddNewLocation_Click(object sender, EventArgs e)
        {
            frmEditLocation editLoc = new frmEditLocation(null, MapParser, LocParser, true);

            editLoc.ShowDialog();
            if (editLoc.Save)
            {
                Locations.Add(editLoc.Loc);
                lstLocations.SetObjects(Locations);
            }
        }
Beispiel #4
0
        private void pctWorldMap_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Location Loc = worldmap.GetLocation(Display.PixelToGameCoords(e.X), Display.PixelToGameCoords(e.Y));

            if (Loc != null)
            {
                EditLocation = new frmEditLocation(Loc, worldmap.MapParser, worldmap.LocParser, false);
                EditLocation.ShowDialog();
                pctWorldMap.Refresh();
            }
        }
Beispiel #5
0
        private void lstLocations_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Location loc = (Location)lstLocations.SelectedObject;

            if (loc == null)
            {
                return;
            }
            frmEditLocation editLoc = new frmEditLocation(loc, MapParser, LocParser, false);

            editLoc.ShowDialog();
        }
Beispiel #6
0
        private void pctWorldMap_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Location Loc = worldmap.GetLocation(Display.PixelToGameCoords(e.X), Display.PixelToGameCoords(e.Y));

            if (Loc!=null)
            {
                EditLocation = new frmEditLocation(Loc, worldmap.MapParser, worldmap.LocParser, false);
                EditLocation.ShowDialog();
                pctWorldMap.Refresh();
            }
        }