Esempio n. 1
0
 private void siteLB_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         DoDragDrop(siteLB.SelectedItem, DragDropEffects.Move);
     }
     if (e.Button == MouseButtons.Right)
     {
         AddSiteMarker asm = new AddSiteMarker(this, siteLB.SelectedItem as Site);
         asm.ShowDialog();
         //siteLB.PointToClient(new Point(e.X, e.Y))
     }
     MAJTreeView();
 }
Esempio n. 2
0
 private void gmapWinPrincipale_OnMarkerClick(GMapMarker item, MouseEventArgs e)
 {
     if (VoyageEnCours != null)
     {
         Site site = null;
         if (e.Button == MouseButtons.Right)
         {
             foreach (Site s in lSite)
             {
                 writeDebug("" + s);
                 if (s.Position.Lat == item.Position.Lat && s.Position.Longitude == item.Position.Lng)
                 {
                     site = s;
                     writeDebug("Trouver");
                 }
             }
             AddSiteMarker asm = new AddSiteMarker(this, site);
             asm.ShowDialog();
         }
         MAJTreeView();
     }
 }