using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace telefon
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
button5.Enabled = true;
else
button5.Enabled = false;
}
private void button1_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
listBox1.Items.Add("Galaxsy Note 2");
listBox1.Items.Add("Galaxsy Note 3");
listBox1.Items.Add("Galaxsy S5");
listBox1.Items.Add("Galaxsy Wonder");
}
private void button2_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
listBox1.Items.Add("Lumia 630");
listBox1.Items.Add("Nokıa 6300");
listBox1.Items.Add("Nokıa 3310");
listBox1.Items.Add("Lumıa 1020");
}
private void button3_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
listBox1.Items.Add("Xperia Z1");
listBox1.Items.Add("Xperia M2");
listBox1.Items.Add("Xperia Z3");
listBox1.Items.Add("Xperia T1");
}
private void button4_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
listBox1.Items.Add("İphone 4S");
listBox1.Items.Add("İphone 5S");
listBox1.Items.Add("İphone 6");
listBox1.Items.Add("İphone 6+(plus)");
}
private void button5_Click(object sender, EventArgs e)
{
MessageBox.Show(" Sayın" + textBox1.Text + " seçtiginiz " + listBox1.SelectedItem + " adlı telefonu " + textBox2.Text + " kayıtlı adrese göderdik " + "İyi Gülerde Kullanın");
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
Hiç yorum yok:
Yorum Gönder