예제 #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();
 }
예제 #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);
     }
 }
예제 #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);
            }
        }
예제 #4
0
파일: frmMain.cs 프로젝트: Venseer/tools
        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();
            }
        }
예제 #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();
        }
예제 #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();
            }
        }