예제 #1
0
 private void NewInfo_Racecourse_Click(object sender, RoutedEventArgs e)
 {
     racecourseWindow           = new RacecourseWindow();
     racecourseWindow.OnAdd    += managementSystem.Library.Racecourses.Add;
     racecourseWindow.OnUpdate += managementSystem.Library.Racecourses.Update;
     racecourseWindow.Show();
 }
예제 #2
0
        private void RacecourseGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Racecourse racecourse = RacecourseGrid.SelectedItem as Racecourse;

            if (racecourse == null)
            {
                return;
            }
            racecourseWindow           = new RacecourseWindow(racecourse);
            racecourseWindow.Title     = string.Format("Racecourse - Id: {0}, Name: {1}", racecourse.Id, racecourse.Name);
            racecourseWindow.OnAdd    += managementSystem.Library.Racecourses.Add;
            racecourseWindow.OnUpdate += managementSystem.Library.Racecourses.Update;
            racecourseWindow.Show();
        }