private void HastaIslemleriForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     HastaBilgileriForm.HBFormuKapat();
     DosyaAraForm.DosyaBulFormuKapat();
     TaburcuForm.TaburcuFormuKapat();
     hastaIslemleri = null;
 }
 private void HastaIslemleriKapat()
 {
     if (_hastaIslemleriForm != null)
     {
         HastaIslemleriForm.HastaIslemleriFormuKapat();
         _hastaIslemleriForm = null;
     }
 }
 public static HastaIslemleriForm HastaIslemleriFormuOlustur(GirisForm anaForm)
 {
     if (hastaIslemleri == null)
     {
         hastaIslemleri = new HastaIslemleriForm(anaForm);
     }
     else
     {
         hastaIslemleri.Activate();
     }
     return(hastaIslemleri);
 }
        public static void HastaIslemleriFormuKapat()
        {
            if (hastaIslemleri != null)
            {
                if (hastaIslemleri._hastaBilgileri != null)
                {
                    HastaBilgileriForm.HBFormuKapat();
                }
                if (hastaIslemleri._dosyaBul != null)
                {
                    DosyaAraForm.DosyaBulFormuKapat();
                }

                hastaIslemleri.Close();
                hastaIslemleri = null;
            }
        }
        private void HastaIslemleriAcılıs()
        {
            KulanıcıTanıtmaOnFormKapat();
            PoliklinikTanıtmaOnFormKapat();
            RaporlarKapat();


            if (_hastaIslemleriForm != null)
            {
                if (_hastaIslemleriForm._hastaBilgileri != null)
                {
                    HastaBilgileriForm.HBFormuKapat();
                    _hastaIslemleriForm._hastaBilgileri = null;
                }
            }
            _hastaIslemleriForm = HastaIslemleriForm.HastaIslemleriFormuOlustur(this);
            _hastaIslemleriForm.StartPosition = FormStartPosition.CenterScreen;
            _hastaIslemleriForm.MdiParent     = this;
            _hastaIslemleriForm.Show();
        }