• Giriş

Gorsel Programlama

  • AnaSayfa
  • Hakkımızda
  • TOP-10 Proje
  • Download
  • Özel Ders
  • Reklam Verin
  • Destek
  • İletişim
RSS feed
  • Youdao
  • Xian Guo
  • Zhua Xia
  • Google
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha
© 2009-2024 Gorsel Programlama

Uçak Bileti Satış Programı C#

Uçak Bileti Satış Programı C#

bilet

FORM1 İçerisine Yazılıcak Kodlar
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form2 frm = new Form2();
frm.Show();
this.Hide();

}

private void timer1_Tick(object sender, EventArgs e)
{
if (pictureBox1.Right <= panel1.Left )
{

Random r1 = new Random();
int i = 0;
int[] resim = new int[5];

for (i = 0; i <= 4; i++)
{
resim[i] = r1.Next(1, 15);

}
pictureBox1.Left = pictureBox1.Left + resim[0];

}
else
{
timer1.Enabled = false;
}
}

private void Form1_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
}
}
FORM2'nin İçerisine Yazılacak KODLAR
public partial class Form2 : Form
{
int i, x = 18;
public Form2()
{
InitializeComponent();
}

private void Form2_Load(object sender, EventArgs e)
{
this.button1.BackColor = System.Drawing.Color.White;
this.button2.BackColor = System.Drawing.Color.White;
this.button3.BackColor = System.Drawing.Color.White;
this.button4.BackColor = System.Drawing.Color.White;
this.button5.BackColor = System.Drawing.Color.White;
this.button6.BackColor = System.Drawing.Color.White;
this.button7.BackColor = System.Drawing.Color.White;
this.button8.BackColor = System.Drawing.Color.White;
this.button9.BackColor = System.Drawing.Color.White;
this.button10.BackColor = System.Drawing.Color.White;
this.button11.BackColor = System.Drawing.Color.White;
this.button12.BackColor = System.Drawing.Color.White;
this.button13.BackColor = System.Drawing.Color.White;
this.button14.BackColor = System.Drawing.Color.White;
this.button15.BackColor = System.Drawing.Color.White;
this.button16.BackColor = System.Drawing.Color.White;
this.button17.BackColor = System.Drawing.Color.White;
this.button18.BackColor = System.Drawing.Color.White;

timer1.Enabled = true;

}

private void button1_Click(object sender, EventArgs e)
{

if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button1.BackColor = System.Drawing.Color.White;

}
else
{
button1.Text = textBox1.Text + " " + textBox2.Text;
this.button1.BackColor = System.Drawing.Color.Blue;
button1.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();

}
}

private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button2.BackColor = System.Drawing.Color.White;

}
else
{
button2.Text = textBox1.Text + " " + textBox2.Text;
this.button2.BackColor = System.Drawing.Color.Blue;
button2.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}
private void button3_Click(object sender, EventArgs e)
{

if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button3.BackColor = System.Drawing.Color.White;

}
else
{
button3.Text = textBox1.Text + " " + textBox2.Text;
this.button3.BackColor = System.Drawing.Color.Blue;
button3.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button4_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button4.BackColor = System.Drawing.Color.White;

}
else
{
button4.Text = textBox1.Text + " " + textBox2.Text;
this.button4.BackColor = System.Drawing.Color.Blue;
button4.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button5_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button5.BackColor = System.Drawing.Color.White;

}
else
{
button5.Text = textBox1.Text + " " + textBox2.Text;
this.button5.BackColor = System.Drawing.Color.Blue;
button5.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button6_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button6.BackColor = System.Drawing.Color.White;

}
else
{
button6.Text = textBox1.Text + " " + textBox2.Text;
this.button6.BackColor = System.Drawing.Color.Blue;
button6.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button7_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button7.BackColor = System.Drawing.Color.White;

}
else
{
button7.Text = textBox1.Text + " " + textBox2.Text;
this.button7.BackColor = System.Drawing.Color.Blue;
button7.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button8_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button8.BackColor = System.Drawing.Color.White;

}
else
{
button8.Text = textBox1.Text + " " + textBox2.Text;
this.button8.BackColor = System.Drawing.Color.Blue;
button8.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button9_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button9.BackColor = System.Drawing.Color.White;

}
else
{
button9.Text = textBox1.Text + " " + textBox2.Text;
this.button9.BackColor = System.Drawing.Color.Blue;
button9.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button10_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button10.BackColor = System.Drawing.Color.White;

}
else
{
button10.Text = textBox1.Text + " " + textBox2.Text;
this.button10.BackColor = System.Drawing.Color.Blue;
button10.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button11_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button11.BackColor = System.Drawing.Color.White;

}
else
{
button11.Text = textBox1.Text + " " + textBox2.Text;
this.button11.BackColor = System.Drawing.Color.Blue;
button11.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button12_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button12.BackColor = System.Drawing.Color.White;

}
else
{
button12.Text = textBox1.Text + " " + textBox2.Text;
this.button12.BackColor = System.Drawing.Color.Blue;
button12.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button13_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button13.BackColor = System.Drawing.Color.White;

}
else
{
button13.Text = textBox1.Text + " " + textBox2.Text;
this.button13.BackColor = System.Drawing.Color.Blue;
button13.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button14_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button14.BackColor = System.Drawing.Color.White;

}
else
{
button14.Text = textBox1.Text + " " + textBox2.Text;
this.button14.BackColor = System.Drawing.Color.Blue;
button14.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button15_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button15.BackColor = System.Drawing.Color.White;

}
else
{
button15.Text = textBox1.Text + " " + textBox2.Text;
this.button15.BackColor = System.Drawing.Color.Blue;
button15.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button16_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button16.BackColor = System.Drawing.Color.White;

}
else
{
button16.Text = textBox1.Text + " " + textBox2.Text;
this.button16.BackColor = System.Drawing.Color.Blue;
button16.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button17_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button17.BackColor = System.Drawing.Color.White;

}
else
{
button17.Text = textBox1.Text + " " + textBox2.Text;
this.button17.BackColor = System.Drawing.Color.Blue;
button17.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void button18_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("boş kaldı");
this.button18.BackColor = System.Drawing.Color.White;

}
else
{
button18.Text = textBox1.Text + " " + textBox2.Text;
this.button18.BackColor = System.Drawing.Color.Blue;
button18.Enabled = false;
textBox1.Text = "";
textBox2.Text = "";
i++;
x--;
label3.Text = "Dolu: " + i.ToString();
label4.Text = "Boş: " + x.ToString();
}
}

private void pictureBox3_Click(object sender, EventArgs e)
{

}

private void label3_Click(object sender, EventArgs e)
{

}

private void timer1_Tick(object sender, EventArgs e)
{
if (pictureBox3.Right <= panel1.Left &amp;amp;&amp;amp; pictureBox4.Right <= panel2.Left)
{

Random r1 = new Random(); // random ile değişkenler
int i = 0;
int[] resim = new int[5];  // değişkenimiz 5 kadar

for (i = 0; i <= 4; i++)  // for döngüsü sokuyoruz
{
resim[i] = r1.Next(1, 15); // resimlerin hareketi

}
pictureBox3.Left = pictureBox3.Left + resim[0];
pictureBox4.Left = pictureBox4.Left + resim[1];

}
else
{
timer1.Enabled = false;
}
}

}


Projeyi İNDİR

Paylaş :
Tweet
Yorum Yazın | Geri
2 Mart Salı,2010 Tarihinde Yayınlanmıştır. Bulunduğu Kategori : C#, Görsel Programlama
Etiket: C#, C#.net uygulamaları, Uçak Bileti Satış Programı C#.NET(C.NET), Uçak Bileti takip programı
« Basit Bir Müzik Çalar C# Girilen Sayının Tek mi ? Çift mi ? Olduğunu Bulma C# »
  1. osman Temirhan
    Cevap | Gönder
    Eyl 18th, 2011 at 13:02 | #1

    Mehaba
    Bana bu programini test olarak yollaya bilirmisiniz.
    Kendim musterilerime ucak bileti ve otel reservasyonlari kesiyorum.
    Tsk
    Osman temirhan

  2. admin
    Cevap | Gönder
    Eyl 20th, 2011 at 17:13 | #2

    Yukarıdan kodlarını alıp kullanabilirsin.Programın kendisini bilgisayarımda bulamadım.Silmişim galiba.

Yorum Yazın ...

Cevabı İptal
XHTML: Bu Etiketleri Kullanabilirsiniz : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
RSS Bu Yazıya Yapılan Yorumlar


Site içi Arama

Takip et: @GorselProgram







Böyle bir web sayfam olsun diyorsanız iletişim bölümünden veya gorselprogram@gmail.com mail adresinden bize ulaşabilirsiniz.

Son Yazılar

  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı bilgisayar tasarım uygulamaları dersi 1.dönem 1.sınav soruları ve cevap anahtarı

Etiket Bulutu

.NET Application basit C# C#.NET application C#.NET codes C#.NET examples C#.NET lessons C#.NET practice C#.net örnekleri c# console dersleri c# console örnekleri C# ders c# dersleri c# örnek c# örnekleri C.net dersleri c dersleri code console console örnekleri Csharp csharp dersleri csharp net csharp örnekleri c örnekleri download Flash örnekleri forms Forms örnekleri full indir kod kodlar nesne tabanlı programlama OleDbConnection OleDbDataAdapter tam sürüm uygulama vb net win windows windows forms application örnek ücretsiz

Kategoriler

  • Access (59)
  • Akış Diyagramı Flowchart (69)
  • Android Eğitimleri (2)
  • Asp Net (47)
  • C# (834)
  • C# Console (222)
  • Css (19)
  • Dersler (191)
  • Dökümanlar (21)
  • Dreamweaver (12)
  • Excel (8)
  • Fireworks (28)
  • Flash (77)
  • Görsel Programlama (421)
  • GorselProgramlama.Com (8)
  • Html (35)
  • Pascal (2)
  • Photoshop (5)
  • PHP (2)
  • Planlar (114)
  • Programlama Tanım (4)
  • Sınavlar (147)
  • Sql (10)
  • VB 6.0 (45)
  • VB.NET (219)
  • Videolar (65)
  • Word (7)

Arşiv

Bağlantılar

  • Html Dersleri
  • Muslu.NET
  • Programlama Dersleri

Kimler Sitede ?


    Computers Blogs Top programming blogs

   sayaç Powered by WordPress | Theme by NeoEase | Valid XHTML 1.1 and CSS 3 Yukarı