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); } }
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); } }
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(); } }
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 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(); } }