Devlet Yardımı Programı C#

Devlet Yardımı Programı C#

yardm

[code language=”VB.NET”]
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
ArrayList kisiler = new ArrayList();
private void button2_Click(object sender, EventArgs e)
{
int maas, Cocuk_Sayisi, yardım;

try
{
maas = int.Parse(textBox1.Text);
}
catch
{
MessageBox.Show("Maaş için geçersiz sayı girilmiş");
return;
}

if (checkBox1.Checked == false)

yardım = 0;
else
{
try
{
Cocuk_Sayisi = int.Parse(textBox2.Text);
}
catch
{
MessageBox.Show("Çocuk Sayısı için geçersiz sayı girilmiş");
return;
}
if (Cocuk_Sayisi > 2)
Cocuk_Sayisi = 2;
if (checkBox2.Checked == true)

yardım = Cocuk_Sayisi * 50 * maas;
else

yardım = Cocuk_Sayisi * 50 * maas + 300 * maas;

}
MessageBox.Show("yardım" + yardım.ToString("###-###") + " TL dir");
}

private void button1_Click(object sender, EventArgs e)
{
kisiler.Add(textBox3.Text);
kisiler.Add(textBox4.Text);
}

private void button3_Click(object sender, EventArgs e)
{
listBox1.Items.Add(textBox3.Text + " " + textBox4.Text);
}

private void button4_Click(object sender, EventArgs e)
{
listBox1.Items.Remove(listBox1.Text);
}

private void button5_Click(object sender, EventArgs e)
{
Close();

}

private void textBox3_Leave(object sender, EventArgs e)
{
textBox3.Text = textBox3.Text.ToUpper();

}

private void textBox4_Leave(object sender, EventArgs e)
{
textBox4.Text = textBox4.Text.ToUpper();
}
}[/code]

Projeyi İNDİR

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir