public MainWindow()
        {
            InitializeComponent();

            _deviceManager = new DeviceManager();
            _dataManager = new DataManager(_deviceManager, DataControl);

            InfoControl.CommandControl = CommandControl;
            InfoControl.DeviceManager = _deviceManager;
            InfoControl.DataManager = _dataManager;

            CommandControl.DataManager = _dataManager;
            CommandControl.InfoControl = InfoControl;

            //todo CommandControl.IsEnabled = true;
        }
 public MovingAverageDialog(DataManager dataManager)
 {
     InitializeComponent();
     _dataManager = dataManager;
     VariableBox.SelectedValue = Settings.Default.MovingAverageVariable.ToString(CultureInfo.InvariantCulture);
 }