Exemple #1
0
 private void NewInfo_Trainer_Click(object sender, RoutedEventArgs e)
 {
     trainerWindow           = new TrainerWindow();
     trainerWindow.OnAdd    += managementSystem.Library.Trainers.Add;
     trainerWindow.OnUpdate += managementSystem.Library.Trainers.Update;
     trainerWindow.Show();
 }
Exemple #2
0
        private void TrainerGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Trainer trainer = TrainerGrid.SelectedItem as Trainer;

            if (trainer == null)
            {
                return;
            }
            trainerWindow           = new TrainerWindow(trainer);
            trainerWindow.Title     = string.Format("Jockey - Id: {0}, Name: {1}", trainer.Id, trainer.FirstName + " " + trainer.LastName);
            trainerWindow.OnAdd    += managementSystem.Library.Trainers.Add;
            trainerWindow.OnUpdate += managementSystem.Library.Trainers.Update;
            trainerWindow.Show();
        }