Exemple #1
0
 protected override void initRelayCommands()
 {
     SetPilotLaserCommand = new RelayCommand(SetPilotLaser);
     StartSessionCommand = new RelayCommand(StartSession);
     GymnastProfilesCommand = new RelayCommand(LoadGymnastProfiles);
     SelectVaultCommand = new RelayCommand(LoadSelectVault);
     SettingsCommand = new RelayCommand(LoadSettings);
     HomeCommand = new RelayCommand(LoadHomeScreen);
     LogCommand = new RelayCommand(LoginoutCommand);
 }
Exemple #2
0
 protected override void initRelayCommands()
 {
     PlayClickCommand = new RelayCommand(PlayMedia);
     StopClickCommand = new RelayCommand(StopMedia);
     ForwardClickCommand = new RelayCommand(ForwardMedia);
     BackwardClickCommand = new RelayCommand(BackwardMedia);
     MouseUpCommand = new RelayCommand(MouseUp);
     MouseDownCommand = new RelayCommand(MouseDown);
 }
 protected override void initRelayCommands()
 {
     DeleteCommand = new RelayCommand(DeleteAction);
     NewCommand = new RelayCommand(NewAction);
     SaveCommand = new RelayCommand(SaveAction);
     BackCommand = new RelayCommand(BackAction);
 }
Exemple #4
0
 protected override void initRelayCommands()
 {
     CancelCommand = new RelayCommand(CancelAction);
     LoginCommand = new RelayCommand(LoginAction);
 }
        protected override void initRelayCommands()
        {
            SaveChangesCommand = new RelayCommand(SaveChanges);
            CancelChangesCommand = new RelayCommand(CancelChanges);
            DeleteVaultCommand = new RelayCommand(DeleteVault);
            CompareCommand = new RelayCommand(CompareAction);
            RemoveAllFiltersCommand = new RelayCommand(RemoveAllFilters);
            AddToFilterCommand = new RelayCommand(AddToFilters);
            AddDateToFilterCommand = new RelayCommand(AddDateToFilter);
            SelectedItemsChangedCommand = new RelayCommand((thumbnails) =>
            {
                if (thumbnails != null)
                {
                    IList selectedthumbnails = (IList)thumbnails;
                    SelectedThumbnails.Clear();
                    foreach (ThumbnailViewModel thumbnail in selectedthumbnails)
                    {
                        SelectedThumbnails.Add(thumbnail);
                    }
                    updateFields();
                }

            });
        }
        protected override void initRelayCommands()
        {
            SaveSettingsCommand         = new RelayCommand(saveSettings);
            CancelCommand               = new RelayCommand(CancelAction);
            CalibrateMinimumDistance    = new RelayCommand(calibrateMinimumDistance);
            CalibrateMaximumDistance    = new RelayCommand(calibrateMaximumDistance);

            ShowLocationEditerCommand = new RelayCommand(ShowLocationEditor);
            ShowVaultNumberEditerCommand = new RelayCommand(ShowVaultNumberEditor);
            ShowVaultKindEditorCommand = new RelayCommand(ShowVaultKindEditor);
            ClearLocalDataCommand = new RelayCommand(ClearLocalData);
        }
 protected override void initRelayCommands()
 {
     PictureCommand = new RelayCommand(InitPictureUpload);
     SaveChangesCommand = new RelayCommand(SaveChanges, e => CanSaveChanges());
     CancelChangesCommand = new RelayCommand(CancelChanges, e => CanCancelChanges());
     DeleteGymnastCommand = new RelayCommand(DeleteGymnast, e => CanDeleteGymnast());
     EditGymnastCommand = new RelayCommand(EditGymnast, e => CanEditGymnast());
     NewGymnastCommand = new RelayCommand(NewGymnast, e => CanNewGymnast());
     SeeVaultsCommand = new RelayCommand(SeeVaults, e => CanSeeVaults());
 }
 protected override void initRelayCommands()
 {
     PostMeasurementCommand = new RelayCommand(LoadPostMeasurementScreen);
     StartMeasurementCommand = new RelayCommand(StartMeasurement);
 }
        protected override void initRelayCommands()
        {
            PlayClickCommand = new RelayCommand(playVideo);
            StopClickCommand = new RelayCommand(stopVideo);
            ForwardClickCommand = new RelayCommand(forwardVideo);
            BackwardClickCommand = new RelayCommand(rewindVideo);
            LeftSelectionCommand = new RelayCommand(ToggleLeftSelection);
            RightSelectionCommand = new RelayCommand(ToggleRightSelection);

            MouseUpCommand = new RelayCommand(MouseUp);
            MouseDownCommand = new RelayCommand(MouseDown);
        }
Exemple #10
0
 protected override void initRelayCommands()
 {
     LockScreenCommand = new RelayCommand(ToggleLockScreen);
     PilotLaserToNullCommand = new RelayCommand(SetPilotToNull);
 }
        protected override void initRelayCommands()
        {
            doubleClickCommand = new RelayCommand((thumbnail) =>
            {
                ThumbnailViewModel thumbnailvm = (ThumbnailViewModel)thumbnail;

            });
            FinishCommand = new RelayCommand(FinishAction);
            DeleteCommand = new RelayCommand(DeleteAction);
            SaveCommand = new RelayCommand(SaveAction);
            CancelCommand = new RelayCommand(CancelAction);
            ExportCommand = new RelayCommand(ExportAction);
            SelectedItemsChangedCommand = new RelayCommand((thumbnails) =>
            {
                if (thumbnails != null)
                {
                    IList selectedthumbnails = (IList)thumbnails;
                    SelectedThumbnails.Clear();
                    foreach (ThumbnailViewModel thumbnail in selectedthumbnails)
                    {
                        SelectedThumbnails.Add(thumbnail);
                    }
                    setProperties();
                    OnPropertyChanged("SelectedThumbnails");
                    OnPropertyChanged("FinishButtonText");
                    OnPropertyChanged("Gymnast");
                    OnPropertyChanged("Datetime");
                    OnPropertyChanged("TimeSpan");
                    OnPropertyChanged("VaultNumber");
                    OnPropertyChanged("Location");
                    OnPropertyChanged("VaultKind");
                    OnPropertyChanged("TotalScore");
                }
            });
        }