示例#1
0
        public static bool ShowStartWindow(CompetitionController aController)
        {
            CompetitionParamsPanel panel = aController.GetParametersPanel();
            fStartCompetition      form  = new fStartCompetition();

            form.AppendPanel(panel);
            bool result = form.ShowDialog() == DialogResult.OK;

            return(result);
        }
示例#2
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;
     }
 }