public void Startup() { if (this.m_hardware != null) { this.m_hardware.Stop(); this.m_hardware = null; } if (this.m_virtual) { this.m_hardware = new VirtualHardware(this.m_boardLayoutWidth, this.m_boardLayoutHeight, this.m_ledSize, this.m_ledColor, this.m_dotPitch); } else { this.m_hardware = new Hardware(this.m_portAddress, this.m_boardLayoutWidth, this.m_boardLayoutHeight); } this.m_generator = new Generator(); this.m_generator.TextScrollExtent = ScrollExtent.OnAndOff; this.m_generator.LoadFromXml(this.m_setupNode["TextOptions"]); this.m_generator.BoardPixelWidth = 0x30 * this.m_boardLayoutWidth; this.m_generator.BoardPixelHeight = 0x10 * this.m_boardLayoutHeight; this.m_hardware.Start(); this.StopThread(); this.m_updateThread = new Thread(new ThreadStart(this.FrameOutputThread)); this.m_updateThread.Start(); this.m_timer.Start(); }
public void Shutdown() { this.m_timer.Stop(); this.StopThread(); this.m_hardware.Stop(); this.m_hardware = null; if (this.m_generator != null) { this.m_generator.Dispose(); } }
public DefaultOutputProducer(IFrameOutput output, Stream body) { _output = output; _body = body; }
public DefaultOutputProducerFactory(IFrameOutput output) { _output = output; }