/// <summary> /// 刷新下载进度信息 /// </summary> public static void DownloadMessageRefresh() { try { if (ShowApp.DownLoadDrawMessage == null || ShowApp.DownLoadDrawMessage.DrawStyleList.Count == 0) { string messageString = "<span style=\"font-family: MS PGothic; font-size: 18px; \" ><b>ファイルダウンロード中。</b></span>"; MessageTempleteItem mtItem = new MessageTempleteItem(messageString, MessagePositionType.Bottom, 0, 0); ShowApp.DownLoadDrawMessage = new DrawMessage(VariableInfo.messageFormInstance.Width, VariableInfo.messageFormInstance.Height, mtItem); ShowApp.DownLoadDrawMessage.AddDrawMessage(mtItem.MessageList[0], mtItem.MessageStyleList[0]); } else { string messageString = string.Format("<span style=\"font-family: MS PGothic; font-size: 18px; \" ><b>ファイルダウンロード中。({0}/{1})</b></span>", ShowApp.DownLoadIndexNumber, ShowApp.DownLoadTotalNumber); MessageTempleteItem mtItem = new MessageTempleteItem(messageString, MessagePositionType.Bottom, 0, 0); ShowApp.DownLoadDrawMessage.SetDrawMessageStyle(mtItem.MessageList[0], mtItem.MessageStyleList[0], 0); } } catch (Exception ex) { LogApp.OutputErrorLog("PlayApp", "DownloadMessageRefresh", ex); } }
public DrawMessage(int parentWidth, int parentHeight, MessageTempleteItem parentTemplete) { drawStyleListValue.Clear(); this.widthValue = 0; this.leftValue = parentWidth; this.parentTempleteValue = parentTemplete; this.parentHeightValue = parentHeight; this.parentWidthValue = parentWidth; this.slidingSpeedValue = parentTemplete.SlidingSpeed; this.needRefreshLocation = true; RefreshLocation(); }