コード例 #1
0
 private void NewInfo_Contest_Click(object sender, RoutedEventArgs e)
 {
     contestWindow           = new ContestWindow();
     contestWindow.OnAdd    += managementSystem.Library.Contests.Add;
     contestWindow.OnUpdate += managementSystem.Library.Contests.Update;
     contestWindow.Show();
 }
コード例 #2
0
        private void ContestsGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Contest contest = ContestsGrid.SelectedItem as Contest;

            if (contest == null)
            {
                return;
            }
            contestWindow           = new ContestWindow(contest);
            contestWindow.Title     = string.Format("Contest - Id: {0}, Title: {1}", contest.Id, contest.Title);
            contestWindow.OnAdd    += managementSystem.Library.Contests.Add;
            contestWindow.OnUpdate += managementSystem.Library.Contests.Update;
            contestWindow.Show();
        }