Example #1
0
        public MenuEmail(ContentManager contentManager)
        {
            Texture textureFrame = contentManager.GetTexture("MenuEmailFrame");

            iconFrame = new Icon(textureFrame);
            Width     = iconFrame.Width;
            Height    = iconFrame.Height;

            string fontPath        = contentManager.GetContentPath("Arcade");
            Color  fontColorWhite  = Styles.Colors.White;
            int    fontSizeTitle   = Styles.FontSizes.Title;
            int    fontSizeTooltip = Styles.FontSizes.Tooltip;

            buttonCloseWindow             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonCloseWindow.Icon        = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.IconHovered = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.ButtonType  = ButtonType.IconOnly;
            buttonCloseWindow.Clicked    += ButtonCloseOnClicked;
            buttonCloseWindow.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                         fontColorWhite, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_CLOSE_WINDOW));

            buttonOpenAttachment             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonOpenAttachment.Icon        = ControlFactory.CreateIcon(contentManager, "IconAttachment");
            buttonOpenAttachment.IconHovered = ControlFactory.CreateIcon(contentManager, "IconAttachment");
            buttonOpenAttachment.ButtonType  = ButtonType.IconOnly;
            buttonOpenAttachment.Clicked    += ButtonAttachmentOnClicked;
            buttonOpenAttachment.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                            fontColorWhite, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_OPEN_ATTACHMENT));

            iconMainMenu = ControlFactory.CreateIcon(contentManager, "IconMailUnread");

            labelMainMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, "Read Email");
            labelMainMenu.EnableShadow(contentManager, 2, 2);

            labelFrom    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, defaultText);
            labelSubject = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, defaultText);
            labelContent = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, defaultText, 550);

            Controls.Add(iconFrame);
            Controls.Add(iconMainMenu);
            Controls.Add(labelContent);
            Controls.Add(labelMainMenu);
            Controls.Add(labelFrom);
            Controls.Add(labelSubject);
            Controls.Add(buttonCloseWindow);
            Controls.Add(buttonOpenAttachment);

            Visible = false;
        }
        public MenuResume(ContentManager contentManager, Resume resume)
        {
            Texture textureFrame = contentManager.GetTexture("MenuResumeFrame");

            iconFrame = new Icon(textureFrame);
            Width     = iconFrame.Width;
            Height    = iconFrame.Height;

            string fontPath        = contentManager.GetContentPath("Arcade");
            Color  fontColorWhite  = Styles.Colors.White;
            Color  fontColorYellow = Styles.Colors.PaleYellow;
            int    fontSizeTitle   = Styles.FontSizes.Title;
            int    fontSizeContent = Styles.FontSizes.Content;
            int    fontSizeTooltip = Styles.FontSizes.Tooltip;

            buttonRejectResume             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonRejectResume.Icon        = ControlFactory.CreateIcon(contentManager, "IconReject");
            buttonRejectResume.IconHovered = ControlFactory.CreateIcon(contentManager, "IconReject");
            buttonRejectResume.ButtonType  = ButtonType.IconOnly;
            buttonRejectResume.Clicked    += ButtonRejectOnClicked;
            buttonRejectResume.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                          fontColorWhite, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_REJECT_RESUME));

            buttonAcceptResume             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonAcceptResume.Icon        = ControlFactory.CreateIcon(contentManager, "IconAccept");
            buttonAcceptResume.IconHovered = ControlFactory.CreateIcon(contentManager, "IconAccept");
            buttonAcceptResume.ButtonType  = ButtonType.IconOnly;
            buttonAcceptResume.Clicked    += ButtonAcceptOnClicked;
            buttonAcceptResume.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                          fontColorWhite, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_ACCEPT_RESUME));

            iconMainMenu   = ControlFactory.CreateIcon(contentManager, "IconNametag");
            iconSkillsMenu = ControlFactory.CreateIcon(contentManager, "IconPenPaper");

            labelMainMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, "Review Resume");
            labelMainMenu.EnableShadow(contentManager, 2, 2);

            labelSkillsMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, "Skills");
            labelSkillsMenu.EnableShadow(contentManager, 2, 2);

            iconCommunication = ControlFactory.CreateIcon(contentManager, "IconCommunication");
            iconLeadership    = ControlFactory.CreateIcon(contentManager, "IconLeadership");
            iconCreativity    = ControlFactory.CreateIcon(contentManager, "IconCreativity");
            iconIntelligence  = ControlFactory.CreateIcon(contentManager, "IconIntelligence");

            labelCommunicationValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow,
                                                                 defaultText);
            labelLeadershipValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow,
                                                              defaultText);
            labelCreativityValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow,
                                                              defaultText);
            labelIntelligenceValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow,
                                                                defaultText);

            labelName    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow, resume.Employee.FullName);
            labelContent = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow,
                                                      resume.Content, 550);
            labelJob    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow, resume.Employee.Job.Title);
            labelSalary = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorYellow, String.Format("${0} / yr", resume.Employee.Job.CurrentLevel.Salary));

            Controls.Add(iconFrame);
            Controls.Add(iconMainMenu);
            Controls.Add(iconSkillsMenu);
            Controls.Add(labelName);
            Controls.Add(labelCommunicationValue);
            Controls.Add(labelContent);
            Controls.Add(labelCreativityValue);
            Controls.Add(labelIntelligenceValue);
            Controls.Add(labelJob);
            Controls.Add(labelLeadershipValue);
            Controls.Add(labelMainMenu);
            Controls.Add(labelSalary);
            Controls.Add(labelSkillsMenu);
            Controls.Add(iconCommunication);
            Controls.Add(iconCreativity);
            Controls.Add(iconIntelligence);
            Controls.Add(iconLeadership);
            Controls.Add(buttonAcceptResume);
            Controls.Add(buttonRejectResume);

            this.resume = resume;
        }
        public MenuInspectEquipment(ContentManager contentManager)
        {
            Texture textureFrame = contentManager.GetTexture("MenuInspectEmployeeFrame");

            iconFrame = new Icon(textureFrame);
            Width     = iconFrame.Width;
            Height    = iconFrame.Height;

            string fontPath        = contentManager.GetContentPath(Styles.Fonts.Arcade);
            Color  fontColor       = Styles.Colors.White;
            Color  fontColorValue  = Styles.Colors.PaleYellow;
            int    fontSizeTitle   = Styles.FontSizes.Title;
            int    fontSizeContent = Styles.FontSizes.Content;
            int    fontSizeTooltip = Styles.FontSizes.Tooltip;

            buttonCloseWindow             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonCloseWindow.Icon        = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.IconHovered = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.ButtonType  = ButtonType.IconOnly;
            buttonCloseWindow.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                         fontColor, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_CLOSE_WINDOW));
            buttonCloseWindow.Clicked += HandleButtonCloseWindowClicked;

            buttonSellEquipment             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonSellEquipment.Icon        = ControlFactory.CreateIcon(contentManager, "IconSellEquipment");
            buttonSellEquipment.IconHovered = ControlFactory.CreateIcon(contentManager, "IconSellEquipment");
            buttonSellEquipment.ButtonType  = ButtonType.IconOnly;
            buttonSellEquipment.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                           fontColor, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_SELL_EQUIPMENT));
            buttonSellEquipment.Clicked += HandleButtonSellEquipmentClicked;

            buttonRepairEquipment             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonRepairEquipment.Icon        = ControlFactory.CreateIcon(contentManager, "IconRepairEquipment");
            buttonRepairEquipment.IconHovered = ControlFactory.CreateIcon(contentManager, "IconRepairEquipment");
            buttonRepairEquipment.ButtonType  = ButtonType.IconOnly;
            buttonRepairEquipment.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                             fontColor, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_REPAIR_EQUIPMENT));
            buttonRepairEquipment.Clicked += HandleButtonRepairEquipmentClicked;

            iconMainMenu   = ControlFactory.CreateIcon(contentManager, "IconPersonPlain");
            iconNeedsMenu  = ControlFactory.CreateIcon(contentManager, "IconStatistics");
            iconSkillsMenu = ControlFactory.CreateIcon(contentManager, "IconPenPaper");

            labelMainMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColor, "Inspect Equipment");
            labelMainMenu.EnableShadow(contentManager, 2, 2);
            labelNeedsMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColor, "Needs");
            labelNeedsMenu.EnableShadow(contentManager, 2, 2);
            labelSkillsMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColor, "Skills");
            labelSkillsMenu.EnableShadow(contentManager, 2, 2);

            iconHealth  = ControlFactory.CreateIcon(contentManager, "IconMedkit");
            iconHygiene = ControlFactory.CreateIcon(contentManager, "IconToothbrush");
            iconSleep   = ControlFactory.CreateIcon(contentManager, "IconPersonTired");
            iconThirst  = ControlFactory.CreateIcon(contentManager, "IconSoda");
            iconHunger  = ControlFactory.CreateIcon(contentManager, "IconChicken");

            labelHealthValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelHygieneValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelSleepValue   = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelThirstValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelHungerValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);

            iconCommunication = ControlFactory.CreateIcon(contentManager, "IconCommunication");
            iconLeadership    = ControlFactory.CreateIcon(contentManager, "IconLeadership");
            iconCreativity    = ControlFactory.CreateIcon(contentManager, "IconCreativity");
            iconIntelligence  = ControlFactory.CreateIcon(contentManager, "IconIntelligence");

            labelCommunicationValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelLeadershipValue    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelCreativityValue    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelIntelligenceValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);

            labelName      = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Name:");
            labelAge       = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Age:");
            labelCondition = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Condition:");

            labelNameValue      = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelAgeValue       = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelConditionValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);

            Controls.Add(iconFrame);
            Controls.Add(buttonCloseWindow);
            Controls.Add(iconMainMenu);
            Controls.Add(iconNeedsMenu);
            Controls.Add(iconSkillsMenu);
            Controls.Add(labelMainMenu);
            Controls.Add(labelNeedsMenu);
            Controls.Add(labelSkillsMenu);
            Controls.Add(iconHealth);
            Controls.Add(iconHygiene);
            Controls.Add(iconSleep);
            Controls.Add(iconThirst);
            Controls.Add(iconHunger);
            Controls.Add(labelHealthValue);
            Controls.Add(labelHygieneValue);
            Controls.Add(labelSleepValue);
            Controls.Add(labelThirstValue);
            Controls.Add(labelHungerValue);
            Controls.Add(iconCommunication);
            Controls.Add(iconLeadership);
            Controls.Add(iconCreativity);
            Controls.Add(iconIntelligence);
            Controls.Add(labelCommunicationValue);
            Controls.Add(labelLeadershipValue);
            Controls.Add(labelCreativityValue);
            Controls.Add(labelIntelligenceValue);
            Controls.Add(labelName);
            Controls.Add(labelAge);
            Controls.Add(labelCondition);
            Controls.Add(labelNameValue);
            Controls.Add(labelAgeValue);
            Controls.Add(labelConditionValue);
            Controls.Add(buttonSellEquipment);
            Controls.Add(buttonRepairEquipment);

            Visible = false;
        }
        public MenuMailbox(ContentManager contentManager, IEnumerable <MailItem> inbox, IEnumerable <MailItem> outbox, IEnumerable <MailItem> archive)
        {
            Texture texture = contentManager.GetTexture("MenuMailboxFrame");

            iconFrame = new Icon(texture);
            Width     = iconFrame.Width;
            Height    = iconFrame.Height;

            string fontPath            = contentManager.GetContentPath("Arcade");
            Color  fontColorWhite      = Styles.Colors.White;
            Color  fontColorPaleYellow = Styles.Colors.PaleYellow;
            int    fontSizeTitle       = Styles.FontSizes.Title;
            int    fontSizeContent     = Styles.FontSizes.Content;
            int    fontSizeTooltip     = Styles.FontSizes.Tooltip;

            iconFolderHeader  = ControlFactory.CreateIcon(contentManager, "IconFolderOpen");
            labelFolderHeader = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, "Folder");
            labelFolderHeader.EnableShadow(contentManager, 2, 2);
            labelPageNumber = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorPaleYellow, "N/A");
            labelFrom       = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorWhite, "From");
            labelSubject    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorWhite, "Subject");

            buttonInboxFolder            = ControlFactory.CreateButton(contentManager, "ButtonMailFolder", "ButtonMailFolderHover");
            buttonInboxFolder.Icon       = ControlFactory.CreateIcon(contentManager, "IconFolderInbox");
            buttonInboxFolder.Label      = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorPaleYellow, "Inbox");
            buttonInboxFolder.ButtonType = ButtonType.IconAndText;

            buttonOutboxFolder            = ControlFactory.CreateButton(contentManager, "ButtonMailFolder", "ButtonMailFolderHover");
            buttonOutboxFolder.Icon       = ControlFactory.CreateIcon(contentManager, "IconFolderOutbox");
            buttonOutboxFolder.Label      = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorPaleYellow, "Outbox");
            buttonOutboxFolder.ButtonType = ButtonType.IconAndText;

            buttonArchiveFolder            = ControlFactory.CreateButton(contentManager, "ButtonMailFolder", "ButtonMailFolderHover");
            buttonArchiveFolder.Icon       = ControlFactory.CreateIcon(contentManager, "IconFolderArchive");
            buttonArchiveFolder.Label      = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorPaleYellow, "Archive");
            buttonArchiveFolder.ButtonType = ButtonType.IconAndText;

            buttonArrowLeft             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonArrowLeft.Icon        = ControlFactory.CreateIcon(contentManager, "IconArrowCircleLeft");
            buttonArrowLeft.IconHovered = ControlFactory.CreateIcon(contentManager, "IconArrowCircleLeft");
            buttonArrowLeft.ButtonType  = ButtonType.IconOnly;

            buttonArrowRight             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonArrowRight.Icon        = ControlFactory.CreateIcon(contentManager, "IconArrowCircleRight");
            buttonArrowRight.IconHovered = ControlFactory.CreateIcon(contentManager, "IconArrowCircleRight");
            buttonArrowRight.ButtonType  = ButtonType.IconOnly;

            labelInboxFolder = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, "Inbox");
            labelInboxFolder.EnableShadow(contentManager, 2, 2);
            labelOutboxFolder = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, "Outbox");
            labelOutboxFolder.EnableShadow(contentManager, 2, 2);
            labelArchiveFolder = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColorWhite, "Archive");
            labelArchiveFolder.EnableShadow(contentManager, 2, 2);

            iconInboxFolder   = ControlFactory.CreateIcon(contentManager, "IconFolderInbox");
            iconOutboxFolder  = ControlFactory.CreateIcon(contentManager, "IconFolderOutbox");
            iconArchiveFolder = ControlFactory.CreateIcon(contentManager, "IconFolderArchive");

            buttonMailOpen            = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonMailOpen.Icon       = ControlFactory.CreateIcon(contentManager, "IconMailOpen");
            buttonMailOpen.ButtonType = ButtonType.IconOnly;
            buttonMailOpen.Visible    = false;
            buttonMailOpen.Tooltip    = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                     fontColorWhite, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_OPEN_MAIL));

            buttonMailArchive            = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonMailArchive.Icon       = ControlFactory.CreateIcon(contentManager, "IconMailArchive");
            buttonMailArchive.ButtonType = ButtonType.IconOnly;
            buttonMailArchive.Visible    = true;
            buttonMailArchive.Tooltip    = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                        fontColorWhite, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_ARCHIVE_MAIL));

            iconTopSeparator = ControlFactory.CreateIcon(contentManager, "IconSeparator");

            buttonCloseWindow             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonCloseWindow.Icon        = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.IconHovered = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.ButtonType  = ButtonType.IconOnly;
            buttonCloseWindow.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                         fontColorWhite, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_CLOSE_WINDOW));

            menuEmail         = new MenuEmail(contentManager);
            menuEmail.Closed += MenuEmailOnClosed;

            AddButtonMailItems(contentManager, inbox, outbox, archive);

            Controls.Add(iconFrame);
            Controls.Add(iconFolderHeader);
            Controls.Add(labelFolderHeader);
            Controls.Add(labelPageNumber);
            Controls.Add(labelFrom);
            Controls.Add(labelSubject);
            Controls.Add(buttonInboxFolder);
            Controls.Add(buttonOutboxFolder);
            Controls.Add(buttonArchiveFolder);
            Controls.Add(buttonArrowLeft);
            Controls.Add(buttonArrowRight);
            Controls.Add(buttonMailOpen);
            Controls.Add(buttonMailArchive);
            Controls.Add(iconTopSeparator);
            Controls.Add(buttonCloseWindow);

            buttonInboxFolder.Clicked   += buttonInboxFolder_Clicked;
            buttonOutboxFolder.Clicked  += buttonOutboxFolder_Clicked;
            buttonArchiveFolder.Clicked += buttonArchiveFolder_Clicked;
            buttonArrowLeft.Clicked     += buttonArrowLeft_Clicked;
            buttonArrowRight.Clicked    += buttonArrowRight_Clicked;
            buttonMailOpen.Clicked      += buttonView_Clicked;
            buttonMailArchive.Clicked   += buttonArchive_Clicked;
            buttonCloseWindow.Clicked   += buttonCloseWindow_Clicked;

            currentDisplayedPageInbox = 1;
            SetActiveTab(ActiveTab.Inbox);

            Visible = false;
        }
        public MenuInspectEmployee(ContentManager contentManager)
        {
            Texture textureFrame = contentManager.GetTexture("MenuInspectEmployeeFrame");

            iconFrame = new Icon(textureFrame);
            Width     = iconFrame.Width;
            Height    = iconFrame.Height;

            string fontPath        = contentManager.GetContentPath(Styles.Fonts.Arcade);
            Color  fontColor       = Styles.Colors.White;
            Color  fontColorValue  = Styles.Colors.PaleYellow;
            int    fontSizeTitle   = Styles.FontSizes.Title;
            int    fontSizeContent = Styles.FontSizes.Content;
            int    fontSizeTooltip = Styles.FontSizes.Tooltip;

            buttonCloseWindow             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonCloseWindow.Icon        = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.IconHovered = ControlFactory.CreateIcon(contentManager, "IconWindowClose");
            buttonCloseWindow.ButtonType  = ButtonType.IconOnly;
            buttonCloseWindow.Clicked    += OnButtonCloseWindowOnClicked;

            buttonFireEmployee             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonFireEmployee.Icon        = ControlFactory.CreateIcon(contentManager, "IconFireEmployee");
            buttonFireEmployee.IconHovered = ControlFactory.CreateIcon(contentManager, "IconFireEmployee");
            buttonFireEmployee.ButtonType  = ButtonType.IconOnly;
            buttonFireEmployee.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                          fontColor, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_FIRE_EMPLOYEE));
            buttonFireEmployee.Clicked += ButtonFireEmployeeOnClicked;

            buttonDisciplineEmployee             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonDisciplineEmployee.Icon        = ControlFactory.CreateIcon(contentManager, "IconDisciplineEmployee");
            buttonDisciplineEmployee.IconHovered = ControlFactory.CreateIcon(contentManager, "IconDisciplineEmployee");
            buttonDisciplineEmployee.ButtonType  = ButtonType.IconOnly;
            buttonDisciplineEmployee.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                                fontColor, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_DISCIPLINE_EMPLOYEE));
            buttonDisciplineEmployee.Clicked += ButtonDisciplineEmployeeOnClicked;

            buttonPromoteEmployee             = ControlFactory.CreateButton(contentManager, "ButtonSquare", "ButtonSquareHover");
            buttonPromoteEmployee.Icon        = ControlFactory.CreateIcon(contentManager, "IconPromoteEmployee");
            buttonPromoteEmployee.IconHovered = ControlFactory.CreateIcon(contentManager, "IconPromoteEmployee");
            buttonPromoteEmployee.ButtonType  = ButtonType.IconOnly;
            buttonPromoteEmployee.Tooltip     = ControlFactory.CreateTooltip(contentManager, "TooltipFrame", fontPath, fontSizeTooltip,
                                                                             fontColor, contentManager.GetString(StringReferenceKeys.TOOLTIP_BUTTON_PROMOTE_EMPLOYEE));
            buttonPromoteEmployee.Clicked += ButtonPromoteEmployeeOnClicked;

            iconMainMenu   = ControlFactory.CreateIcon(contentManager, "IconPersonPlain");
            iconNeedsMenu  = ControlFactory.CreateIcon(contentManager, "IconStatistics");
            iconSkillsMenu = ControlFactory.CreateIcon(contentManager, "IconPenPaper");

            labelMainMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColor, "Inspect Employee");
            labelMainMenu.EnableShadow(contentManager, 2, 2);
            labelNeedsMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColor, "Needs");
            labelNeedsMenu.EnableShadow(contentManager, 2, 2);
            labelSkillsMenu = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeTitle, fontColor, "Skills");
            labelSkillsMenu.EnableShadow(contentManager, 2, 2);

            iconHealth  = ControlFactory.CreateIcon(contentManager, "IconMedkit");
            iconHygiene = ControlFactory.CreateIcon(contentManager, "IconToothbrush");
            iconSleep   = ControlFactory.CreateIcon(contentManager, "IconPersonTired");
            iconThirst  = ControlFactory.CreateIcon(contentManager, "IconSoda");
            iconHunger  = ControlFactory.CreateIcon(contentManager, "IconChicken");

            labelHealthValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelHygieneValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelSleepValue   = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelThirstValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelHungerValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);

            iconCommunication = ControlFactory.CreateIcon(contentManager, "IconCommunication");
            iconLeadership    = ControlFactory.CreateIcon(contentManager, "IconLeadership");
            iconCreativity    = ControlFactory.CreateIcon(contentManager, "IconCreativity");
            iconIntelligence  = ControlFactory.CreateIcon(contentManager, "IconIntelligence");

            labelCommunicationValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelLeadershipValue    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelCreativityValue    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelIntelligenceValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);

            labelName   = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Name:");
            labelAge    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Age:");
            labelJob    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Job:");
            labelSalary = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Salary:");
            labelStatus = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Status:");
            labelBirth  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Birth:");
            labelMood   = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColor, "Mood:");

            labelNameValue   = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelAgeValue    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelJobValue    = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelSalaryValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelStatusValue = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);
            labelBirthValue  = ControlFactory.CreateLabel(contentManager, fontPath, fontSizeContent, fontColorValue, defaultText);

            iconMoodHappy = ControlFactory.CreateIcon(contentManager, "IconPersonHappy");
            iconMoodAngry = ControlFactory.CreateIcon(contentManager, "IconPersonAngry");

            Controls.Add(iconFrame);
            Controls.Add(buttonCloseWindow);
            Controls.Add(iconMainMenu);
            Controls.Add(iconNeedsMenu);
            Controls.Add(iconSkillsMenu);
            Controls.Add(labelMainMenu);
            Controls.Add(labelNeedsMenu);
            Controls.Add(labelSkillsMenu);
            Controls.Add(iconHealth);
            Controls.Add(iconHygiene);
            Controls.Add(iconSleep);
            Controls.Add(iconThirst);
            Controls.Add(iconHunger);
            Controls.Add(labelHealthValue);
            Controls.Add(labelHygieneValue);
            Controls.Add(labelSleepValue);
            Controls.Add(labelThirstValue);
            Controls.Add(labelHungerValue);
            Controls.Add(iconCommunication);
            Controls.Add(iconLeadership);
            Controls.Add(iconCreativity);
            Controls.Add(iconIntelligence);
            Controls.Add(labelCommunicationValue);
            Controls.Add(labelLeadershipValue);
            Controls.Add(labelCreativityValue);
            Controls.Add(labelIntelligenceValue);
            Controls.Add(labelName);
            Controls.Add(labelAge);
            Controls.Add(labelJob);
            Controls.Add(labelSalary);
            Controls.Add(labelStatus);
            Controls.Add(labelBirth);
            Controls.Add(labelMood);
            Controls.Add(labelNameValue);
            Controls.Add(labelAgeValue);
            Controls.Add(labelJobValue);
            Controls.Add(labelSalaryValue);
            Controls.Add(labelStatusValue);
            Controls.Add(labelBirthValue);
            Controls.Add(buttonFireEmployee);
            Controls.Add(buttonDisciplineEmployee);
            Controls.Add(buttonPromoteEmployee);

            Visible = false;
        }