示例#1
0
文件: Form1.cs 项目: k1132/CAN_Bus
        private void button2_Click(object sender, EventArgs e)
        {
            OpenFileDialog SouborName = new OpenFileDialog();

            SouborName.ShowDialog();
            CanBus can = new CanBus(new StreamReader(SouborName.FileName));
        }
示例#2
0
        public IImmutableSet <CanNodeSession> NodeSessions => _nodeSessions.ToImmutableHashSet(); // return only a copy

        internal Network(CanBus bus, int bitRate)
        {
            Bus           = bus;
            BitRate       = bitRate;
            _nodeSessions = new HashSet <CanNodeSession>();
        }