Exemple #1
0
 private void Update(object sender, HardwareEventArgs args)
 {
     if (this.Enabled)
     {
         this.ChangeHardwareStatus((Hardware)Enum.Parse(typeof(Hardware), args.hardware.Name), args.hardware.GetStatus());
     }
 }
Exemple #2
0
 protected virtual void OnStatusChanged(HardwareEventArgs e)
 {
     var handler = StatusChanged;
     if (handler != null)
     {
         handler(this, e);
     }
 }