Esempio n. 1
0
        private void HfBtnShowGames_Click(object sender, EventArgs e)
        {
            ucGames ucGms = new ucGames();

            ucGms.InitializeUC(_Tournament);
            ucGms.Dock = DockStyle.Fill;
            this.Controls.Add(ucGms);
            ucGms.BringToFront();
        }
Esempio n. 2
0
        private void CompetitionFB_Click(object sender, EventArgs e)
        {
            Label lbl = (Label)sender;
            HighlightFancyButton hf = (HighlightFancyButton)lbl.Parent;

            flowPanelMain.SendToBack();
            Player        selectedPlayer = (Player)hf.Obj;
            List <GoGame> games          = _Competition.Games.Where((x) => x.Player1.Name == selectedPlayer.Name || x.Player2.Name == selectedPlayer.Name).ToList();
            ucGames       ucGms          = new ucGames();

            ucGms.InitializeUC(games);
            ucGms.Dock = DockStyle.Fill;
            this.Controls.Add(ucGms);
            ucGms.BringToFront();
        }