0001 //部分控件代码
0002 int ask = 0;
///////////////////////////
0027 private: System::Void button1_Click(System::Object^ sender, System::EventArgs^
0028 e) {
0029
0030 //"诗改编词"
0031 this->button1 ->Visible =true;
0032 this->button1 ->Enabled =false;
0033
0034 this->button2 ->Visible =true;
0035 this->button2 ->Enabled =false;
0036
0037 this->button3 ->Visible =true;//请问牧童
0038 this->button4 ->Visible =true;//请问酒家
0039
0040 this->button5 ->Visible =false;
0041 this->button6 ->Visible =false;
0042 this->button7 ->Visible =false;
0043 this->button8 ->Visible =false;
0044 this->button9 ->Visible =false;
0045 this->button10 ->Visible =false;
0046
0047 this->button11 ->Visible =false;
0048 this->button12 ->Visible =false;
0049 this->button13 ->Visible =false;
0050 this->button14 ->Visible =false;
0051
0052
0053 }
0054 private: System::Void button3_Click(System::Object^ sender, System::EventArgs^
0055 e) {
0056
0057 //改编诗为"请问牧童"
0058 this->button1 ->Visible =true;
0059 this->button1 ->Enabled =false;
0060
0061 this->button2 ->Visible =true;
0062 this->button2 ->Enabled =false;
0063
0064 this->button3 ->Visible =true;
0065 this->button3 ->Enabled =false;
0066
0067 this->button4 ->Visible =false;
0068 this->button4 ->Enabled =false;
0069
0070 this->button5 ->Visible =true;//下一个按钮
0071 this->button6 ->Visible =false;
0072 this->button7 ->Visible =false;
0073 this->button8 ->Visible =false;
0074 this->button9 ->Visible =false;
0075 this->button10 ->Visible =false;
0076 this->button11 ->Visible =false;
0077 this->button12 ->Visible =false;
0078 this->button13 ->Visible =false;
0079 this->button14 ->Visible =false;
0080
0081 ask = 1;//确定值
0082
0083 }
/////////////////////////////
0114 private: System::Void button5_Click(System::Object^ sender, System::EventArgs^
0115 e) {
0116
0117 //"清明时节雨"
0118 this->button1 ->Visible =true;
0119 this->button1 ->Enabled =false;
0120
0121 this->button2 ->Visible =true;
0122 this->button2 ->Enabled =false;
0123 switch(ask)
0124 {
0125 case 1: this->button3 ->Visible =true;
0126 this->button3 ->Enabled =false;
0127 this->button4 ->Visible =false;
0128 this->button4 ->Enabled =false;
0129 break;
0130 case 2: this->button3 ->Visible =false;
0131 this->button3 ->Enabled =false;
0132 this->button4 ->Visible =true;
0133 this->button4 ->Enabled =false;
0134 }
0135
0136 this->button5 ->Visible =false;
0137 this->button6 ->Visible =true;//下一个按钮
0138 this->button7 ->Visible =false;
0139 this->button8 ->Visible =false;
0140 this->button9 ->Visible =false;
0141 this->button10 ->Visible =false;
0142 this->button11 ->Visible =false;
0143 this->button12 ->Visible =false;
0144 this->button13 ->Visible =false;
0145 this->button14 ->Visible =false;
0146
0147
0148 }
/////////////////////////
0470 private: System::Void button14_Click(System::Object^ sender, System::EventArgs^
0471 e) {
0472
0473 //"牧童遥指杏花村"
0474 this->button1 ->Visible =true;
0475 this->button1 ->Enabled =false;
0476
0477 this->button2 ->Visible =true;
0478 this->button2 ->Enabled =false;
0479
0480 this->button3 ->Visible =true;//请问牧童
0481 this->button3 ->Enabled =true;
0482
0483 this->button4 ->Visible =true;//请问酒家
0484 this->button4 ->Enabled =true;
0485
0486 this->button5 ->Visible =false;
0487 this->button6 ->Visible =false;
0488 this->button7 ->Visible =false;
0489 this->button8 ->Visible =false;
0490 this->button9 ->Visible =false;
0491 this->button10 ->Visible =false;
0492 this->button11 ->Visible =false;
0493 this->button12 ->Visible =false;
0494 this->button13 ->Visible =false;
0495 this->button14 ->Visible =false;
0496
0497 switch (ask)
0498 {
0499 case 1: 牧童遥指杏花村
0500 break;
0501 case 2: //牧童遥指杏花村
0502
0503 }
0504
0505 ask = 0;//值清零
0506 }