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(); }
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>(); }
public MainViewModel(IApplicationController app) : base() { _app = app; // Create the menu MenuViewModel menuViewModel = new MenuViewModel(_app); }
public PostMeasurementViewModel(IApplicationController app) : base() { _app = app; // Set menu MenuViewModel menuViewModel = new MenuViewModel(_app); menuViewModel.VisibilityLaser = false; Menu = menuViewModel; }
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; }
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; }
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; }