private void öğrenciEklemeToolStripMenuItem_Click(object sender, EventArgs e) { frmOgrenciler frm = frmOgrenciler.GetInstance(); frm.MdiParent = this; //Main formu bu formun parentı frm.StartPosition = FormStartPosition.CenterScreen; frm.WindowState = FormWindowState.Normal; frm.Show(); }
public static frmOgrenciler GetInstance() { frmOgrenciler frm = (frmOgrenciler)Application.OpenForms["frmOgrenciler"]; if (frm == null) { frm = new frmOgrenciler(); } return(frm); }