private void barButtonItem15_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (oif1 == null || oif1.IsDisposed) { //Eğer oif formu açılmamışsa veya sekmesi açılıp kapanmışsa oif1 = new OyuncuIslemForm(); // oif1 adında yeni bir nesne türet; oif1.MdiParent = this; // ve türettiğin nesneyi bulunduğumuz ekrana getir. oif1.Show(); } }
private void simpleButton2_Click(object sender, EventArgs e) { if (VarMi(txt_Tcno.Text) != 0) { MessageBox.Show("Bu TC numara ile daha önce kayıt yapılmış."); } else { vt.baglanti.Open(); EkleOyuncuBilgi(); EkleOyuncuİletisimBilgi(); EkleKisiselBilgiler(); XtraMessageBox.Show("Kayıt Başarılı", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); vt.baglanti.Close(); OyuncuIslemForm of = new OyuncuIslemForm(); of.Listele(); vt.baglanti.Close(); } }