1 write to viewTabButtons
System.Windows.Forms (1)
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4457
viewTabButtons
= new ToolStripButton[viewTabs.Length];
40 references to viewTabButtons
System.Windows.Forms (40)
winforms\Managed\System\WinForms\PropertyGrid.cs (40)
1269
if (!classesSame && !GetFlag(TabsChanging) && selectedViewTab <
viewTabButtons
.Length) {
1277
if (viewTabs[i].GetType() == tabType &&
viewTabButtons
[i].Visible) {
1278
viewTabButton =
viewTabButtons
[i];
1288
showEvents =
viewTabButtons
[EVENTS].Visible;
1363
if (nButton < viewTabs.Length && (nButton == PROPERTIES ||
viewTabButtons
[nButton].Visible)) {
1364
SelectViewTabButton(
viewTabButtons
[nButton], true);
2394
Debug.Assert(viewTabs.Length == viewTabScopes.Length && viewTabScopes.Length ==
viewTabButtons
.Length,"Uh oh, tab arrays aren't all the same length! tabs=" + viewTabs.Length.ToString(CultureInfo.InvariantCulture) + ", scopes=" + viewTabScopes.Length.ToString(CultureInfo.InvariantCulture) + ", buttons=" +
viewTabButtons
.Length.ToString(CultureInfo.InvariantCulture));
2421
if (canExtend !=
viewTabButtons
[i].Visible) {
2422
viewTabButtons
[i].Visible = canExtend;
2424
SelectViewTabButton(
viewTabButtons
[PROPERTIES], true);
4036
if (
viewTabButtons
== null || viewTabs == null || viewTabScopes == null) {
4040
ToolStripButton selectedButton = (selectedViewTab >=0 && selectedViewTab <
viewTabButtons
.Length ?
viewTabButtons
[selectedViewTab] : null);
4107
ToolStripButton selectedButton =
viewTabButtons
[selectedViewTab];
4249
Debug.Assert(
viewTabButtons
!= null, "No view tab buttons to select!");
4264
if (selectedViewTab >= 0 && selectedViewTab >=
viewTabButtons
.Length) {
4269
if (selectedViewTab >=0 && selectedViewTab <
viewTabButtons
.Length &&
4270
button ==
viewTabButtons
[selectedViewTab]) {
4271
viewTabButtons
[selectedViewTab].Checked = true;
4279
viewTabButtons
[selectedViewTab].Checked = false;
4284
for (int i = 0; i <
viewTabButtons
.Length; i++) {
4285
if (
viewTabButtons
[i] == button) {
4287
viewTabButtons
[i].Checked = true;
4302
SelectViewTabButton(
viewTabButtons
[PROPERTIES], false);
4338
OnViewTabButtonClick(
viewTabButtons
[tab], EventArgs.Empty);
4466
viewTabButtons
[i] = CreatePushButton(viewTabs[i].TabName, AddImage(b), ehViewTab, true);
4468
buttonList.Add(
viewTabButtons
[i]);
4540
Debug.Assert(
viewTabButtons
!= null &&
viewTabButtons
.Length > EVENTS &&
viewTabButtons
[EVENTS] != null, "Events button is not at EVENTS position");
4541
viewTabButtons
[EVENTS].Visible = value;
4543
SelectViewTabButton(
viewTabButtons
[PROPERTIES], true);
4678
if (
viewTabButtons
!= null) {
4680
for(int i=1; i <
viewTabButtons
.Length; i++) { // Starts at index 1, since index 0 is properties-view
4681
if (
viewTabButtons
[i].Visible) {
4686
viewTabButtons
[PROPERTIES].Visible = true;
4690
viewTabButtons
[PROPERTIES].Visible = false;
5006
if (viewTabs[i].GetType().FullName == tabTypeName &&
viewTabButtons
[i].Visible) {
5007
SelectViewTabButtonDefault(
viewTabButtons
[i]);