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(); } }
private void button1_Click_1(object sender, EventArgs e) { AddForm frm_add = new AddForm(); frm_add.Show(); }
private void Add_Click(object sender, EventArgs e) { AddForm frm_add = new AddForm(); frm_add.Show(); }