public static Polikinlik PolikinlikInstance() { if (polikinlikInstance != null) { return(polikinlikInstance); } else { return(polikinlikInstance = new Polikinlik()); } }
private void PolikinlikTanimlamaToolStripMenuItem_Click(object sender, EventArgs e) { Form [] formlar = Program.Owner.MdiChildren; for (int i = 0; i < formlar.Length; i++) { if (formlar[i].Name == "KullaniciTanitmaLogin") { formlar[i].Close(); } } Polikinlik childForm = Polikinlik.PolikinlikInstance(); childForm.MdiParent = this; childForm.StartPosition = FormStartPosition.CenterScreen; childForm.Show(); }
private void Polikinlik_FormClosed(object sender, FormClosedEventArgs e) { polikinlikInstance = null; }