| | |
| | | alert.Show();
|
| | | });
|
| | | //Log出力
|
| | | string msg = "当前激活的界面[" + nowFormId + "]\r\n";
|
| | | msg += ex.Message + "\r\n";
|
| | | msg += ex.TargetSite.ToString();
|
| | | string msg = "当前激活的界面[" + nowFormId + "]";
|
| | | HdlLogLogic.Current.WriteLog(-1, msg);
|
| | | HdlLogLogic.Current.WriteLog(ex);
|
| | | }
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | |
| | | var alert = new ShowMsgControl(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost));
|
| | | alert.Show();
|
| | | //Log出力
|
| | | string msg = "当前激活的界面[" + nowFormId + "]\r\n";
|
| | | msg += ex.Message + "\r\n";
|
| | | msg += ex.TargetSite.ToString();
|
| | | string msg = "当前激活的界面[" + nowFormId + "]";
|
| | | HdlLogLogic.Current.WriteLog(-1, msg);
|
| | | HdlLogLogic.Current.WriteLog(ex);
|
| | | }
|
| | | });
|
| | |
|
| | |
| | | { IsBackground = true }.Start();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 执行运行于主线程(创建这个东西,是为了Log出力)
|
| | | /// </summary>
|
| | | public void RunMain(Action action)
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | | //记录起当前界面,虽然似乎没啥用
|
| | | string nowFormId = UserCenterResourse.NowActionFormID;
|
| | | try
|
| | | {
|
| | | action.Invoke();
|
| | | action = null;
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | //出现未知错误,数据丢失
|
| | | var alert = new ShowMsgControl(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost));
|
| | | alert.Show();
|
| | |
|
| | | //Log出力
|
| | | string msg = "当前激活的界面[" + nowFormId + "]";
|
| | | HdlLogLogic.Current.WriteLog(-1, msg);
|
| | | HdlLogLogic.Current.WriteLog(ex);
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|