public void RefreshDevicesBox()
 {
     foreach (DeviceControl y in MyUtils.FindVisualChildren <DeviceControl>(grpDevices))
     {
         y.RefAll();
     }
 }
 public void StartWpfUserControls()
 {
     spcSource.wucd.Stop();
     spcSource.wucd.Start();
     foreach (Spectrum y in MyUtils.FindVisualChildren <Spectrum>(Application.Current.Windows.OfType <Window>().SingleOrDefault(x => x.IsActive)))
     {
         y.wucd.Stop();
         y.wucd.Start();
     }
 }