private void ShowFailed(string text, bool showRefresh = false) { webBrowser.Stop(); webBrowser.Hide(); ErrorUtil.Show(text.Length > 1024 ? $"{text.Substring(0, 1024)}..." : text, showRefresh); LoadingUtil.Hide(); }
/// <summary> /// マップ番号が変更された /// </summary> /// <param name="mapNumber"></param> /// <returns></returns> private async UniTask OnChangeMap(int mapNumber) { await LoadingUtil.Show(); GetCurrentMap().HideMap(); AdvParameter.CurrentMapNumber = mapNumber; await StartMap(); }
/// <summary> /// マップ表示を開始する /// </summary> /// <returns></returns> public async UniTask StartMap() { backgroundPresenter.ChangeBackground(AdvParameter.CurrentMapNumber); GetCurrentMap().ShowMap(); GetCurrentMap().OnBeforeStart(); await LoadingUtil.Hide(); GetCurrentMap().OnStart(); }
/// <summary> /// ゲームシーンに移動する /// </summary> private async UniTask MoveGameScene() { await LoadingUtil.Show(); gameScene.gameObject.SetActive(true); titleScene.gameObject.SetActive(false); await LoadingUtil.Wait(); gameScene.Initialize(); await gameScene.StartScene(); }
private async void Start() { titleScene.gameObject.SetActive(true); gameScene.gameObject.SetActive(false); // ローディングの初期化 LoadingUtil.Initialize(FindObjectOfType <LoadingView>()); await InitializeScenarioPlayer(); Bind(); // デバグ用 // await DebugGameSceneStarter(); }
private bool ValidateExport(SaveFileDialog saveFileDialog, out string fileName) { fileName = saveFileDialog.FileName; // 2012.04.02 Author 增加 判断文件是否被打开 if (BaseExportExcel.CheckIsOpened(fileName)) { LoadingUtil.ShowInformationMessage("Excel文件已经打开,请关闭后重试!", "提示信息", this); return(false); } if (System.IO.File.Exists(fileName)) { System.IO.File.Delete(fileName); } return(true); }
private void WebBrowser_Loading(bool obj) { if (obj) { LoadingUtil.Show(); } else { if (webBrowser.HasDelayedScripts) { Task.Delay(1000).ContinueWith((t) => { this.Invoke(new Action(() => { LoadingUtil.Hide(); })); }); } else { LoadingUtil.Hide(); } } }
private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs args) { ExtarctEmail(); LoadingUtil.Hide(); }
private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e) { ExtarctClientUrl(e.Url); ErrorUtil.Hide(); LoadingUtil.Show(); }
private void loginDialog_Load(object sender, EventArgs e) { LoadingUtil.Show(); webBrowser.Navigate(SsoUri); }
public virtual void Control_Load(object sender, EventArgs e) { if (!this.DesignMode) { if (this.Parent == null && this.Parent == null) { LoadingUtil.ShowWaitLoading(); } // 设置鼠标繁忙状态,并保留原先的状态 System.Windows.Forms.Cursor holdCursor = this.Cursor; this.Cursor = Cursors.WaitCursor; this.ControlLoaded = false; try { // 是否记录访问日志 if (BaseSystemInfo.RecordLog) { // 已经登录了系统了,才记录日志 if (BaseSystemInfo.UserIsLogOn) { // 调用服务事件 if (this.RecordControlLog) { // 调用服务事件 // this.LogId = dotNetService.LogService.WriteLog(UserInfo, this.ItemName, this.Text, "FormLoad"); DotNetService dotNetService = new DotNetService(); dotNetService.LogService.WriteLog(UserInfo, this.Name, AppMessage.GetMessage(this.Name), "FormLoad", AppMessage.LoadWindow); if (dotNetService.LogService is ICommunicationObject) { ((ICommunicationObject)dotNetService.LogService).Close(); } } } } // 获得页面的权限 this.GetPermissions(); // 加载窗体 this.ControlOnLoad(); // 设置按钮状态 this.SetControlState(); if (BaseSystemInfo.MultiLanguage) { // 多语言国际化加载 /* * if (ResourceManagerWrapper.Instance.GetLanguages() != null) * { * this.Localization(this); * } */ } if (this.LoadUserParameters) { // 客户端页面配置加载 this.LoadUserParameter(this); } // 设置帮助 this.SetHelp(); } catch (Exception catchException) { catchException.ProcessException(); } finally { this.ControlLoaded = true; // 设置鼠标默认状态,原来的光标状态 this.Cursor = holdCursor; } if (this.Parent == null) { //LoadingUtil.StopLoading(); } this.Visible = true; } }