Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ///////////////////////////////////////////////////////////////////////////////
            string Baglan_Db   = "datasource=localhost;port=3306;username=root;password=;";
            string Veri_Gönder = "INSERT INTO siparis_takip.ticket(muster_ID,Siparis_No,Ad_Soyad,Eposta,Mesaj) VALUES('" + Yetkili_Giris.ID + "','" + this.txt_siparisno.Text + "','" + this.txt_adsoyad.Text + "','" + this.txt_eposta.Text + "','" + this.txt_mesaj.Text + "') ;";
            ///////////////////////////////////////////////////////////////////////////////

            MySqlConnection Db          = new MySqlConnection(Baglan_Db);
            MySqlCommand    cmdDatabase = new MySqlCommand(Veri_Gönder, Db);
            MySqlDataReader DataReader;

            try
            {
                if (txt_siparisno.Text == "" || txt_adsoyad.Text == "" || txt_eposta.Text == "" || txt_mesaj.Text == "")
                {
                    MessageBox.Show("Lütfen Boş Alan Bırakmayınız");
                    Db.Close();
                }
                else
                {
                    Db.Open();
                    DataReader = cmdDatabase.ExecuteReader();
                    MessageBox.Show("Mesajınız İletilmiştir.");
                    Yetkili_Giris gecisyap = new Yetkili_Giris();
                    this.Hide();
                    gecisyap.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Yetkili_Giris panel = new Yetkili_Giris();

            this.Hide();
            panel.Show();
        }
Example #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Tekrar Görüşmek Üzere");
            Yetkili_Giris girisyap = new Yetkili_Giris();

            this.Hide();
            girisyap.Show();
        }
Example #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            string Box_String;
            int    Box_Int;

            Box_String = comboBox1.Text;
            Box_Int    = comboBox1.SelectedIndex;

            ///////////////////////////////////////////////////////////////////////////////
            string Baglan_Db   = "datasource=localhost;port=3306;username=root;password=;";
            string Veri_Gönder = "INSERT INTO siparis_takip.users(Name,Password,Mail,Perm) VALUES('" + this.textBox1.Text + "','" + this.textBox2.Text + "','" + this.textBox4.Text + "','" + Box_Int + "') ;";
            ///////////////////////////////////////////////////////////////////////////////
            MySqlConnection Db          = new MySqlConnection(Baglan_Db);
            MySqlCommand    cmdDatabase = new MySqlCommand(Veri_Gönder, Db);
            MySqlDataReader DataReader;

            try
            {
                if (textBox1.Text == "" || textBox2.Text == "" || textBox4.Text == "")
                {
                    MessageBox.Show("Lütfen Boş Alan Bırakmayınız");
                    Db.Close();
                }
                else
                {
                    Db.Open();
                    DataReader = cmdDatabase.ExecuteReader();
                    MessageBox.Show("Kaydiniz Tamamlanmiştir Giriş Sayfasına Yönlendiriliyorsunuz.", "BİLDİRİ");
                    Yetkili_Giris girisyap = new Yetkili_Giris();
                    this.Hide();
                    girisyap.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }