private void buildFirstWeek()
        {
            firstWeek              = new GroupBox();
            firstWeek.AutoSize     = true;
            firstWeek.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            firstWeek.BackColor    = System.Drawing.Color.Black;
            firstWeek.Location     = new System.Drawing.Point(10, 10);
            firstWeek.Name         = "gbWeek1";
            firstWeek.Size         = new System.Drawing.Size(1810, 280);
            parent.Controls.Add(firstWeek);

            //firstWeek.SizeChanged += new EventHandler(changeSize);

            for (int i = 0; i < 5; i++)
            {
                int anX = 0;
                if (i == 0)
                {
                    anX = 10;
                }
                else
                {
                    anX = 10 + days[i - 1].gb.Location.X + days[i - 1].gb.Width + 20;
                }

                AssignmentDay temp = new AssignmentDay(firstWeek, i, anX);
                temp.go();
                days.Add(temp);
            }
        }
        public void lastFriday(bool hide)
        {
            isFridayVisible = !hide;

            if (!hide)
            {
                friday           = new GroupBox();
                friday.AutoSize  = true;
                friday.BackColor = System.Drawing.Color.DarkGoldenrod;
                friday.ForeColor = System.Drawing.Color.White;

                if (isRepeatingVisible)
                {
                    friday.Location = new System.Drawing.Point(repeating.Location.X, repeating.Location.Y + repeating.Height + CHANGE_Y);
                }
                else
                {
                    friday.Location = new System.Drawing.Point(secondWeek.Location.X, secondWeek.Location.Y + secondWeek.Height + CHANGE_Y);
                }

                friday.Name = "gbLastFriday";
                friday.Size = new System.Drawing.Size(403, 140);
                friday.Text = "Last";
                parent.Controls.Add(friday);

                lstFriday = new AssignmentDay(friday, 10, 20);
                lstFriday.go();
            }
            else
            {
                lstFriday.reset();
                friday.Visible = false;
                parent.Controls.Remove(friday);
            }
        }
        private void buildSecondWeek()
        {
            secondWeek              = new GroupBox();
            secondWeek.AutoSize     = true;
            secondWeek.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            secondWeek.BackColor    = System.Drawing.Color.Black;
            secondWeek.Location     = new System.Drawing.Point(firstWeek.Location.X, firstWeek.Location.Y + firstWeek.Height + CHANGE_Y * 4);
            secondWeek.Name         = "gbWeek2";
            secondWeek.Size         = new System.Drawing.Size(1810, 280);
            parent.Controls.Add(secondWeek);

            for (int i = 5; i < 10; i++)
            {
                int anX = 0;
                if (i == 5)
                {
                    anX = 10;
                }
                else
                {
                    anX = 10 + days[i - 6].gb.Location.X + days[i - 6].gb.Width + 20;
                }

                AssignmentDay temp = new AssignmentDay(secondWeek, i, anX);


                temp.go();
                days.Add(temp);
            }
        }
        public void buildRepeating(bool hide)
        {
            isRepeatingVisible = !hide;

            if (!hide)
            {
                repeating = new GroupBox();
                repeating.AutoSize = true;
                repeating.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                repeating.BackColor = System.Drawing.Color.Black;
                repeating.ForeColor = System.Drawing.Color.White;

                if (isFridayVisible)
                    repeating.Location = new System.Drawing.Point(friday.Location.X, friday.Location.Y + friday.Height + CHANGE_Y);
                else
                    repeating.Location = new System.Drawing.Point(secondWeek.Location.X, secondWeek.Location.Y + secondWeek.Height + CHANGE_Y * 4);

                repeating.Text = "Repeating Assignments";
                repeating.Name = "gbWeek2";
                repeating.Size = new System.Drawing.Size(1810, 280);
                parent.Controls.Add(repeating);

                labDirections = new Label();
                labDirections.AutoSize = true;
                labDirections.ForeColor = System.Drawing.Color.DarkGoldenrod;
                labDirections.Font = new System.Drawing.Font("Rockwell", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                labDirections.Location = new System.Drawing.Point(20, 20);
                labDirections.Name = "labDirections";
                labDirections.Size = new System.Drawing.Size(1379, 33);
                labDirections.TabIndex = 9;
                labDirections.Text = "If you don\'t want your repeating assignment (when you first create it) to take effect until the next week, l" +
                    "eft-click on it once";
                repeating.Controls.Add(labDirections);

                for (int i = 20; i < 25; i++)
                {
                    int anX = 0;
                    if (i == 20)
                        anX = 10;
                    else
                        anX = 10 + days[i - 21].gb.Location.X + days[i - 21].gb.Width + 20;

                    AssignmentDay temp = new AssignmentDay(repeating, i, anX);

                    temp.go();
                    repeatingDays.Add(temp);
                }
            }
            else
            {
                reset();
                go();
            }
        }
        private void buildSecondWeek()
        {
            secondWeek = new GroupBox();
            secondWeek.AutoSize = true;
            secondWeek.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            secondWeek.BackColor = System.Drawing.Color.Black;
            secondWeek.Location = new System.Drawing.Point(firstWeek.Location.X, firstWeek.Location.Y + firstWeek.Height + CHANGE_Y * 4);
            secondWeek.Name = "gbWeek2";
            secondWeek.Size = new System.Drawing.Size(1810, 280);
            parent.Controls.Add(secondWeek);

            for (int i = 5; i < 10; i++)
            {
                int anX = 0;
                if (i == 5)
                    anX = 10;
                else
                    anX = 10 + days[i - 6].gb.Location.X + days[i - 6].gb.Width + 20;

                AssignmentDay temp = new AssignmentDay(secondWeek, i, anX);

                temp.go();
                days.Add(temp);
            }
        }
        private void buildFirstWeek()
        {
            firstWeek = new GroupBox();
            firstWeek.AutoSize = true;
            firstWeek.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            firstWeek.BackColor = System.Drawing.Color.Black;
            firstWeek.Location = new System.Drawing.Point(10, 10);
            firstWeek.Name = "gbWeek1";
            firstWeek.Size = new System.Drawing.Size(1810, 280);
            parent.Controls.Add(firstWeek);

            //firstWeek.SizeChanged += new EventHandler(changeSize);

            for (int i = 0; i < 5; i++)
            {
                int anX = 0;
                if (i == 0)
                    anX = 10;
                else
                    anX = 10 + days[i - 1].gb.Location.X + days[i - 1].gb.Width + 20;

                AssignmentDay temp = new AssignmentDay(firstWeek, i, anX);
                temp.go();
                days.Add(temp);
            }
        }
        public void lastFriday(bool hide)
        {
            isFridayVisible = !hide;

            if (!hide)
            {
                friday = new GroupBox();
                friday.AutoSize = true;
                friday.BackColor = System.Drawing.Color.DarkGoldenrod;
                friday.ForeColor = System.Drawing.Color.White;

                if (isRepeatingVisible)
                    friday.Location = new System.Drawing.Point(repeating.Location.X, repeating.Location.Y + repeating.Height + CHANGE_Y);
                else
                    friday.Location = new System.Drawing.Point(secondWeek.Location.X, secondWeek.Location.Y + secondWeek.Height + CHANGE_Y);

                friday.Name = "gbLastFriday";
                friday.Size = new System.Drawing.Size(403, 140);
                friday.Text = "Last";
                parent.Controls.Add(friday);

                lstFriday = new AssignmentDay(friday, 10, 20);
                lstFriday.go();
            }
            else
            {
                lstFriday.reset();
                friday.Visible = false;
                parent.Controls.Remove(friday);
            }
        }
        public void buildRepeating(bool hide)
        {
            isRepeatingVisible = !hide;

            if (!hide)
            {
                repeating              = new GroupBox();
                repeating.AutoSize     = true;
                repeating.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                repeating.BackColor    = System.Drawing.Color.Black;
                repeating.ForeColor    = System.Drawing.Color.White;

                if (isFridayVisible)
                {
                    repeating.Location = new System.Drawing.Point(friday.Location.X, friday.Location.Y + friday.Height + CHANGE_Y);
                }
                else
                {
                    repeating.Location = new System.Drawing.Point(secondWeek.Location.X, secondWeek.Location.Y + secondWeek.Height + CHANGE_Y * 4);
                }

                repeating.Text = "Repeating Assignments";
                repeating.Name = "gbWeek2";
                repeating.Size = new System.Drawing.Size(1810, 280);
                parent.Controls.Add(repeating);

                labDirections           = new Label();
                labDirections.AutoSize  = true;
                labDirections.ForeColor = System.Drawing.Color.DarkGoldenrod;
                labDirections.Font      = new System.Drawing.Font("Rockwell", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                labDirections.Location  = new System.Drawing.Point(20, 20);
                labDirections.Name      = "labDirections";
                labDirections.Size      = new System.Drawing.Size(1379, 33);
                labDirections.TabIndex  = 9;
                labDirections.Text      = "If you don\'t want your repeating assignment (when you first create it) to take effect until the next week, l" +
                                          "eft-click on it once";
                repeating.Controls.Add(labDirections);

                for (int i = 20; i < 25; i++)
                {
                    int anX = 0;
                    if (i == 20)
                    {
                        anX = 10;
                    }
                    else
                    {
                        anX = 10 + days[i - 21].gb.Location.X + days[i - 21].gb.Width + 20;
                    }

                    AssignmentDay temp = new AssignmentDay(repeating, i, anX);

                    temp.go();
                    repeatingDays.Add(temp);
                }
            }
            else
            {
                reset();
                go();
            }
        }