Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 private void ServiceLogsListCreator(IList <ServiceLog> list)
 {
     ServiceLogs.Clear();
     list.ToList().ForEach(item => ServiceLogs.Add(new SView(item, ServiceLogs.Count() + 1)));
 }