예제 #1
0
 /// <summary>
 /// 隐藏加载框
 /// </summary>
 protected void HideLoading()
 {
     if (OnLoadingChange != null)
     {
         OnLoadingChange.Invoke(this.Name, "", false);
         IsLoaddingShow = false;
     }
 }
예제 #2
0
 /// <summary>
 /// 显示加载框
 /// </summary>
 /// <param name="msg">加载框显示文本</param>
 /// <param name="timeout">超时时间,单位为秒</param>
 protected void ShowLoading(string msg, int timeout = -1)
 {
     if (OnLoadingChange != null)
     {
         OnLoadingChange.Invoke(this.Name, msg, true);
         IsLoaddingShow = true;
     }
 }