| | |
| | | /// <param name="title"></param> |
| | | /// <param name="msg"></param> |
| | | /// <param name="action"></param> |
| | | public void TipMsg(string title, string msg, Action action = null) |
| | | public void TipMsg(string title, string msg, Action action = null,bool again = true) |
| | | { |
| | | |
| | | try |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = CSS_Color.DialogTransparentColor1, |
| | |
| | | action?.Invoke(); |
| | | dialog.Close(); |
| | | }; |
| | | }catch(Exception ex) |
| | | { |
| | | MainPage.Log($"lc add fail:{ex.Message}"); |
| | | if (again) |
| | | { |
| | | new System.Threading.Thread(() => |
| | | { |
| | | System.Threading.Thread.Sleep(500); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | TipMsg(title, msg, action, false); |
| | | }); |
| | | }).Start() ; |
| | | } |
| | | } |
| | | finally |
| | | { |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | |