public PO3DeviceUnitWindowsSettingsTabViewModel(MainWindowViewModel parentViewModel)
 {
     _po3DeviceUnitWindowsSettings = parentViewModel.Device.DeviceUnitWindowsSettings;
     _parentViewModel = parentViewModel;
     for (int win = 0; win < parentViewModel.Device.DeviceUnitWindowsSettings.Windows.Length; win++)
     {
         _windowsSettingsTabs.Add(new PO3DeviceUnitWindowSettingsViewModel(win,
                                                                           parentViewModel.Device.DeviceUnitWindowsSettings));
     }
 }
 public PO3DeviceUnitWindowSettingsViewModel(int windowIndex, PO3DeviceUnitWindowsSettings po3DeviceUnitWindowsSettings)
 {
     _windowIndex = windowIndex;
     _po3DeviceUnitWindowsSettings = po3DeviceUnitWindowsSettings;
     _po3DeviceUnitWindowSettings  = po3DeviceUnitWindowsSettings.Windows[_windowIndex];
 }