Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 public DefaultOutputProducer(IFrameOutput output, Stream body)
 {
     _output = output;
     _body   = body;
 }
 public DefaultOutputProducerFactory(IFrameOutput output)
 {
     _output = output;
 }
Ejemplo n.º 5
0
 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();
 }
Ejemplo n.º 6
0
 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();
     }
 }
Ejemplo n.º 7
0
 public DefaultOutputProducer(IFrameOutput output, Stream body)
 {
     _output = output;
     _body = body;
 }
Ejemplo n.º 8
0
 public DefaultOutputProducerFactory(IFrameOutput output)
 {
     _output = output;
 }