示例#1
0
 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());
 }
示例#2
0
 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);
 }
示例#3
0
        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);
        }