Esempio n. 1
0
        public CreateTeam() :
            base(Gtk.WindowType.Toplevel)
        {
            // Populating the fixed container
            @fixed.Put(lblTeamMain, 10, 10);

            @fixed.Put(lblTeamName, 10, 50);
            @fixed.Put(entryTeamName, 10, 70);

            @fixed.Put(lblTeamSelectMember, 10, 110);
            @fixed.Put(cmbTeamSelectMember, 10, 130);

            @fixed.Put(btnTeamAddMember, 10, 165);
            @fixed.Put(btnTeamDelete, 100, 165);

            @fixed.Put(lblTeamAddNewMember, 10, 220);

            @fixed.Put(lblTeamFirst, 10, 250);
            @fixed.Put(entryTeamFirst, 100, 250);

            @fixed.Put(lblTeamLast, 10, 280);
            @fixed.Put(entryTeamLast, 100, 280);

            @fixed.Put(lblTeamEmail, 10, 310);
            @fixed.Put(entryTeamEmail, 100, 310);

            @fixed.Put(lblTeamCellphone, 10, 340);
            @fixed.Put(entryTeamCellphone, 100, 340);

            @fixed.Put(btnTeamCreateNewMember, 50, 380);

            @fixed.Put(scrolledPlayersList, 270, 70);

            @fixed.Put(btnTeamCreateTeam, 210, 440);

            // Assigning widget colors and fonts and sizes
            byte[] RGBlabels = { 255, 255, 255 };
            GeneralMethods.LabelColoursFonts(@fixed, RGBlabels);
            GeneralMethods.LabelColoursFonts(@fixed, RGBlabels,
                                             new Label[] { lblTeamMain });
            lblTeamAddNewMember.ModifyFont(Pango.FontDescription.FromString(
                                               "Source Code Pro Regular 16"));
            scrolledPlayersList.SetSizeRequest(200, 320);

            // Window setup
            ModifyBg(StateType.Normal, new Gdk.Color(36, 36, 36));
            SetDefaultSize(500, 500);
            SetPosition(WindowPosition.Center);
            Title = "Team Creator";

            hBox.Add(@fixed);

            Add(hBox);

            ShowAll();
        }
Esempio n. 2
0
                                             "Round 4", "etc..." }); // place holder

        public TournamentViewer() :
            base(Gtk.WindowType.Toplevel)
        {
            roundsList.SetSizeRequest(250, 400);

            // Populating the left half of the fixed container
            // (midpoint is 275)
            @fixed.Put(lblViewerMain, 10, 10);
            @fixed.Put(lblViewerTournamentName, 145, 10);
            @fixed.Put(lblViewerRound, 10, 45);
            @fixed.Put(cmbRounds, 55, 40);
            @fixed.Put(cbtnRounds, 50, 70);

            @fixed.Put(roundsList, 10, 100);

            // Populating the right half of the fixed container
            // (midpoint is 275)
            @fixed.Put(lblViewerTeamOne, 290, 200);
            @fixed.Put(lblViewerScoreOne, 290, 240);
            @fixed.Put(entryScoreOne, 335, 235);

            @fixed.Put(lblViewerVersus, 290, 335);
            @fixed.Put(btnScore, 325, 328);

            @fixed.Put(lblViewerTeamTwo, 290, 400);
            @fixed.Put(lblViewerScoreTwo, 290, 440);
            @fixed.Put(entryViewerScoreTwo, 335, 435);

            // Assigning widget colours and fonts
            GeneralMethods.LabelColoursFonts(cbtnRounds,
                                             new byte[] { 255, 255, 255 });
            GeneralMethods.LabelColoursFonts(@fixed, new byte[] { 255, 255,
                                                                  255 }, new Label[] { lblViewerTournamentName, lblViewerMain });

            // Window setup
            ModifyBg(StateType.Normal, new Gdk.Color(36, 36, 36));
            SetDefaultSize(550, 600);
            SetPosition(WindowPosition.Center);
            Title = "Tournament Viewer";

            hBox.Add(@fixed);

            Add(hBox);

            ShowAll();
            // -----

            // Build();

            //eventbox5.ModifyBg(StateType.Normal, winBgColour);
            //eventbox6.ModifyBg(StateType.Normal, winBgColour);
        }
Esempio n. 3
0
        public CreateTournament() :
            base(Gtk.WindowType.Toplevel)
        {
            // Populating the top half of the fixed container
            @fixed.Put(lblCreateMain, 10, 5);

            @fixed.Put(btnCreateMain, 200, 50);

            @fixed.Put(TeamsList, 10, 100);

            @fixed.Put(lblCreateName, 320, 110);
            @fixed.Put(entryCreateName, 320, 130);

            @fixed.Put(lblCreateFee, 320, 190);
            @fixed.Put(entryCreateFee, 320, 210);

            @fixed.Put(lblCreateSelectTeam, 320, 270);
            @fixed.Put(clicklblCreateTeam, 450, 270);
            @fixed.Put(cmbCreateTeam, 320, 290);
            @fixed.Put(btnCreateAddTeam, 320, 330);
            @fixed.Put(btnCreateDeleteTeams, 320, 370);

            // Populating the bottom half of the fixed container
            @fixed.Put(PrizesList, 10, 450);

            @fixed.Put(btnCreatePrize, 320, 580);
            @fixed.Put(btnCreateDeletePrizes, 320, 620);

            // Assigning widget colours and fonts and sizes
            GeneralMethods.LabelColoursFonts(@fixed,
                                             new byte[] { 255, 255, 255 }, new Label[] { lblCreateMain });
            PrizesList.SetSizeRequest(300, 200);
            TeamsList.SetSizeRequest(300, 300);

            // Window setup
            ModifyBg(StateType.Normal, new Gdk.Color(36, 36, 36));
            SetDefaultSize(600, 700);
            SetPosition(WindowPosition.Center);
            Title = "Tournament Creator";

            hBox.Add(@fixed);

            Add(hBox);

            ShowAll();
        }
Esempio n. 4
0
        public CreatePrize() :
            base(Gtk.WindowType.Toplevel)
        {
            // Populating the fixed container
            @fixed.Put(lblPrizeMain, 10, 10);

            @fixed.Put(lblPrizePlaceNumber, 40, 60);
            @fixed.Put(entryPrizePlaceNumber, 200, 60);

            @fixed.Put(lblPrizePlaceName, 40, 100);
            @fixed.Put(entryPrizePlaceName, 200, 100);

            @fixed.Put(lblPrizePlaceAmount, 40, 140);
            @fixed.Put(entryPrizePlaceAmount, 200, 140);

            @fixed.Put(lblOR, 160, 180);

            @fixed.Put(lblPrizePercentage, 40, 220);
            @fixed.Put(entryPrizePercentage, 200, 220);

            @fixed.Put(btnPrizeCreate, 160, 280);

            // Assigning widget colora and fonts
            GeneralMethods.LabelColoursFonts(@fixed,
                                             new byte[] { 255, 255, 255 }, new Label[] { lblPrizeMain });

            // Window setup
            ModifyBg(StateType.Normal, new Gdk.Color(36, 36, 36));
            SetDefaultSize(400, 400);
            SetPosition(WindowPosition.Center);
            Title = "Prize Creator";

            hBox.Add(@fixed);

            Add(hBox);

            ShowAll();
        }