Esempio n. 1
0
        /// <summary>
        /// 显示异常对话框
        /// </summary>
        /// <param name="exception">异常对话框</param>
        protected virtual void ShowExceptionDialog(Exception exception)
        {
            UIPublic.ShowWaitingForm();
            var eventInfo = new ExceptionEventInfo(exception, true, true);

            UIPublic.CloseWaitingForm();
            UIPublic.ShowEventDialog(eventInfo);
        }
Esempio n. 2
0
 private void ButtonRemoteException_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     UIPublic.ShowWaitingForm();
     try {
         var testService = new TcpRemoteFactory <ITestService>()
         {
             ServerAddress = "localhost:7990",
             ServiceName   = "TestService"
         }.Value;
         testService.GetString("Exception");
     } catch (Exception err) {
         UIPublic.CloseWaitingForm();
         UIPublic.ShowEventDialog(new ExceptionEventInfo(err, true, true));
     }
 }