ATMLCommonLibrary.controls.hardware.HardwareItemDescriptionControl.TestTab C# (CSharp) Method

TestTab() private method

private TestTab ( Point pt ) : int
pt Point
return int
        private int TestTab( Point pt )
        {
            int idx = -1;
            for ( int i = 0; i<tabPanelControl.TabPages.Count; i++ )
            {
                try
                {
                    if (tabPanelControl.GetTabRect(i).Contains(pt))
                    {
                        idx = i;
                    }
                }
                catch (Exception e)
                {
                    /* */
                    Console.WriteLine( e.StackTrace );
                }
            }
            return idx;
        }