Пример #1
0
 private void AddPushpin()
 {
     MapPushpinForm pushpinForm =
         new MapPushpinForm(_mapForm, _mapControl.PointToScreen(new Point(_event.X, _event.Y)),
                            new MapPushpinEditedHandler(_mapPushpinAddedHandler));
     pushpinForm.Show();
     pushpinForm.FloatAboveOwner(_mapForm);
 }
Пример #2
0
 private void EditPushpin()
 {
     VEPushpin pushpin = _mapControl.GetPushpin(_pushpinId);
     if (pushpin != null)
     {
         MapPushpinInfo pushpinInfo = new MapPushpinInfo(pushpin.Title);
         pushpinInfo.Notes = pushpin.Details;
         pushpinInfo.MoreInfoUrl = pushpin.MoreInfoUrl;
         pushpinInfo.PhotoUrl = pushpin.PhotoUrl;
         MapPushpinForm pushpinForm =
             new MapPushpinForm(_mapForm, _mapControl.PointToScreen(new Point(_event.X, _event.Y)),
                                new MapPushpinEditedHandler(_mapPushpinEditedHandler), pushpinInfo);
         pushpinForm.Show();
         pushpinForm.FloatAboveOwner(_mapForm);
     }
 }