| | |
| | | thread.Start(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载显示等待窗口 |
| | | /// </summary> |
| | | /// <param name="msg"></param> |
| | | /// <returns>返回关闭窗口Action</returns> |
| | | public Action TipLoadingMsgDialog(string msg) |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | X = Application.GetRealWidth(89), |
| | | Y = Application.GetRealHeight(285), |
| | | Width = Application.GetRealWidth(198), |
| | | Height = Application.GetRealHeight(98), |
| | | }; |
| | | |
| | | FrameLayout frame = new FrameLayout() |
| | | { |
| | | BackgroundColor = CSS_Color.DialogTransparentColor1, |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | }; |
| | | dialog.AddChidren(frame); |
| | | |
| | | Button btnTipIcon = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(15), |
| | | Width = Application.GetRealWidth(32), |
| | | Height = Application.GetRealWidth(32), |
| | | UnSelectedImagePath = "Public/MsgIcon/LoadingIcon.png", |
| | | }; |
| | | frame.AddChidren(btnTipIcon); |
| | | |
| | | Button btnTipMsg = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(47), |
| | | Height = Application.GetRealHeight(50), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | Text = msg, |
| | | }; |
| | | frame.AddChidren(btnTipMsg); |
| | | |
| | | dialog.Show(); |
| | | return new Action(() => { |
| | | dialog.Close(); |
| | | }); |
| | | } |
| | | |
| | | } |
| | | } |