22 Aralık 2018 Cumartesi

c# Form ile lokanta uygulaması yapmak !

Merhaba arkadaşlar bugün c# Form ile lokanta uygulaması yapacağız;

İlk önce form'un loadına her yerde tanınıcak bir int hesap değeri açıyoruz.


Ardından checkBox ve radioButton açıyoruz.




 private void checkBox3_CheckedChanged(object sender, EventArgs e)
        {
            hesap = hesap + 7;
        }


private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            hesap = hesap + 0;
        }




private void button1_Click(object sender, EventArgs e)
        {
            label1.Text = hesap.ToString();
        }




Hiç yorum yok:

Yorum Gönder

c# Veritabanıyla giriş yapıp, üye olmak ve şifre unutmak!

Üye olmak;;;  if (con.State == ConnectionState.Closed)             {                 con.Open();                 string kayit = ...