public void Add(Speed Speed) { Speeds.Add(Speed); if (SpeedAdded != null) SpeedAdded.Invoke(this, EventArgs.Empty); }
private void AddToListView(string d, string u, string isp, string server, long bytes, double speed, double diff) { Speed sp = new Speed(d.Equals("x") ? Direction.Down : u.Equals("x") ? Direction.Up : Direction.UnKnown, speed) { Bytes = bytes, Diff = diff, Isp = isp, Server = server, When = DateTime.Now }; si.Add(sp); }