Esempio n. 1
0
        private void DisplayTIPError()
        {
            TIPPopUp tipPopUp = new TIPPopUp();
            string   message  = "The FTI image was unable to be inserted into this x-ray image\nPlease press \"ClearScreen\" to process the next image.";

            if (m_XrayImage.Count > 0)
            {
                tipPopUp.PlacementTarget = m_XrayImage[0];
                tipPopUp.SetMessage(message);
                tipPopUp.SetIcon(false);
                tipPopUp.IsOpen = true;
            }
        }
Esempio n. 2
0
        private void caseObj_DisplayTIPEvent(CaseType caseType, bool isCorrect)
        {
            TIPPopUp tipPopUp = new TIPPopUp();
            string   message  = string.Empty;

            if (caseType == CaseType.CTICase)
            {
                message += "The x-ray image was a Combined Threat Image (CTI).\n\n";

                if (isCorrect)
                {
                    message += "You have correctly identified the CTI.";
                }
                else
                {
                    message += "You have missed identifying the CTI.";
                }
            }
            else if (caseType == CaseType.FTICase)
            {
                message += "The x-ray image includes a Fictional Threat Image (FTI).\n\n";

                if (isCorrect)
                {
                    message += "You have correctly identified the FTI.";
                }
                else
                {
                    message += "You have missed identifying the FTI.";
                }

                if (m_XrayImage.Count > 0)
                {
                    foreach (XRayImage xrayImage in m_XrayImage)
                    {
                        xrayImage.ShowFTILocations();
                    }
                }
            }

            if (m_XrayImage.Count > 0)
            {
                tipPopUp.PlacementTarget = m_XrayImage[0];
                tipPopUp.SetMessage(message);
                tipPopUp.SetIcon(isCorrect);
                tipPopUp.IsOpen = true;
            }
        }
Esempio n. 3
0
        private void caseObj_DisplayTIPEvent (CaseType caseType, bool isCorrect)
        {
            TIPPopUp tipPopUp = new TIPPopUp();
            string message = string.Empty;

            if (caseType == CaseType.CTICase)
            {
                message += "The x-ray image was a Combined Threat Image (CTI).\n\n";

                if (isCorrect)
                {
                    message += "You have correctly identified the CTI.";
                }
                else
                {
                    message += "You have missed identifying the CTI.";
                }
            }
            else if (caseType == CaseType.FTICase)
            {
                message += "The x-ray image includes a Fictional Threat Image (FTI).\n\n";

                if (isCorrect)
                {
                    message += "You have correctly identified the FTI.";
                }
                else
                {
                    message += "You have missed identifying the FTI.";
                }

                if (m_XrayImage.Count > 0)
                {
                    foreach (XRayImage xrayImage in m_XrayImage)
                    {
                        xrayImage.ShowFTILocations();
                    }
                }
            }

            if (m_XrayImage.Count > 0)
            {
                tipPopUp.PlacementTarget = m_XrayImage[0];
                tipPopUp.SetMessage(message);
                tipPopUp.SetIcon(isCorrect);
                tipPopUp.IsOpen = true;
            }
        }
Esempio n. 4
0
        private void DisplayTIPError()
        {
            TIPPopUp tipPopUp = new TIPPopUp();
            string message = "The FTI image was unable to be inserted into this x-ray image\nPlease press \"ClearScreen\" to process the next image.";

            if (m_XrayImage.Count > 0)
            {
                tipPopUp.PlacementTarget = m_XrayImage[0];
                tipPopUp.SetMessage(message);
                tipPopUp.SetIcon(false);
                tipPopUp.IsOpen = true;
            }
        }