예제 #1
0
        public ProfileViewModel(IApplicationController app)
            : base()
        {
            _app = app;
            uModule = new UserModule();
            filterList = new ObservableCollection<gymnast>();

            // Set the menu
            MenuViewModel menuViewModel = new MenuViewModel(_app);
            menuViewModel.VisibilityLaser = false;
            Menu = menuViewModel;

            // Get the user profile
            FilterField = "";
            gymnastList = uModule.getGymnastCollection();
            applyFilter();

            //Other misc stuff
            PictureCommandVisible = Visibility.Hidden;
            EnableFilter = true;
            inEditingMode = false;
            creatingNewGymnast = false;

            setValidationRules();
        }
예제 #2
0
        public VaultSelectorViewModel(IApplicationController app)
            : base()
        {
            _app = app;

            // Set menu
            MenuViewModel menuViewModel = new MenuViewModel(_app);
            menuViewModel.VisibilityLaser = false;
            Menu = menuViewModel;

            ratingVM = new RatingViewModel(_app);
            RatingControl = ratingVM;

            // get all info on startup of this viewmodel
            List<location> locations = vaultModule.getLocations();
            List<vaultnumber> vaultnumbers = vaultModule.getVaultNumbers();
            locationList = new ObservableCollection<location>(locations);
            vaultNumberList = new ObservableCollection<vaultnumber>(vaultnumbers);

            gymnastList = userModule.getGymnastCollection();

            modifyVaultVM = new ModifyVaultViewModel(_app, "SELECT", gymnastList, vaultnumbers, vaultModule.getVaultKinds(), locations);
            ModifyViewModelControl = modifyVaultVM;
            this.Content = modifyVaultVM;
            modifyVaultVM.setData(null);

            dateVisibility = Visibility.Hidden;
            OnPropertyChanged("DateVisibility");

            FilterText = "";
            filterList = new ObservableCollection<string>();
        }
예제 #3
0
        public MainViewModel(IApplicationController app)
            : base()
        {
            _app = app;

            // Create the menu
            MenuViewModel menuViewModel = new MenuViewModel(_app);
        }
예제 #4
0
        public PostMeasurementViewModel(IApplicationController app)
            : base()
        {
            _app = app;

            // Set menu
            MenuViewModel menuViewModel = new MenuViewModel(_app);
            menuViewModel.VisibilityLaser = false;
            Menu = menuViewModel;
        }
예제 #5
0
        public VideoPlaybackViewModel(IApplicationController app)
            : base()
        {
            _app = app;

            // Set menu
            MenuViewModel menuViewModel = new MenuViewModel(_app);
            menuViewModel.VisibilityLaser = true;
            Menu = menuViewModel;

            // Set Graph
            GraphViewModel graphVM = new GraphViewModel(_app, this, false ,2000);
            GraphView = graphVM;
        }
예제 #6
0
        public HomeViewModel(IApplicationController app, VideoCameraController videoCameraController)
            : base()
        {
            _app = app;

            // Set menu
            MenuViewModel menuViewModel = new MenuViewModel(_app);
            menuViewModel.VisibilityLaser = true;
            Menu = menuViewModel;

            // Set VideoCamera
            CameraView = new CameraViewModel(_app);
            VideoCameraController = videoCameraController;

            // Set Graph
            GraphViewModel graphVM = new GraphViewModel(_app, this, true, 2000);
            GraphView = graphVM;
        }
예제 #7
0
        public CompareVaultsViewModel(IApplicationController app)
            : base()
        {
            _app = app;

            // Set menu
            MenuViewModel menuViewModel = new MenuViewModel(_app);
            menuViewModel.VisibilityLaser = true;
            Menu = menuViewModel;

            PlayButtonImage = playImage;
            SelectionEnabled = true;
            rightIsEnabled = true;
            LeftIsEnabled = true;

            DistanceGraphView = new GraphViewModel(_app, this, false, 1000);
            SpeedGraphView = new GraphViewModel(_app, this, false, 1000);

            aVideoFinished = false;
            videoLeftMax = 0;
            videoRightMax = 0;
        }