private void btnMusteriekle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (Application.OpenForms["MusteriEkle"] == null) { MusteriEkle frm = new MusteriEkle(); frm.MdiParent = this; frm.Show(); } }
private void btnYeniKayit_Click(object sender, EventArgs e) { MusteriEkle frm = new MusteriEkle(); if (Application.OpenForms["MusteriEkle"] == null) { frm.MdiParent = AnaForm.ActiveForm; frm.Show(); } else { this.ActivateMdiChild(Application.OpenForms["MusteriEkle"]); } }