Ejemplo n.º 1
0
 private void FormGoruntule_FormClosing(object sender, FormClosingEventArgs e)
 {
     formSorgula      = null;
     mdiAna           = null;
     secilenKiralıkEv = null;
     secilenSatılıkEv = null;
 }
Ejemplo n.º 2
0
 public static FormSorgula FormSorgulaOlustur(MDIAnaMenu mDIAna)
 {
     if (formSorgula == null)
     {
         formSorgula = new FormSorgula(mDIAna);
     }
     else
     {
         formSorgula.Location = new Point(0, 0);
         formSorgula.Activate();
     }
     return(formSorgula);
 }
        private void ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem clickedOn = sender as ToolStripMenuItem;

            Form form = null;

            if (clickedOn.Tag.ToString() == "Ekle")
            {
                form = FormEkle.FormEkleOlustur(this);
            }
            else
            {
                form = FormSorgula.FormSorgulaOlustur(this);
            }


            form.Show();
        }