コード例 #1
0
 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;
 }
コード例 #2
0
 public void Fill(StrengthTrainingEntryDTO entry, StrengthTrainingViewModel viewModel)
 {
     this.entry     = entry;
     this.viewModel = viewModel;
     ItemsSource    = viewModel.Items;
 }