Example #1
0
        private void btnVazgec_Click(object sender, EventArgs e)
        {
            frmozel fst = (frmozel)Application.OpenForms["frmozel"];

            fst.Temizle();
            this.Close();
        }
        private void ekTanımlarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmozel foz = new frmozel();

            Gizle();
            foz.MdiParent = this;
            foz.Show();
        }
Example #3
0
        private void btnYeniKaydet_Click(object sender, EventArgs e)
        {
            SqlClass   bgl   = new SqlClass();
            SqlCommand komut = new SqlCommand();

            komut.Connection  = bgl.baglanti();
            komut.CommandText = "INSERT INTO TblOzel(kadirgecesi,bayramnamazi) VALUES ('" + kadirgecesi.Text + "','" + bayramnamazi.Text + "') ";
            komut.ExecuteNonQuery();


            MessageBox.Show("Kayıt İşlemi Tamamlandı ! ", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
            frmozel fst = (frmozel)Application.OpenForms["frmozel"];

            fst.listele();
            fst.Temizle();
            this.Close();
        }
Example #4
0
        private void btnGuncelleKaydet_Click(object sender, EventArgs e)
        {
            if (id.Text == "")                                                                                                //tüm text alanları boş geçilirse
            {
                MessageBox.Show("Boş Alan Bırakmayınız", "Hata:Güvenlik Sorunu", MessageBoxButtons.OK, MessageBoxIcon.Error); //uyarı mesajı verdir
            }
            else

            {
                SqlClass   bgl   = new SqlClass();
                SqlCommand komut = new SqlCommand();
                komut.Connection  = bgl.baglanti();
                komut.CommandText = "UPDATE TblOzel SET kadirgecesi='" + kadirgecesi.Text + "',bayramnamazi='" + bayramnamazi.Text + "'WHERE id=" + id.Text + "";
                komut.ExecuteNonQuery();
                MessageBox.Show("**GÜNCELLENDİ**");
                frmozel fst = (frmozel)Application.OpenForms["frmozel"];
                fst.listele();
                fst.Temizle();
                this.Close();
            }
        }