예제 #1
0
 /// <summary>
 /// Raises the discovery progress event.
 /// </summary>
 /// <param name="args">Arguments.</param>
 protected virtual void OnDiscoveryProgress(DiscoveryProgressEventArgs args)
 {
     Utility.logger.Debug(args.Status);
     if (DiscoveryProgress != null)
     {
         DiscoveryProgress(this, args);
     }
 }
예제 #2
0
 static void Controller_DiscoveryProgress(object sender, DiscoveryProgressEventArgs args)
 {
     Console.WriteLine("DiscoveryProgress {0}", args.Status);
     var controller = (sender as ZWaveController);
     switch (args.Status)
     {
     case DiscoveryStatus.DiscoveryStart:
         break;
     case DiscoveryStatus.DiscoveryEnd:
         break;
     }
 }
예제 #3
0
 /// <summary>
 /// Raises the discovery progress event.
 /// </summary>
 /// <param name="args">Arguments.</param>
 protected virtual void OnDiscoveryProgress(DiscoveryProgressEventArgs args)
 {
     Utility.logger.Debug(args.Status);
     if (DiscoveryProgress != null)
         DiscoveryProgress(this, args);
 }
예제 #4
0
 private void Controller_DiscoveryProgress(object sender, DiscoveryProgressEventArgs args)
 {
     //var controller = (sender as ZWaveController);
     switch (args.Status)
     {
     case DiscoveryStatus.DiscoveryStart:
         OnInterfacePropertyChanged(this.GetDomain(), "1", "Z-Wave Controller", "Controller.Status", "Discovery Started");
         break;
     case DiscoveryStatus.DiscoveryEnd:
         OnInterfacePropertyChanged(this.GetDomain(), "1", "Z-Wave Controller", "Controller.Status", "Discovery Complete");
         OnInterfaceModulesChanged(this.GetDomain());
         break;
     }
 }
예제 #5
0
 private void Controller_DiscoveryProgress(object sender, DiscoveryProgressEventArgs args)
 {
     //var controller = (sender as ZWaveController);
     switch (args.Status)
     {
     case DiscoveryStatus.DiscoveryStart:
         RaisePropertyChanged(new InterfacePropertyChangedAction() {
             Domain = this.Domain,
             SourceId = "1",
             SourceType = "Z-Wave Controller",
             Path = "Controller.Status",
             Value = "Discovery Started"
         });
         break;
     case DiscoveryStatus.DiscoveryEnd:
         RaisePropertyChanged(new InterfacePropertyChangedAction() {
             Domain = this.Domain,
             SourceId = "1",
             SourceType = "Z-Wave Controller",
             Path = "Controller.Status",
             Value = "Discovery Complete"
         });
         if (InterfaceModulesChangedAction != null)
             InterfaceModulesChangedAction(new InterfaceModulesChangedAction(){ Domain = this.Domain });
         break;
     }
 }