コード例 #1
0
        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);
            }
        }
コード例 #2
0
ファイル: UCBaseEntity.cs プロジェクト: 5509850/baumax
 protected virtual void ProcessEntityException(EntityException ex)
 {
     using (FrmEntityExceptionDetails form = new FrmEntityExceptionDetails(ex))
     {
         //form.Text = GetLocalized("CannotSaveAbsence");
         form.ShowDialog(this);
     }
 }
コード例 #3
0
 public FrmEntityExceptionDetails(EntityException ex)
     : this()
 {
     _ex = ex;
 }