c#

Visual Studio C#
ÖRNEKLER VE UYGULAMALARI İNCEYELEBİLİRSİNİZ

int basla, bitis;

private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked)
{
basla = Convert.ToInt32(textBox3.Text);
bitis = Convert.ToInt32(textBox4.Text);
if (radioButton1.Checked) timer1.Enabled = true;
if (radioButton2.Checked) timer2.Enabled = true;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
timer2.Enabled = false; ;
if (basla == bitis) { timer1.Enabled = false; checkBox1.Checked = false; }
label5.Text = basla.ToString();
basla++;
}

private void timer2_Tick(object sender, EventArgs e)
{
timer1.Enabled = false;
if (basla == bitis) { timer2.Enabled = false; checkBox1.Checked = false; }
label5.Text = basla.ToString();
basla–;
}



private void button3_Click(object sender, EventArgs e)
{
string sonuc = “”;
if (radioButton4.Checked) sonuc += “Cinsiyet: Kadın” + Environment.NewLine;
if (radioButton3.Checked) sonuc += “Cinsiyet: Erkek” + Environment.NewLine;
if (radioButton6.Checked) sonuc += “Ehliyet: Var” + Environment.NewLine;
if (radioButton5.Checked) sonuc += “Ehliyet: Yok” + Environment.NewLine;
if (radioButton8.Checked) sonuc += “Eğitim: Lise” + Environment.NewLine;

if (radioButton7.Checked) sonuc += “Eğitim: Yüksekokul” + Environment.NewLine;
if (radioButton10.Checked) sonuc += “Eğitim: Lisans” + Environment.NewLine;
if (radioButton9.Checked) sonuc += “Eğitim: Lisansüstü” + Environment.NewLine;

MessageBox.Show(sonuc);
}