public Workout(MisIdiomas lang, string name) { ID = NetCount; Name.Add(name, lang); NetCount++; }
public KeyFamily(InternationalString name, Id id, Id agencyId) : base(id, agencyId) { Name.Add(name); Dimensions = new Collection <Dimension>(); Attributes = new Collection <Attribute>(); Groups = new Collection <Group>(); XMeasures = new Collection <CrossSectionalMeasure>(); }
public void Load(XDocument stbData) { var stbStorys = stbData.Root.Descendants("StbStory"); foreach (var stbStory in stbStorys) { // 必須コード Id.Add((int)stbStory.Attribute("id")); Height.Add((float)stbStory.Attribute("height") / 1000f); switch ((string)stbStory.Attribute("kind")) { case "GENERAL": Kind.Add(KindsStory.GENERAL); break; case "BASEMENT": Kind.Add(KindsStory.BASEMENT); break; case "ROOF": Kind.Add(KindsStory.ROOF); break; case "PENTHOUSE": Kind.Add(KindsStory.PENTHOUSE); break; case "ISOLATION": Kind.Add(KindsStory.ISOLATION); break; default: break; } // 必須ではないコード // リストの長さが合うように、空の場合はstring.Enpty if (stbStory.Attribute("name") != null) { Name.Add((string)stbStory.Attribute("name")); } else { Name.Add(string.Empty); } if (stbStory.Attribute("concrete_strength") != null) { StrengthConcrete.Add((string)stbStory.Attribute("concrete_strength")); } else { StrengthConcrete.Add(string.Empty); } // TODO // 所属節点の読み込み List<List<int>> NodeIdList の Set 部分の作成 } }
public void addValuesToLists(string[] values) { longitude.Add(values[1]); latitude.Add(values[2]); ID.Add(values[0]); Name.Add(values[3]); fuelDiesel.Add(values[4]); openingHours.Add(values[8]); cashPayment.Add(values[9]); masterCardPayment.Add(values[10]); visaPayment.Add(values[11]); fuel95.Add(values[14]); fuel98.Add(values[15]); fuelLPG.Add(values[16]); }
protected override void ElementLoader(XElement stbElem, StbVersion version, string xmlns) { base.ElementLoader(stbElem, version, xmlns); Height.Add((double)stbElem.Attribute("height")); switch ((string)stbElem.Attribute("kind")) { case "GENERAL": Kind.Add(KindsStory.General); break; case "BASEMENT": Kind.Add(KindsStory.Basement); break; case "ROOF": Kind.Add(KindsStory.Roof); break; case "PENTHOUSE": Kind.Add(KindsStory.Penthouse); break; case "ISOLATION": Kind.Add(KindsStory.Isolation); break; case "DEPENDENCE": Kind.Add(KindsStory.Dependence); break; default: Kind.Add(KindsStory.Any); break; } // 必須ではないコード if (stbElem.Attribute("name") != null) { Name.Add((string)stbElem.Attribute("name")); } else { Name.Add(string.Empty); } if (stbElem.Attribute("concrete_strength") != null) { StrengthConcrete.Add((string)stbElem.Attribute("concrete_strength")); } else { StrengthConcrete.Add(string.Empty); } }
public void CreatePages() { DirectoryList = ActualeDirectory.GetDirectories(); FileList = ActualeDirectory.GetFiles(); if (Name.Count != 0) //коли заходимо в папку очищаємо списки { Name.Clear(); Type.Clear(); DateMod.Clear(); } if (ActualeDirectory.Parent != null) { Name.Add(".."); Type.Add("UP"); DateMod.Add("\0"); } // int i = 0; for (int i = 0; i < DirectoryList.Length; i++) { Name.Add(DirectoryList[i].Name); Type.Add("<DIR>"); DateMod.Add((DirectoryList[i].LastWriteTime).ToShortDateString()); } for (int i = 0; i < FileList.Length; i++) { Name.Add(FileList[i].Name); if (FileList[i].Extension.Length == 0) { Type.Add("\0"); } else { Type.Add((FileList[i].Extension).Remove(0, 1)); } DateMod.Add((FileList[i].LastWriteTime).ToShortDateString()); } ActualeRecord = 0; }
void ReadScore() { StreamReader reader = new StreamReader(path); Name.Clear(); Score.Clear(); string line = ""; while ((line = reader.ReadLine()) != null) { string[] temp = line.Split(':'); Name.Add(temp[0]); Score.Add(Int32.Parse(temp[1])); } reader.Close(); }
public void SetName(Language lang, string value) { if (Name == null) { Name = new List <Text>(); } var existing = Name.FirstOrDefault(a => a.Language == lang); if (existing == null) { existing = new Text { Language = lang }; Name.Add(existing); } existing.Value = value; }
public void Load(XDocument stbDoc) { int index = 0; var stbSlabs = stbDoc.Root.Descendants("StbSlab"); foreach (var stbSlab in stbSlabs) { // 必須コード Id.Add((int)stbSlab.Attribute("id")); Name.Add((string)stbSlab.Attribute("name")); IdSection.Add((string)stbSlab.Attribute("id_section")); KindStructure.Add(KindsStructure.RC); // スラブはRCのみ // 必須ではないコード if (stbSlab.Attribute("kind_slab") != null) { if ((string)stbSlab.Attribute("kind_slab") == "NORMAL") { KindSlab.Add(KindsSlab.NORMAL); } else { KindSlab.Add(KindsSlab.CANTI); } } if (stbSlab.Attribute("level") != null) { Level.Add((double)stbSlab.Attribute("level") / 1000d); } else { Level.Add(0d); } // TODO // 必須ではないコードは未実装多め // 子要素 StbNodeid_List var stbNodeIdList = new StbNodeIdList(); NodeIdList.Add(stbNodeIdList.Load(stbSlab)); index++; } }
private void Read(PTP ptp, Encoding newEncoding) { foreach (var a in ptp.Names) { Name.Add(new BMDName(a.Index, a.NewName.GetTextBases(newEncoding).GetByteArray())); } foreach (var a in ptp.Msg) { Msg.Add(new BMDMSG { Index = a.Index, Name = a.Name, Type = a.Type, NameIndex = a.CharacterIndex, MsgStrings = a.Strings.Select(x => x.GetNew(newEncoding)).ToArray() }); } }
public void Load(XElement stbElem, StbVersion version) { switch (version) { case StbVersion.Ver1: IEnumerable <XElement> xOpens = stbElem.Elements("StbOpen"); foreach (XElement xOpen in xOpens) { if (xOpen.Attribute("id") != null) { Id.Add((int)xOpen.Attribute("id")); } else { Id.Add(0); } if (xOpen.Attribute("name") != null) { Name.Add((string)xOpen.Attribute("name")); } else { Name.Add(string.Empty); } IdSection.Add((int)xOpen.Attribute("id_section")); PositionX.Add((double)xOpen.Attribute("position_X")); PositionY.Add((double)xOpen.Attribute("position_Y")); LengthX.Add((double)xOpen.Attribute("length_X")); LengthY.Add((double)xOpen.Attribute("length_Y")); Rotate.Add((double)xOpen.Attribute("rotate")); } break; case StbVersion.Ver2: break; default: throw new ArgumentOutOfRangeException(nameof(version), version, "The STB version is not set"); } }
/// <summary> /// Adds Agent to Person object /// </summary> /// <param name="agent">Agent Object with a single identifier, It is not a Person Object, nor is it a Group.</param> public void Add(Agent agent) { if (agent == null) { throw new ArgumentNullException("agent"); } if (agent.ObjectType == Data.ObjectType.Group) { throw new ArgumentException("Groups are not allowed within an Person Object."); } if (agent.Name != null) { Name.Add(agent.Name); } if (agent.Account != null) { Account.Add(agent.Account); return; } if (agent.Mbox != null) { Mbox.Add(agent.Mbox); return; } if (!string.IsNullOrWhiteSpace(agent.Mbox_SHA1SUM)) { Mbox_sha1sum.Add(agent.Mbox_SHA1SUM); return; } if (agent.OpenId != null) { OpenId.Add(agent.OpenId); return; } }
public void UpdateHighScore(string newName, int newScore) { bool insert = false; for (int i = 0; i < Score.Count; i++) { if (newScore > Score[i] && !insert) { Name.Insert(i, newName); Score.Insert(i, newScore); insert = true; } } if (!insert) { Name.Add(newName); Score.Add(newScore); } WriteScore(); }
public bool Open(PTP PTP, Encoding New) { Name.Clear(); Msg.Clear(); foreach (var a in PTP.names) { Name.Add(new Names(a.Index, a.NewName.GetTextBaseList(New).GetByteArray().ToArray())); } foreach (var a in PTP.msg) { int Index = a.Index; string Name = a.Name; MSGs.MsgType Type = a.Type == "MSG" ? MSGs.MsgType.MSG : MSGs.MsgType.SEL; int CharacterIndex = a.CharacterIndex; byte[] MsgBytes = a.GetNew(New); Msg.Add(new MSGs(Index, Name, Type, CharacterIndex, MsgBytes.ToArray())); } return(true); }
public void Add(string name, string face) { int index = Name.IndexOf(name) + 1; if (index == 0) { if (DeletedNamesId.Count > 0) { Name[DeletedNamesId[0]] = name; NameId.Add(DeletedNamesId[0] + 1); DeletedNamesId.RemoveAt(0); } else { Name.Add(name); NameId.Add(Name.Count()); } } else { NameId.Add(index); } Face.Add(face); }
public void ProcessMLAPI() { string inputname; string inputdate; string inputverdict; string inputversion; int modifycount = 0; List <string> filecontent = new List <string>(); if (TCR.EndsWith(".sig")) { //do nothing } else { try { filecontent = File.ReadAllLines(TCR).ToList <string>(); //create list to put each line into it } catch { return; } for (int x = 0; x < filecontent.Count; x++) { if (filecontent[x].Contains("TCR_TestCaseReport name")) //go through list to find values and put them in { string[] temp = filecontent[x].Split('='); inputname = temp[1]; inputname = inputname.Substring(1, inputname.Length - 3); string firstletter = inputname.Substring(0, 1); if (firstletter != "I") { { if (inputname.Length > 22) { Name.Add(inputname.Substring(0, 22)); } else { Name.Add(inputname); } } } } if (filecontent[x].Contains("TCR_ExecutionDate value")) { string[] temp = filecontent[x].Split('='); inputdate = temp[1]; inputdate = inputdate.Substring(1, inputdate.Length - 4); if (inputdate.Length > 10) { Date.Add(inputdate.Substring(0, inputdate.Length - 1)); } else { Date.Add(inputdate); } } if (filecontent[x].Contains("TCR_Verdict value")) { string[] temp = filecontent[x].Split('='); inputverdict = temp[1]; inputverdict = inputverdict.Substring(1, inputverdict.Length - 4); if (inputverdict.Length > 4) { Verdict.Add(inputverdict.Substring(0, inputverdict.Length - 1)); } else { Verdict.Add(inputverdict); } } if (filecontent[x].Contains("NOT VALID for UE certification")) { modifycount = modifycount | 1; } if (filecontent[x].Contains("ENGINEERING BuildID")) { modifycount = modifycount | 2; } if (modifycount == 1 || modifycount == 3) { Modify.Add("MODIFIED"); } else { Modify.Add(" "); } if (filecontent[x].Contains("NTT DOCOMO DST")) { int index = filecontent[x].IndexOf("NTT DOCOMO DST"); string removed = filecontent[x].Remove(0, index); string[] nospace = removed.Split(' '); inputversion = nospace[3]; inputversion = inputversion.Remove(0, 1); if (string.IsNullOrEmpty(detail.Version)) { Version.Add(inputversion); } else if (detail.Version == inputversion) { Version.Add(""); } else { Version.Add("NG"); } } } } if (!string.IsNullOrEmpty(Sig)) { SignatureVerifier versig = new SignatureVerifier(Sig); bool valid = versig.cmdverify(); if (valid) { Signature.Add("VALID"); } else { Signature.Add("INVALID"); } } }
public HierarchicalCodeList(InternationalString name, Id id, Id agencyId) : this(id, agencyId) { Name.Add(name); }
public void TestNameFromStrings() { var name00 = new Name(); Assert.Null(name00.LastPart); Assert.Null(name00.FirstPart); Assert.Equal("", name00.GetFullName()); name00.Add("p1"); Assert.Equal("[p1]", name00.GetFullName("[", "]")); name00.Add("p2", "p3"); Assert.Equal("[p1].[p2].[p3]", name00.GetFullName("[", "]")); Assert.Equal("p1", name00.FirstPart); Assert.Equal("p3", name00.LastPart); var name01 = new Name(); Assert.Null(name01.LastPart); Assert.Null(name01.FirstPart); Assert.Equal("", name01.GetFullName()); name01.Add("p1", "p2", "p3"); Assert.Equal("[p1].[p2].[p3]", name01.GetFullName("[", "]")); Assert.Equal("p1", name01.FirstPart); Assert.Equal("p3", name01.LastPart); var name02 = new Name(); name02.Add("p1", "p2", "p3", "p4"); Assert.Equal("[p1].[p2].[p3].[p4]", name02.GetFullName("[", "]")); Assert.Equal("p1", name02.FirstPart); Assert.Equal("p4", name02.LastPart); var name03 = new Name(); name03.Add("p1", "p2", "p3", "p4"); Assert.Equal("[p1].[p2].[p3].[p4]", name03.GetFullName("[", "]")); Assert.Equal("p1", name03.FirstPart); Assert.Equal("p4", name03.LastPart); var name04 = new Name(); name04.Add("p1.p2.p3.p4"); Assert.Equal("[p1].[p2].[p3].[p4]", name04.GetFullName("[", "]")); Assert.Equal("p1", name04.FirstPart); Assert.Equal("p4", name04.LastPart); var basename = new Name("b1.b2"); var name05 = new Name(); name05.Add(basename, "p1.p2"); Assert.Equal("[b1].[b2].[p1].[p2]", name05.GetFullName("[", "]")); Assert.Equal("b1", name05.FirstPart); Assert.Equal("p2", name05.LastPart); name05 = new Name(); name05.Add(basename, "p1", "p2"); Assert.Equal("[b1].[b2].[p1].[p2]", name05.GetFullName("[", "]")); Assert.Equal("b1", name05.FirstPart); Assert.Equal("p2", name05.LastPart); name05 = new Name(); name05.Add("p1.p2", basename); Assert.Equal("[p1].[p2].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); name05 = new Name(); name05.Add("p1", "p2", basename); Assert.Equal("[p1].[p2].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); name05 = new Name(); name05.Add("p1", "p2", "p3", basename); Assert.Equal("[p1].[p2].[p3].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); name05 = new Name(); name05.Add("p1", "p2.p3", basename); Assert.Equal("[p1].[p2].[p3].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); }
public void TestNameFromStringsCtors() { var name00 = new Name("p1"); Assert.Equal("[p1]", name00.GetFullName("[", "]")); Assert.Equal("p1", name00.FirstPart); Assert.Equal("p1", name00.LastPart); name00 = new Name("p1", "p2", "p3"); Assert.Equal("[p1].[p2].[p3]", name00.GetFullName("[", "]")); Assert.Equal("p1", name00.FirstPart); Assert.Equal("p3", name00.LastPart); name00 = new Name("p1", "p2", "p3", "p4"); Assert.Equal("[p1].[p2].[p3].[p4]", name00.GetFullName("[", "]")); Assert.Equal("p1", name00.FirstPart); Assert.Equal("p4", name00.LastPart); name00 = new Name("p1", "p2", "p3", "p4"); Assert.Equal("[p1].[p2].[p3].[p4]", name00.GetFullName("[", "]")); Assert.Equal("p1", name00.FirstPart); Assert.Equal("p4", name00.LastPart); name00 = new Name("p1.p2.p3.p4"); Assert.Equal("[p1].[p2].[p3].[p4]", name00.GetFullName("[", "]")); Assert.Equal("p1", name00.FirstPart); Assert.Equal("p4", name00.LastPart); var basename = new Name("b1.b2"); var name05 = new Name(); name05.Add(basename, "p1.p2"); Assert.Equal("[b1].[b2].[p1].[p2]", name05.GetFullName("[", "]")); Assert.Equal("b1", name05.FirstPart); Assert.Equal("p2", name05.LastPart); name05 = new Name(basename, "p1", "p2"); Assert.Equal("[b1].[b2].[p1].[p2]", name05.GetFullName("[", "]")); Assert.Equal("b1", name05.FirstPart); Assert.Equal("p2", name05.LastPart); name05 = new Name("p1.p2", basename); Assert.Equal("[p1].[p2].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); name05 = new Name("p1", "p2", basename); Assert.Equal("[p1].[p2].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); name05 = new Name("p1", "p2", "p3", basename); Assert.Equal("[p1].[p2].[p3].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); name05 = new Name("p1", "p2.p3", basename); Assert.Equal("[p1].[p2].[p3].[b1].[b2]", name05.GetFullName("[", "]")); Assert.Equal("p1", name05.FirstPart); Assert.Equal("b2", name05.LastPart); }
private void ParseMSG1(BinaryReader BR) { try { byte[] buffer; int MSG_PointBlock_Pos = 0x20; BR.BaseStream.Position = 24; int MSG_count = BR.ReadInt32(); BR.BaseStream.Position = MSG_PointBlock_Pos; List <int[]> MSGPosition = new List <int[]>(); for (int i = 0; i < MSG_count; i++) { int[] temp = new int[2]; temp[0] = BR.ReadInt32(); temp[1] = BR.ReadInt32(); MSGPosition.Add(temp); } int Name_Block_Position = BR.ReadInt32(); int Name_Count = BR.ReadInt32(); BR.BaseStream.Position = Name_Block_Position + MSG_PointBlock_Pos; List <long> NamePosition = new List <long>(); for (int i = 0; i < Name_Count; i++) { NamePosition.Add(BR.ReadInt32()); } for (int i = 0; i < NamePosition.Count; i++) { BR.BaseStream.Position = NamePosition[i] + MSG_PointBlock_Pos; byte Byte = BR.ReadByte(); List <byte> Bytes = new List <byte>(); while (Byte != 0) { Bytes.Add(Byte); Byte = BR.ReadByte(); } Name.Add(new Names(i, Bytes.ToArray())); } for (int i = 0; i < MSGPosition.Count; i++) { BR.BaseStream.Position = MSG_PointBlock_Pos + MSGPosition[i][1]; buffer = BR.ReadBytes(24); string MSG_Name = System.Text.Encoding.Default.GetString(buffer).Trim('\0'); if (string.IsNullOrEmpty(MSG_Name)) { MSG_Name = "<EMPTY>"; } byte[] MSG_bytes = new byte[0]; MSGs.MsgType Type; int CharacterIndex = 0xFFFF; if (MSGPosition[i][0] == 0) { Type = MSGs.MsgType.MSG; int count = BR.ReadUInt16(); CharacterIndex = BR.ReadUInt16(); if (count > 0) { BR.BaseStream.Position = BR.BaseStream.Position + 4 * count; int size = BR.ReadInt32(); MSG_bytes = BR.ReadBytes(size); } } else if (MSGPosition[i][0] == 1) { Type = MSGs.MsgType.SEL; BR.BaseStream.Position += 2; int count = BR.ReadUInt16(); if (count > 0) { BR.BaseStream.Position += 4 * count + 4; int size = BR.ReadInt32(); MSG_bytes = BR.ReadBytes(size); } } else { Logging.Write("PersonaEditorLib", "Error: Unknown message type!"); return; } MSGs MSG = new MSGs(i, MSG_Name, Type, CharacterIndex, MSG_bytes); Msg.Add(MSG); } } catch (Exception e) { Logging.Write("PersonaEditorLib", "Error: Parse MSG1 error!"); Logging.Write("PersonaEditorLib", e); Name.Clear(); Msg.Clear(); } }
public void AddText_NameDescription(MisIdiomas i, string n, string d) { Name.Add(n, i); Description.Add(d, i); }
public ConceptScheme(InternationalString name, Id id, Id agencyId) : base(id, agencyId) { Name.Add(name); }
private void Read(StreamPart streamPart) { streamPart.Stream.Position = streamPart.Position + 0x8; byte[] buffer = new byte[4]; streamPart.Stream.Read(buffer, 0, 4); IsLittleEndian = Encoding.ASCII.GetString(buffer) == "MSG1"; streamPart.Stream.Position = streamPart.Position; using (BinaryReader reader = IOTools.OpenReadFile(streamPart.Stream, IsLittleEndian)) { int MSG_Pointer_Start = 0x20; #region Header if (!reader.ReadBytes(4).SequenceEqual(new byte[] { 0x7, 0x0, 0x0, 0x0 })) { throw new Exception("BMD Read Error: (0x0) not 7"); } int BMD_Size = reader.ReadInt32(); reader.ReadInt32(); // MagicNumber if (reader.ReadInt32() != 0) { throw new Exception("BMD Read Error: (0x0C) not 0"); } reader.ReadInt32(); // Position of EndBlock int MSG_PointerBlock_Size = reader.ReadInt32(); int MSG_Count = reader.ReadInt32(); if (reader.ReadInt16() != 0) { throw new Exception("BMD Read Error: (0x1C) not 0"); } if (reader.ReadInt16() != 2) { throw new Exception("BMD Read Error: (0x1E) not 2"); } #endregion #region MSG/Name Pointer List <int[]> MSGPosition = new List <int[]>(); for (int i = 0; i < MSG_Count; i++) { int[] temp = new int[2]; temp[0] = reader.ReadInt32(); temp[1] = reader.ReadInt32(); MSGPosition.Add(temp); } int Name_Block_Position = reader.ReadInt32(); int Name_Count = reader.ReadInt32(); #endregion reader.BaseStream.Position = Name_Block_Position + MSG_Pointer_Start; List <int> NamePosition = new List <int>(); for (int i = 0; i < Name_Count; i++) { NamePosition.Add(reader.ReadInt32()); } for (int i = 0; i < NamePosition.Count; i++) { reader.BaseStream.Position = NamePosition[i] + MSG_Pointer_Start; List <byte> Bytes = new List <byte>(30); byte Byte = reader.ReadByte(); while (Byte != 0) { Bytes.Add(Byte); Byte = reader.ReadByte(); } Name.Add(new BMDName(i, Bytes.ToArray())); } for (int i = 0; i < MSGPosition.Count; i++) { reader.BaseStream.Position = MSG_Pointer_Start + MSGPosition[i][1]; Msg.Add(new BMDMSG(reader, i, MSGPosition[i][0])); } } }
public void ProcessTTCN() { string verdictcheck = "NONE"; string inputdate; string inputverdict; string inputversion; int modifycount = 0; List <string> filecontent = new List <string>(); try { filecontent = File.ReadAllLines(TCR).ToList <string>(); //create list and put each line into it } catch { return; } for (int i = 0; i < filecontent.Count; i++) { if (filecontent[i].Contains("NOT VALID for UE certification")) //search through list for all the given values { modifycount = modifycount | 1; } if (filecontent[i].Contains("NTT docomo DST")) { int index = filecontent[i].IndexOf("NTT docomo DST"); string removed = filecontent[i].Remove(0, index); string[] nospace = removed.Split(' '); inputversion = nospace[3]; inputversion = inputversion.Remove(0, 1); if (string.IsNullOrEmpty(detail.Version)) { Version.Add(inputversion); } else if (detail.Version.Contains(inputversion)) { Version.Add(""); } else { Version.Add("NG"); } } if (filecontent[i].Contains("Final Verdict: PASS")) { verdictcheck = "PASS"; } else if (filecontent[i].Contains("Final Verdict: FAIL")) { verdictcheck = "FAIL"; } else if (filecontent[i].Contains("Final Verdict: INCONC")) { verdictcheck = "INCONC"; } } try { filecontent = File.ReadAllLines(Summary).ToList <string>(); } catch { return; } for (int x = 0; x < filecontent.Count; x++) { if (filecontent[x].Contains("Test:")) { string[] temp = filecontent[x].Split('.'); Name.Add(temp[temp.Length - 1]); int listlength = Name.Count; } if (filecontent[x].Contains("Result:")) { string[] temp = filecontent[x].Split(':'); inputverdict = temp[temp.Length - 1].Trim(); if (verdictcheck != "") { if (inputverdict.Contains("PASS") && !verdictcheck.Contains("PASS")) { Verdict.Add("NONE"); } else { Verdict.Add(inputverdict); } } else { Verdict.Add(inputverdict); } } if (filecontent[x].Contains("Date:")) { if (filecontent[x].Contains('/')) { string[] temp = filecontent[x].Split(':'); inputdate = temp[temp.Length - 1].Trim(); temp = inputdate.Split('/'); inputdate = temp[2] + '-' + temp[0] + '-' + temp[1]; Date.Add(inputdate); } } if (filecontent[x].Contains("Invalid for UE certification")) { modifycount = modifycount | 1; } if (filecontent[x].Contains("ENGINEERING")) { modifycount = modifycount | 2; } } if (modifycount == 1 || modifycount == 3) { Modify.Add("MODIFIED"); } else { Modify.Add(" "); } if (!string.IsNullOrEmpty(Sig)) { SignatureVerifier versig = new SignatureVerifier(Sig); bool valid = versig.cmdverify(); if (valid) { Signature.Add("VALID"); } else { Signature.Add("INVALID"); } } }
public CodeList(InternationalString name, Id id, Id agencyId) : base(id, agencyId) { Name.Add(name); }
public Hierarchy(InternationalString name, Id id, CodeRef root) : this(id, root) { Name.Add(name); }
public void AddEmployee(string name, int salary) { Name.Add(name); Salary.Add(salary); }