AdvancedLogParser.PrimaryDisplay.PrimaryDisplay C# (CSharp) Method

PrimaryDisplay() public method

public PrimaryDisplay ( ) : System
return System
        public PrimaryDisplay()
        {
            playerList.Text = "Player Lists";
            playerList.Click += ClickPlayerList;
            playerList.Size = playerList.PreferredSize;
            thisMonth.Text = "Active This Month";
            thisMonth.Click += ClickThisMonth;
            thisMonth.Size = thisMonth.PreferredSize;
            thisMonth.Location = new Point(0, playerList.Height);
            lastMonth.Text = "Inactive Since Last Month";
            lastMonth.Click += ClickLastMonth;
            lastMonth.Size = lastMonth.PreferredSize;
            lastMonth.Location = new Point(thisMonth.Width, playerList.Height);
            older.Text = "Inactive For Longer";
            older.Click += ClickOlder;
            older.Size = lastMonth.PreferredSize;
            older.Location = new Point(lastMonth.Location.X + lastMonth.Width, playerList.Height);
            allPlayers.Text = "All Players";
            allPlayers.Click += ClickAll;
            allPlayers.Size = allPlayers.PreferredSize;
            allPlayers.Location = new Point(older.Location.X + older.Width, playerList.Height);

            this.Height = 786;
            this.Width = 820;

            mainList.View = View.Details;
            mainList.Height = this.Height - 30 - thisMonth.Height - playerList.Height;
            mainList.Width = this.Width - 15;

            mainList.DoubleClick += MainListDoubleClicked;

            mainList.Location = new Point(0, thisMonth.Height + playerList.Height);

            mainList.FullRowSelect = true;

            this.Controls.Add(playerList);
            
            this.Controls.Add(mainList);
            this.Controls.Add(thisMonth);
            this.Controls.Add(lastMonth);
            this.Controls.Add(older);
            this.Controls.Add(allPlayers);

            DrawList();
        }