Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DGV_Systems_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         CMS_Systems.Show(DGV_Systems, e.Location);
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DGV_Systems_MouseUp_1(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         try
         {
             DataGridView.HitTestInfo hti = DGV_Systems.HitTest(e.X, e.Y);
             if (hti.RowIndex >= 0)
             {
                 CMS_Systems.Show(DGV_Systems, e.Location);
             }
         }
         catch (Exception lEx) { }
     }
 }