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

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