Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DGV_HTTPRequests_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         try
         {
             DataGridView.HitTestInfo hti = DGV_HTTPRequests.HitTest(e.X, e.Y);
             if (hti.RowIndex >= 0)
             {
                 CMS_HTTPRequests.Show(DGV_HTTPRequests, e.Location);
             }
         }
         catch (Exception lEx)
         {
             PluginParameters.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message));
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DGV_HTTPRequests_MouseDown(object sender, MouseEventArgs e)
        {
            try
            {
                DataGridView.HitTestInfo hti = DGV_HTTPRequests.HitTest(e.X, e.Y);

                if (hti.RowIndex >= 0)
                {
                    DGV_HTTPRequests.ClearSelection();
                    DGV_HTTPRequests.Rows[hti.RowIndex].Selected = true;
                    DGV_HTTPRequests.CurrentCell = DGV_HTTPRequests.Rows[hti.RowIndex].Cells[0];
                }
            }
            catch (Exception lEx)
            {
                PluginParameters.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message));
                DGV_HTTPRequests.ClearSelection();
            }
        }