示例#1
0
 /// <summary>
 /// Функция показывающая информацию о выбранном TestCase
 /// </summary>
 private void ShowToolTip(CheckedListBox checkedListBox, List <ITestCase> testCaseList)
 {
     nToolTipIndex = checkedListBox.IndexFromPoint(checkedListBox.PointToClient(MousePosition));
     if (nToolTipIndex > -1)
     {
         TestCaseInfoForm testCaseInfoForm = new TestCaseInfoForm(testCaseList, nToolTipIndex);
         testCaseInfoForm.ShowDialog();
     }
 }
示例#2
0
        private void clbQueriesTestCases_MouseMove(object sender, MouseEventArgs e)
        {
            if (nToolTipIndex != clbQueriesTestCases.IndexFromPoint(e.Location))
            {
                nToolTipIndex = clbQueriesTestCases.IndexFromPoint(clbQueriesTestCases.PointToClient(MousePosition));
                if (nToolTipIndex > -1)
                {
                    System.Drawing.Point p = PointToClient(MousePosition);

                    if (this.clbQueriesTestCases.GetItemChecked(nToolTipIndex))
                    {
                        if (e.Button == System.Windows.Forms.MouseButtons.Right)
                        {
                            TestCaseInfoForm info = new TestCaseInfoForm(testCaseListFor_clbQueriesTestCases, clbQueriesTestCases.SelectedIndex);
                            info.ShowDialog();
                        }
                    }
                }
            }
        }