Пример #1
0
 private void EhLayerToolbar_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (null != m_Ctrl)
     {
         if (e.Button == MouseButtons.Right)
         {
             Point pt = new Point(e.X, e.Y);
             for (int i = 0; i < m_LayerToolbar.Buttons.Count; i++)
             {
                 if (m_LayerToolbar.Buttons[i].Rectangle.Contains(pt))
                 {
                     m_Ctrl.EhView_ShowDataContextMenu(i, this, pt);
                     return;
                 }
             }
         }
     }
 }