Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Yetkili_Panel2 siparis = new Yetkili_Panel2();

            this.Hide();
            siparis.Show();
        }
Пример #2
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (txt_silx.Text == "")
     {
         MessageBox.Show("Lütfen Siparis No Giriniz.");
     }
     else
     {
         int gelenden = 0;
         gelenden        = Convert.ToInt32(txt_silx.Text);
         cmd.Connection  = con;
         cmd.CommandText = "delete from siparisler Where Siparis_No=" + txt_silx.Text + " ";
         con.Open();
         cmd.ExecuteNonQuery();
         con.Close();
         MessageBox.Show(gelenden + " " + "Siparis Nolu Siparis Silindi.");
         Yetkili_Panel2 yenile = new Yetkili_Panel2();
         this.Hide();
         yenile.Show();
     }
 }