private void barButtonItemNew_ItemClick(object sender, ItemClickEventArgs e) { XtraFormPatient formPatient = new XtraFormPatient(); formPatient.ShowDialog(); RefreshData(); }
private void simpleButtonNewPatient_Click(object sender, EventArgs e) { XtraFormPatient patientForm = new XtraFormPatient(true); patientForm.ShowDialog(); if (!patientForm.Result) { return; } patient = patientForm.patient; labelControlPatientName.Text = patient.NameSurname; textEditTCNO.Text = patient.TcNo; simpleButtonNewPatient.Enabled = false; simpleButtonPatientInfos.Enabled = false; }
private void barButtonItemEdit_ItemClick(object sender, ItemClickEventArgs e) { Patient selectedPatient = bindingSourcePatients.Current as Patient; if (selectedPatient.IsNull()) { Extensions.Extensions.ObjectNotSelectedForEdit(); return; } XtraFormPatient formPatient = new XtraFormPatient(selectedPatient, true) { Text = "Hasta Düzenle" }; formPatient.ShowDialog(); }
private void barButtonItemDetail_ItemClick(object sender, ItemClickEventArgs e) { Patient selectedPatient = bindingSourcePatients.Current as Patient; if (selectedPatient.IsNull()) { Extensions.Extensions.ObjectNotSelectedForDetails(); return; } XtraFormPatient formPatient = new XtraFormPatient(selectedPatient, false) { Text = "Hasta Bilgileri" }; formPatient.ShowDialog(); }