devlev
16/05/2008, 17:06
At butonu ile textboxda atılmış olan parayı arttırıyorum ama sol tarftan bir ürün seçip ürünü ver dedirttiğide sadece birkez fiyat düşüyor. sonrasında 25 25 artıyor. nasıl çözebilirim bu sorunu
http://img230.imageshack.us/img230/253/yolllllllllap9.jpg
private: System::Void button3_Click_1(System::Object^ sender, System::EventArgs^ e) {
if (radioButton1->Checked)
toplam +=5;
textBox1->Text=toplam.ToString();
if (radioButton2->Checked)
toplam = (toplam+10);
textBox1->Text=toplam.ToString();
if (radioButton3->Checked)
toplam +=25;
textBox1->Text=toplam.ToString();
if (radioButton4->Checked)
toplam +=50;
textBox1->Text=toplam.ToString();
if (radioButton5->Checked)
toplam +=100;
textBox1->Text=toplam.ToString();
}
private: System::Void button1_Click_1(System::Object^ sender, System::EventArgs^ e) {
////////////// 25 YKr
int x;
if (((radioButton6->Checked)|| (radioButton9->Checked)|| (radioButton12->Checked)||
(radioButton13->Checked)|| (radioButton14->Checked)|| (radioButton20->Checked)||
(radioButton21->Checked))&& (toplam>=25)){
pictureBox1->Image=ımageList1->Images[0];
x=toplam-25;
//textBox1->Text=x.ToString();
}
//////////50 YKr
else if ( ((radioButton7->Checked)||
(radioButton8->Checked)||
(radioButton10->Checked)||
(radioButton15->Checked)||
(radioButton17->Checked)||
(radioButton18->Checked))&& (toplam>=50)){
pictureBox1->Image=ımageList1->Images[1];
x=toplam-50;
//textBox1->Text=x.ToString();}
////////////75 YKr
else if (
((radioButton11->Checked)||
(radioButton16->Checked)||
(radioButton19->Checked))
&& (toplam>=75)){
pictureBox1->Image=ımageList1->Images[2];
x=toplam-75;
//textBox1->Text=x.ToString();
}
http://img230.imageshack.us/img230/253/yolllllllllap9.jpg
private: System::Void button3_Click_1(System::Object^ sender, System::EventArgs^ e) {
if (radioButton1->Checked)
toplam +=5;
textBox1->Text=toplam.ToString();
if (radioButton2->Checked)
toplam = (toplam+10);
textBox1->Text=toplam.ToString();
if (radioButton3->Checked)
toplam +=25;
textBox1->Text=toplam.ToString();
if (radioButton4->Checked)
toplam +=50;
textBox1->Text=toplam.ToString();
if (radioButton5->Checked)
toplam +=100;
textBox1->Text=toplam.ToString();
}
private: System::Void button1_Click_1(System::Object^ sender, System::EventArgs^ e) {
////////////// 25 YKr
int x;
if (((radioButton6->Checked)|| (radioButton9->Checked)|| (radioButton12->Checked)||
(radioButton13->Checked)|| (radioButton14->Checked)|| (radioButton20->Checked)||
(radioButton21->Checked))&& (toplam>=25)){
pictureBox1->Image=ımageList1->Images[0];
x=toplam-25;
//textBox1->Text=x.ToString();
}
//////////50 YKr
else if ( ((radioButton7->Checked)||
(radioButton8->Checked)||
(radioButton10->Checked)||
(radioButton15->Checked)||
(radioButton17->Checked)||
(radioButton18->Checked))&& (toplam>=50)){
pictureBox1->Image=ımageList1->Images[1];
x=toplam-50;
//textBox1->Text=x.ToString();}
////////////75 YKr
else if (
((radioButton11->Checked)||
(radioButton16->Checked)||
(radioButton19->Checked))
&& (toplam>=75)){
pictureBox1->Image=ımageList1->Images[2];
x=toplam-75;
//textBox1->Text=x.ToString();
}