public usrStrengthTraining()
 {
     InitializeComponent();
     PropertyChangedEventManager.AddListener(UserContext.Current, this, string.Empty);
     viewModel = new StrengthTrainingViewModel(UserContext.Current.Settings.SerieNumberComboBoxSelectedItem, ReadOnly);
     viewModel.ShowRestColumns        = grid.ShowRestColumns;
     viewModel.ShowExerciseTypeColumn = grid.ShowExerciseTypeColumn;
     DataContext = viewModel;
 }
 public void Fill(StrengthTrainingEntryDTO entry, StrengthTrainingViewModel viewModel)
 {
     this.entry     = entry;
     this.viewModel = viewModel;
     ItemsSource    = viewModel.Items;
 }