Пример #1
0
		private void method_14(TabPage page, bool bool_2)
		{
			SelectedPage = page;
		    if (bool_2)
		        SelectedPage.SelectNextControl(null, true, true, true, true);
		    if (TabLayout != TabLayout.SingleLineScrollable) return;
		    var stripBounds = TabStripBounds;
		    stripBounds.Width -= TabStripBounds.Right - class17_0.Bounds.Left;
		    var bounds = page.TabBounds;
		    if (stripBounds.Contains(bounds)) return;
		    var num = 0;
		    if (bounds.Right > stripBounds.Right)
		    {
		        num = bounds.Right - stripBounds.Right + 20;
		    }
		    else if (bounds.Left < stripBounds.Left)
		    {
		        num = bounds.Left - stripBounds.Left - 20;
		    }
		    if (num != 0)
		        method_10(num);
		}