public void ProcessEntityException(EntityException ex) { Form formMain = ClientEnvironment.MainForm; if (formMain.InvokeRequired) { formMain.BeginInvoke(new ProcessEntityExceptionDelegate(ProcessEntityException), ex); return; } using (FrmEntityExceptionDetails form = new FrmEntityExceptionDetails(ex)) { form.Text = Localizer.GetLocalized("Error"); if (String.IsNullOrEmpty(form.Text)) { form.Text = ex.Message; } form.ShowDialog(this); } }
protected virtual void ProcessEntityException(EntityException ex) { using (FrmEntityExceptionDetails form = new FrmEntityExceptionDetails(ex)) { //form.Text = GetLocalized("CannotSaveAbsence"); form.ShowDialog(this); } }
public FrmEntityExceptionDetails(EntityException ex) : this() { _ex = ex; }