ערכתי לאחרונה בתאריך 03.12.07 בשעה 07:51 בברכה, Limp Bizkit
ובכלל, הקוד שכתבת לא תקין, וכמובן לא תואם את המטרה הסופית שלךאני ממליץ לך להשתמש ל-if/else מסורבלים בפקודה switch
תקלוט את המחרוזת שאתה רוצה לתוך str :
string str; str = Console.ReadLine();
|
ותשתמש בזה בצורה הבאה :
switch (str) { case "start": this.button1.Enabled = false; this.button2.Enabled = true; break; case "end": this.button2.Enabled = false; this.button1.Enabled = true; break; default: this.button1.Enabled = false; this.button2.Enabled = false; break; }
|

Ask any racer, any real racer. It doesn't matter if you win by an inch or a mile; winning's
winning.