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); }
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; } }