コード例 #1
0
        public static HardwareDigest FromHardware()
        {
            HardwareDigest ret = new HardwareDigest()
            {
                Boards = new List <BoardDigest>(),
            };

            foreach (WiseBoard board in Hardware.Instance.WiseBoards)
            {
                ret.Boards.Add(BoardDigest.FromHardware(board));
            }

            return(ret);
        }
コード例 #2
0
        public static BoardDigest FromHardware(WiseBoard board)
        {
            BoardDigest ret = new BoardDigest()
            {
                Daqs = new List <DaqDigest>(),
            };

            foreach (WiseDaq daq in board.daqs)
            {
                ret.Daqs.Add(DaqDigest.FromHardware(daq));
            }

            return(ret);
        }