Пример #1
0
        public CustomButton CreateTeamButton(UserTeamCombo u)
        {
            CustomButton ret = new CustomButton()
            {
                Text = string.Format("Sign in on {0}", u.team)
            };

            ret.Font = buttonFont;
            ret.Size = ret.PreferredSize;
            //ret.FlatStyle = FlatStyle.Flat;
            //ret.BackColor = ret.FlatAppearance.MouseOverBackColor = ret.FlatAppearance.MouseDownBackColor = ret.FlatAppearance.CheckedBackColor = Color.FromArgb(0x00,0x99,0xcc);
            //ret.ForeColor = Color.White;
            ret.TabStop = false;
            //ret.FlatAppearance.BorderSize = 0;
            //ret.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
            ret.Click += (o, e) => teamSelected(u);

            return ret;
        }
Пример #2
0
        void ShowTeams()
        {
            teams = null;

            teams = new TeamList(authStart, (u) =>
            {
                teamSelected = u;
                BeginInvoke(new Action(SelectedTeam));
            });

            teams.Dock = DockStyle.Fill;
            teams.BackColor = Color.Transparent;

            Controls.Add(teams);
            email.Visible = false;
        }