/// <summary> /// yeni hasta ekler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnYeni_Click(object sender, EventArgs e) { PatientInformation ptInfo = new PatientInformation(); ptInfo.MdiParent = Main.ActiveForm; ptInfo.Show(); }
/// <summary> /// hasta bilgileri ekranı açılır /// </summary> /// <param name="sender"></param> /// <param name="e"></param> // ReSharper disable once IdentifierTypo private void btnHastaBilgileri_Click(object sender, EventArgs e) { if (Common.SpaceControl(txtDosyaNo.Text)) { if (patient != null && patient.DosyaNo == Convert.ToInt32(txtDosyaNo.Text)) { PatientInformation pinfo = new PatientInformation(patient); pinfo.MdiParent = Main.ActiveForm; pinfo.Show(); } else { PatientInformation pinfo = new PatientInformation(Convert.ToInt32(txtDosyaNo.Text)); pinfo.MdiParent = Main.ActiveForm; pinfo.Show(); } } else { Messaging.DialogWarningMessage("Dosya numarası giriniz."); } }