Exemplo n.º 1
0
        private void button7_Click(object sender, EventArgs e)
        {
            Kasa fr = new Kasa();

            fr.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            baglan.Open();
            if (textBox4.Text != "" && textBox1.Text != "")
            {
                SqlCommand komut12 = new SqlCommand("insert into Kasa (Diğer,Faturalar,Tarih,Ücret) values ('" + label10.Text + "','" + textBox4.Text + "','" + dateTimePicker1.Text.ToString() + "','" + textBox1.Text + "')", baglan);

                komut12.ExecuteNonQuery();
                MessageBox.Show("Fatura İşlemi Kasaya Başarıyla İşlendi");
                baglan.Close();
                Kasa fr = new Kasa();
                fr.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Lütfen Eklemek İstediğiniz Alanları Boş Bırakmayınız");
                baglan.Close();
            }
        }