public void Add(Training training)
        {
            var jsonTraining = JsonConvert.SerializeObject(training);

            WriteToFile(jsonTraining);
        }
Ejemplo n.º 2
0
 public ViewTrainingsForm(string mode) : this()
 {
     this.mode        = mode;
     SelectedTraining = new Training();
 }
Ejemplo n.º 3
0
        public void UpdateTraining(Training training)
        {
            var trainingDb = ToTrainingDb(training);

            repository.Update(trainingDb);
        }
Ejemplo n.º 4
0
        public void DeleteTraining(Training training)
        {
            var trainingDb = ToTrainingDb(training);

            repository.Delete(trainingDb);
        }
Ejemplo n.º 5
0
        public void AddTraining(Training training)
        {
            var trainingDb = ToTrainingDb(training);

            repository.Add(trainingDb);
        }
Ejemplo n.º 6
0
 public TrainingForm(Training training) : this()
 {
     this.training = training;
     FillFormControls();
 }