private void onWifiError(object sender, WifiError e) { this.Dispatcher.Invoke(() => { this.ui.IsBusy = false; this.selectedWifi = null; App.ShowMsg(string.Format("{0} '{1}'", e.Code, e.ExtraInfo)); }); }
private void onWifiError(object sender, WifiError e) { this.Dispatcher.Invoke(() => { this.gridWait.Collapse(); App.ShowMsg(string.Format("{0} '{1}'", e.Code, e.ExtraInfo)); this.Close(); }); }
private void RaiseError(WifiErrorCode code, string details = "") { WifiError err = new WifiError(code); if (details.Length > 0) { err.ExtraInfo = details; } this.OnError?.Invoke(this, err); }
private void Wrapper_OnWifiError(object sender, WifiError e) { this.Dispatcher.Invoke(() => { this.gridWait.Collapse(); if (e.Code != WifiErrorCode.UserCanceled) { string err = string.Format("{0} ({1})", e.Code.ToString(), e.ExtraInfo.Length == 0 ? "--" : e.ExtraInfo); App.ShowMsg(err); } }); }
private void Wifi_OnErrorHandler(object sender, WifiError e) { ErrReport report; WrapErr.ToErrReport(out report, 2000356, "Failure on Wifi_OnErrorHandler", () => { this.log.Info("Wifi_OnErrorHandler", () => string.Format("Is OnWifiError null={0}", this.OnWifiError == null)); // Possible to have other errors on connect so we will also wipe out connect params here if (this.pendingSaveConnectNetInfo != null) { // Wipping out password will cause dialog to come up on next connect this.pendingSaveConnectNetInfo.Password = ""; this.pendingSaveConnectNetInfo = null; } this.OnWifiError?.Invoke(sender, e); }); this.RaiseIfException(report); }
private void OnWifiErrorHandler(object sender, WifiError e) { this.viewModel.IsBusy = false; this.activity.IsRunning = false; this.OnErr(e.ExtraInfo.Length > 0 ? e.ExtraInfo : e.Code.ToString()); }