private void barButtonItemSave_ItemClick(object sender, ItemClickEventArgs e) { prescription.PrescriptionItems = prescriptionItems.Select(i => new PrescriptionItem { MedicamentId = i.MedicamentId, UsePerDay = i.UsePerDay, DoctorNote = i.DoctorNote, IsActive = true }).ToArray(); Extensions.Extensions.ShowWaitForm(description: "Reçeye sisteme kaydediliyor..."); PrescriptionSolClient client = Extensions.Extensions.GetPrescriptionService(); if (client.IsNull()) { return; } result = client.Insert(prescription); SplashScreenManager.CloseForm(false); Extensions.Extensions.ProcessResultMessage(result.Errors, (int)result.Result); if (result.Result == ExtensionsBLLResult.Success) { Close(); } }
private void XtraFormPrescription_FormClosing(object sender, FormClosingEventArgs e) { if (result == null) { result = new ProcessResult { Result = ExtensionsBLLResult.NotVerified }; } }