Ejemplo n.º 1
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();
 }
Ejemplo n.º 2
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);
     }
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
            }
        }