Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            bag      = build.ToString();
            baglanti = new MySqlConnection(bag);

            try
            {
                if (baglanti.State == ConnectionState.Closed)
                {
                    baglanti.Open();
                }
            }
            catch
            {
                MessageBox.Show("Veritabanı bağlantısı oluşturulamadı.", "Hata Mesajı");
            }
            if (baglanti.State == ConnectionState.Open)
            {
                AddForm frmAdd = new AddForm();

                frmAdd.Show();

                this.Hide();
            }
        }
Beispiel #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            AddForm frm_add = new AddForm();

            frm_add.Show();
        }
Beispiel #3
0
        private void Add_Click(object sender, EventArgs e)
        {
            AddForm frm_add = new AddForm();

            frm_add.Show();
        }