private void Hue_OnBridgeDetectionFailed(object sender, DetectionErrorEventArgs e) { Cursor_Tools.ShowNormalCursor(); CanScan = true; CanAddManualIp = true; CanDetectBridge = true; MessageBox.Show("Error detecting bridge. Try manual scan.", GlobalStrings.Error, MessageBoxButton.OK, MessageBoxImage.Error); //log.Error("Error detecting bridge.", e.Error.ToString()); }
private void Hue_OnDetectionComplete(object sender, RunWorkerCompletedEventArgs e) { ListViewSource = AssociateApiKey((ObservableCollection <Bridge>)e.Result); Cursor_Tools.ShowNormalCursor(); _canscan = true; OnPropertyChanged("CanScan"); CanAddManualIp = true; log.Info("Bridge detection complete."); log.Debug(ListViewSource); }
private void Hue_OnDetectionComplete(object sender, RunWorkerCompletedEventArgs e) { Dictionary <string, Bridge> brlist = (Dictionary <string, Bridge>)e.Result; UpdateBridgeList(brlist); Cursor_Tools.ShowNormalCursor(); CanScan = true; CanAddManualIp = true; CanDetectBridge = true; log.Info("Bridge detection complete."); log.Debug(ListViewSource); }