Dizziness, C # inexplicably written out a strange code. . . . . .

zhaozj2021-02-16  65

Be a Toolbar ToggleButton picture switch.

Private void TBMain_ButtonClick (Object Sender, ToolbarButtonclicKeventargs E)

{

Switch (E.Button.Text)

{

.

.

.

DEFAULT:

{

IF (E.Button.pushed)

E.Button.ImageIndex = 5;

Else

E.Button.ImageIndex = 6;

Break;

}

}

}

I started thinking, if the button didn't press it, I pressed it, and I wrote E.Button.pushed =! E.Button.pushed, and suddenly found that the button is not moving. . . . . . Do I press the wrong? Change E.Button.pushed = E.Button.pushed, haha, changed it, but how to think that the program is not right. . . . . . Finally, simply remove it: (... stupid

转载请注明原文地址:https://www.9cbs.com/read-16326.html

New Post(0)