Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 private async void ExecuteOpen()
 {
     Photos.AddRange(await _photoService.GetPhotosAsync());
     Cameras.AddRange(_cameraService.GetCameras(_photos));
 }