Ejemplo n.º 1
0
        public Display(InstrumentState instrumentState)
        {
            this.instrumentState = instrumentState;

            this.refreshDisplayLock = new object();

            this.Initialize();
        }
Ejemplo n.º 2
0
        public FakeInstrument(ushort port)
        {
            this.tcpServer = new TcpServer(port);

            this.tcpServer.DataReceived += this.RequestReceived;

            this.instrumentState = new InstrumentState();

            this.experiments = this.DeserializeExperimentsFromFile();

            this.display = new Display(this.instrumentState);

            this.targetTemperature = instrumentState.Temperature;

            this.updateTimer = new Timer(RefreshRate);

            this.updateTimer.Elapsed += this.UpdateInstrument;
        }