public ScannerDataViewModel ( IElementManager <Camera> cameraManager, IElementManager <Lens> lensManager ) { Title = "Scanner Data"; Informations = ""; CamerasManager = cameraManager; LensesManager = lensManager; cameraManager.LoadData(_camerasPath); Cameras.AddRange(cameraManager.GetList()); lensManager.LoadData(_lensPath); Lenses.AddRange(lensManager.GetList()); LeftLine = new Line() { X1 = 0, X2 = 0, Y1 = 0, Y2 = 0 }; RightLine = new Line() { X1 = 0, X2 = 0, Y1 = 0, Y2 = 0 }; MinValue = 150; MaxValue = 600; ActualValue = 300; ActualAngle = 0; AddData(); }