private void button2_Click(object sender, EventArgs e) { OpenFileDialog SouborName = new OpenFileDialog(); SouborName.ShowDialog(); CanBus can = new CanBus(new StreamReader(SouborName.FileName)); }
public IImmutableSet <CanNodeSession> NodeSessions => _nodeSessions.ToImmutableHashSet(); // return only a copy internal Network(CanBus bus, int bitRate) { Bus = bus; BitRate = bitRate; _nodeSessions = new HashSet <CanNodeSession>(); }