private void geri_Click(object sender, EventArgs e) { this.Hide(); Form9 frm = new Form9(); frm.Show(); }
private void button4_Click(object sender, EventArgs e) { Form9 frm9 = new Form9(); frm9.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (aciklama.Text == "" || toplamBorc.Text == "" || isim.Text == "") { return; } kime = isim.Text; acikla = aciklama.Text; ode = Int32.Parse(odenen.Text); toplam = Int32.Parse(toplamBorc.Text); tarihDeger= tarih.Text.Substring(0,23); OleDbCommand komut; OleDbDataReader oku; DialogResult Sor = MessageBox.Show("Yeni Kayıt Eklensin Mi ?", "Kayıt Ekle", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2); if (Sor == DialogResult.Yes) { try { Baglanti(); komut = new OleDbCommand(); komut.CommandText = "INSERT INTO cari(TARIH,TOPLAM_BORC,ACIKLAMA,ODENEN,KIME)VALUES('" + tarihDeger + "'," + toplam + ",'" + acikla + "'," + ode + ",'" + kime + "');"; komut.Connection = baglanti; oku = komut.ExecuteReader(); } catch (OleDbException ex) { MessageBox.Show(ex.Message); } odenen.Text = ""; toplamBorc.Text = ""; isim.Text = ""; aciklama.Text = ""; this.Hide(); Form9 frm = new Form9(); frm.Show(); } }