public string CreateMouseOverInfoString(Province province, Country country, IMappableObject highlightedObject)
        {
            if (province != null && country != null)
            {
                string createdString;
                string nameType;
                if (country.name == "United States of America")
                {
                    nameType = "State: ";
                }
                else
                {
                    nameType = "Province: ";
                }
                string politicalProvince;
                string climate;
                try
                {
                    politicalProvince = province.attrib["PoliticalProvince"];
                    climate           = province.attrib["ClimateGroup"];
                }
                catch (System.Exception ex)
                {
                    errorHandler.CatchException(ex, ErrorState.close_window);
                    return(null);
                }
                createdString = "Country: " + country.name + System.Environment.NewLine + nameType + politicalProvince;

                //Check to see if there's a highlighted object
                if (highlightedObject != null && highlightedObject != playerManager.PlayerCharacter)
                {
                    if (highlightedObject.ObjectName != null)
                    {
                        //Add the landmark to the string
                        createdString = createdString + System.Environment.NewLine + "Landmark: " + highlightedObject.ObjectName;
                    }
                }
                //Display the string
                return(createdString);
            }
            else
            {
                return(null);
            }
        }
        private bool AddMappingInfo()
        {
            try
            {
                CheckMappedProperties(Action.RequestMap);
                CheckMappedProperties(Action.ResponseMap);

                IMappableObject target = null;

                if (targetProcedureBtn.Checked)
                {
                    target = Action.StoredProcedure as IMappableObject;

                    if ((target.ObjectType == ActionMapTarget.StoredProcedure) && (((StoredProcedure)target).IsReturningRefCursor ?? false))
                    {
                        Action.ResponseMap.IsCollection = true;
                    }
                    else
                    {
                        Action.ResponseMap.IsCollection = false;
                    }
                }
                else
                {
                    target = Action.Query;
                    Action.ResponseMap.IsCollection = true;
                }

                return(true);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error creating action: " + ex);
                return(false);
            }
        }