protected string BuildFrameCode(string status, LegacyLetterCodeType legacyFrame) { string code = ""; code = legacyFrame.CodingSchemeLetter; code = code + legacyFrame.Value; code = code + legacyFrame.BattleDimensionLetter; code = code + status; if (legacyFrame.FirstFunctionLetter != "") code = code + legacyFrame.FirstFunctionLetter; return code; }
public LegacyLetterCodeType[] LegacyLetters(LegacyLetterCodeType[] letterArray, string standard) { // Retrieves and returns an array of all letter codes in the given array matching the given standard List<LegacyLetterCodeType> letterCodes = new List<LegacyLetterCodeType>(); foreach (LegacyLetterCodeType letterCodeInArray in letterArray) { if (letterCodeInArray.Name == standard) { letterCodes.Add(letterCodeInArray); } } return letterCodes.ToArray<LegacyLetterCodeType>(); }
public LegacyLetterCodeType LegacyLetter(LegacyLetterCodeType[] letterArray, string standard) { // Retrieves and returns the first letter code in the given array matching the given standard LegacyLetterCodeType letterCode = null; foreach(LegacyLetterCodeType letterCodeInArray in letterArray) { if (letterCodeInArray.Name == standard) { letterCode = letterCodeInArray; break; } } return letterCode; }
protected string BuildSIDCKey(string status, LegacyLetterCodeType legacyFrame) { string key = ""; key = legacyFrame.CodingSchemeLetter; key = key + legacyFrame.Value; key = key + legacyFrame.BattleDimensionLetter; key = key + status; string firstFuncLetter = legacyFrame.FirstFunctionLetter == "" ? "-" : legacyFrame.FirstFunctionLetter; key = key + firstFuncLetter; // We will have to look at the second function character in the future if we want to handle // the export of Emergency Management symbology correctly. Since the EM appendix // mixes the three UEI frame shapes. For now we are treating all EM symbols as being // in Ground Unit frames. //string secondFuncLetter = legacyFrame.SecondFunctionLetter == "" ? "-" : legacyFrame.SecondFunctionLetter; //key = key + secondFuncLetter; return key; }