private void UpdateLogs(string[] logs) { for (int i = 0; i < logs.Length; i += 2) { string m = logs[i]; MessageTypeEnum t = MessageRecievedEventArgs.GetTypeEnum(Int32.Parse(logs[i + 1])); MessageRecievedEventArgs log = new MessageRecievedEventArgs(m, t); // Adds a single log to an observables logs list. ServiceLogs.Add(log); } }
private void ServiceLogsListCreator(IList <ServiceLog> list) { ServiceLogs.Clear(); list.ToList().ForEach(item => ServiceLogs.Add(new SView(item, ServiceLogs.Count() + 1))); }