コード例 #1
0
        public void Add(Training training)
        {
            var jsonTraining = JsonConvert.SerializeObject(training);

            WriteToFile(jsonTraining);
        }
コード例 #2
0
 public ViewTrainingsForm(string mode) : this()
 {
     this.mode        = mode;
     SelectedTraining = new Training();
 }
コード例 #3
0
        public void UpdateTraining(Training training)
        {
            var trainingDb = ToTrainingDb(training);

            repository.Update(trainingDb);
        }
コード例 #4
0
        public void DeleteTraining(Training training)
        {
            var trainingDb = ToTrainingDb(training);

            repository.Delete(trainingDb);
        }
コード例 #5
0
        public void AddTraining(Training training)
        {
            var trainingDb = ToTrainingDb(training);

            repository.Add(trainingDb);
        }
コード例 #6
0
 public TrainingForm(Training training) : this()
 {
     this.training = training;
     FillFormControls();
 }