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 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); } }