Exemplo n.º 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);
        }
Exemplo n.º 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;
     }
 }