public void Add(SysLogSection Section, SysLogAlert Alert, string Title) { if (!this.Locked) { SysLogItem item = new SysLogItem(); SysLogItem item2 = item; item2.Section = Section; item2.Alert = Alert; item2.Title = Title; item2 = null; this.Add(item); } }
public int AlertCount(SysLogAlert Alert) { int num3 = 0; int num4 = this.m_Count - 1; for (int i = 0; i <= num4; i++) { if (this.m_Array[i].Alert == Alert) { num3++; } } return(num3); }
public void Add(SysLogSection Section, SysLogAlert Alert, string Title, string Description, string Index = "") { if (!this.Locked) { SysLogItem item = new SysLogItem(); SysLogItem item2 = item; item2.Section = Section; item2.Alert = Alert; item2.Title = Title; item2.Description = Description; item2.Index = Index; if ((item2.Description != "") & !item2.Description.EndsWith(".")) { SysLogItem item3 = item2; item3.Description = item3.Description + "."; } item2 = null; this.Add(item); } }