// Frame Icon
        // StandardIdentityAffiliationType + SymbolSetType
        // IMPORTANT: StandardIdentityAffiliationType must be in
        // { Unknown, Space, Air,Land_Unit, Land_Installation,
        //   Sea_Surface, Subsurface, Activity }
        // See: TypeUtilities.SymbolSetToFrameType for mapping
        // ex. 0520
        public static string GetFrameIconNameWithFolder(
            StandardIdentityRealExerciseSimType realExerciseSim,
            StandardIdentityAffiliationType affiliation,
            SymbolSetType symbolSet)
        {
            StringBuilder sb = new StringBuilder();

            // TODO: exercise/sim frames -
            // StandardIdentityRealExerciseSimType (just add "Sim" "Exercise")

            sb.Append("Frames");
            sb.Append(System.IO.Path.DirectorySeparatorChar);

            string affiliationString = TypeUtilities.EnumHelper.getEnumValAsString(affiliation, 2);

            sb.Append(affiliationString);

            // map the actual symbolSet to the supported/availble frame
            SymbolSetType mappedSymbolSet = TypeUtilities.SymbolSetToFrameMapping[symbolSet];

            string mappedSymbolSetString = TypeUtilities.EnumHelper.getEnumValAsString(mappedSymbolSet, 2);

            sb.Append(mappedSymbolSetString);

            sb.Append(ImageSuffix);

            return(sb.ToString());
        }
Beispiel #2
0
        // Frame Icon
        // StandardIdentityAffiliationType + SymbolSetType
        // IMPORTANT: StandardIdentityAffiliationType must be in
        // { Unknown, Space, Air,Land_Unit, Land_Installation,
        //   Sea_Surface, Subsurface, Activity }
        // See: TypeUtilities.SymbolSetToFrameType for mapping
        // ex. 0520
        public static string GetFrameIconNameWithFolder(
            StandardIdentityRealExerciseSimType realExerciseSim,
            StandardIdentityAffiliationType affiliation,
            SymbolSetType symbolSet,
            StatusType status)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("Frames");
            sb.Append(System.IO.Path.DirectorySeparatorChar);

            if (realExerciseSim == StandardIdentityRealExerciseSimType.Reality)
            {
                sb.Append("0_");
            }
            else if (realExerciseSim == StandardIdentityRealExerciseSimType.Exercise)
            {
                sb.Append("Exercise");
                sb.Append(System.IO.Path.DirectorySeparatorChar);
                sb.Append("1_");
            }
            else if (realExerciseSim == StandardIdentityRealExerciseSimType.Simulation)
            {
                sb.Append("Sim");
                sb.Append(System.IO.Path.DirectorySeparatorChar);
                sb.Append("2_");
            }

            string affiliationString = TypeUtilities.EnumHelper.getEnumValAsString(affiliation, 1);

            sb.Append(affiliationString);

            // map the actual symbolSet to the supported/available frame
            SymbolSetType mappedSymbolSet = TypeUtilities.SymbolSetToFrameMapping[symbolSet];

            string mappedSymbolSetString = TypeUtilities.EnumHelper.getEnumValAsString(mappedSymbolSet, 2);

            sb.Append(mappedSymbolSetString);

            string status_suffix = "_0"; // normal case

            // Planned / Present Status (but only for standard/non-anticipated frames)
            if (status == StatusType.Planned_Anticipated_Suspect)
            {
                if ((affiliation == StandardIdentityAffiliationType.Friend) ||
                    (affiliation == StandardIdentityAffiliationType.Hostile) ||
                    (affiliation == StandardIdentityAffiliationType.Neutral) ||
                    (affiliation == StandardIdentityAffiliationType.Unknown))
                {
                    status_suffix = "_1";
                }
            }

            sb.Append(status_suffix);

            sb.Append(ImageSuffix);

            return(sb.ToString());
        }
        public static string GetFrameIconNameWithFullPath(
            StandardIdentityRealExerciseSimType realExerciseSim,
            StandardIdentityAffiliationType affiliation,
            SymbolSetType symbolSet)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(ImageFilesHome);

            string frameIconNameWithoutImageFilesHome =
                GetFrameIconNameWithFolder(realExerciseSim, affiliation, symbolSet);

            sb.Append(frameIconNameWithoutImageFilesHome);

            return(sb.ToString());
        }
Beispiel #4
0
        public static string GetFrameIconNameWithFullPath(
            StandardIdentityRealExerciseSimType realExerciseSim,
            StandardIdentityAffiliationType affiliation,
            SymbolSetType symbolSet,
            StatusType status)
        {
            if (affiliation >= StandardIdentityAffiliationType.Dont_Display_Frame)
            {
                return(string.Empty);
            }

            StringBuilder sb = new StringBuilder();

            sb.Append(ImageFilesHome);

            string frameIconNameWithoutImageFilesHome =
                GetFrameIconNameWithFolder(realExerciseSim, affiliation, symbolSet, status);

            sb.Append(frameIconNameWithoutImageFilesHome);

            return(sb.ToString());
        }