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); }
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); }