Exemplo n.º 1
0
        /// <summary>
        /// 显示网络异常重新连接窗口
        /// </summary>
        /// <returns></returns>
        public static RetryWindow ShowRetryWindow(string content = null, string retry = null, string cancel = null, string title = null)
        {
            if (content == null)
            {
                content = "       " + I18NManager.Get("Common_RetryWiondwContent");
            }

            if (retry == null)
            {
                retry = I18NManager.Get("Common_RetryBtn");
            }

            if (cancel == null)
            {
                cancel = I18NManager.Get("Common_Cancel2");
            }


            RetryWindow win = ShowWindow <RetryWindow>(Constants.RetryWindowPath);

            win.MaskColor  = new Color(0, 0, 0, 0.5f);
            win.Content    = content;
            win.Title      = title;
            win.OkText     = retry;
            win.CancelText = cancel;
            return(win);
        }