private void GoBackButton_Click(object sender, EventArgs e) { payment pym = new payment(); this.Hide(); pym.Show(); }
private void ode_Click(object sender, EventArgs e) { if (Amount == 0) { MessageBox.Show("Sepetiniz Boş", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { if (!Sbilgi.Equals("")) { Sbilgi += Environment.NewLine+Environment.NewLine + "Toplam Fiyat : " + TotalTutar + " Toplam Ağırlık : " + TotalAgirlik; kmt.Connection = connect.baglan(); kmt.CommandText = "INSERT INTO `siparisbilgi` ( `KullaniciAdi`,`tarih`, `Adres`,`SiparisBilgi`) VALUES( '" + KullaniciGİris.ad + "', '" + tarihlabel.Text + "', '" + KullaniciGİris.adres + "','" + Sbilgi + "')"; object sonuc = null; sonuc = kmt.ExecuteNonQuery(); kmt.Connection = connect.kapat(); } this.Hide(); payment py = new payment(); py.Show(); } }