Banka Kredi Programı C#

[code language=”csharp”]
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
groupBox2.Visible = false; //Açılışta grupbox2 görünmeyecek.
}
private void checkBox1_CheckedChanged(object sender, EventArgs e) //checkBox1 seçilmişse mesaj verilip kişisel tercihlertin doldurulmasını istiyecek.
{
if (checkBox1.Checked == true)
{
MessageBox.Show("Kredi tercihinde bulunduktan sonra kişisel bilgilerinizi doldurunuz.");
groupBox2.Visible = true;
}
else
groupBox2.Visible = false;
}
private void checkBox2_CheckedChanged(object sender, EventArgs e) //eğer checkBox2 seçilmişse kredi verilmiyecektir.
{
checkBox2.Checked = true;
MessageBox.Show("Bankamız kefil olmadan kredi vermemektedir.");
}
private void button1_Click(object sender, EventArgs e)
{
int maas,maas1; //kişi ve kefilin maaş ları 750 tl den az ise kredi vermeyecek.
maas = int.Parse(textBox2.Text);
maas1 = int.Parse(textBox5.Text);
if (maas <= 750)
{
MessageBox.Show("Bankamız maas miktarınız 750 TL az olduğu için kredi vermemektedir.");
}
if (maas1 <= 750)
{
MessageBox.Show("Bankamız kefiliniz maaş miktarının 750 TL az olduğu için kredi vermemektedir.");
}
double sayi1, tutar; //faiz oranını ekleyip kredi tutarını hesaplayacaki.
sayi1 = double.Parse(textBox6.Text);
if (checkBox3.Checked == true)
{
tutar = ((sayi1 * 3 / 100) / 12);
textBox3.Text = tutar.ToString();
}
if(checkBox4.Checked == true)
{
tutar = ((sayi1 * 5 / 100) / 12);
textBox3.Text = tutar.ToString();
}
if(checkBox5.Checked == true)
{
tutar = ((sayi1 * 10 / 100) / 12);
textBox3.Text = tutar.ToString();
}
}
}[/code]
burda sayı1 ne oluyor
değişken.textbox6’nın değeri aktarılıyor. (sayi1 = double.Parse(textBox6.Text);)
Sitemizin Google’da Ön Sıralarda Çıkması İçin Lütfen Google+ Butonuna Tıklayınız , Sayfamızı Facebookta Beğeniniz veya yazıları Twitter,Facebookta paylaşınız.
kodlarda hata var. checkbox2 nin değeri true olduktan sonra false yapamıyoruz. uygulama bu noktada çöküyor sonsuz döngüye giriyor.