コード例 #1
0
 private void CreatePanels()
 {
     FCompetitionController           = CompetitionControllers.CompetitionControllers.GetController(FCompetition);
     pnlCompetition                   = FCompetitionController.GetControl();
     pnlCompetition.OnAfterMatchEdit += new EventHandler(OnAfterMatchEdit);
     if (pnlCompetition is SwissPanel)
     {
         (pnlCompetition as SwissPanel).OnNextRoundClick += new EventHandler(OnNextRound);
     }
     pnlCompetitionParams = FCompetitionController.GetParametersPanel();
     if (pnlCompetitionParams != null)
     {
         pnlCompetitionParams.ReadOnly = true;
     }
 }