예제 #1
0
 private void allSelectedRouters_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         allSelectedRouters.SelectedIndex = allSelectedRouters.IndexFromPoint(e.Location);
         if (allSelectedRouters.SelectedIndex != -1)
         {
             MainContextMenuStrip.Show(Cursor.Position);
         }
     }
 }
예제 #2
0
 public void ShowMainContextMenu(Point pos)
 {
     MainContextMenuStrip.Show((int)pos.X, (int)pos.Y);
 }