Пример #1
0
        public void Add(string line)
        {
            if (!line.StartsWith("EPR:"))
            {
                return;
            }
            EEPROMParameter p = new EEPROMParameter(line);

            if (list.ContainsKey(p.position))
            {
                list.Remove(p.position);
            }
            list.Add(p.position, p);
            if (eventAdded != null)
            {
                Main.main.Invoke(eventAdded, p);
            }
        }
Пример #2
0
 public void Add(string line)
 {
     if (!line.StartsWith("EPR:")) return;
     EEPROMParameter p = new EEPROMParameter(line);
     if (list.ContainsKey(p.position))
         list.Remove(p.position);
     list.Add(p.position, p);
     if (eventAdded != null)
         Main.main.Invoke(eventAdded, p);
 }
 private void newline(EEPROMParameter p)
 {
     data.Add(p);
 }