Beispiel #1
0
        private void resultsMenuItem_Click(object sender, RoutedEventArgs e)
        {
            var panel = new EventPanel();

            panel.Populate();
            panel.ContestantSelected += panel_ContestantSelected;
            ReplaceMainPanelWith(panel);
        }
Beispiel #2
0
 public void SwitchToEventPanel(string EventCode, int olympiadId = 0)
 {
     if (olympiadId == 0)
     {
         var context = DataEntitiesProvider.Provide();
         olympiadId = context.Olympiad_Infoes.OrderByDescending(x => x.StartDate).First().Id;
     }
     using (new SpinnyCursor())
     {
         var panel = new EventPanel();
         panel.Populate(EventCode, olympiadId);
         panel.ContestantSelected += panel_ContestantSelected;
         ReplaceMainPanelWith(panel);
     }
 }