private void OpenExerciseLookup() { if (!exerciseLookupWindow.IsLoaded) { exerciseLookupWindow = new ExerciseLookupWindow(); } exerciseLookupWindow.ChangeSelectedExercise(CurrentlySelectedExercise, folderPath, "kk"); exerciseLookupWindow.Show(); }
public TrainingViewModel() { LoadSettingsFromFile(); LoadData(); saveCommand = new RelayCommand(Save); deleteCommand = new RelayCommand(Delete); resetCommand = new RelayCommand(Reset); openExerciseLookupCommand = new RelayCommand(OpenExerciseLookup); exerciseLookupWindow = new ExerciseLookupWindow(); openSettingsWindowCommand = new RelayCommand(OpenSettingsWindow); settingsWindow = new SettingsWindow(FolderPath, ChangeFolderPath, clientName, ChangeClientName); }