/// <summary>
 /// Initializes a new instance of the <see cref="BrailleIOAdapter_ShowOff"/> class.
 /// </summary>
 /// <param name="manager">The IBrailleIOAdapterManager the device hase to be registerd to.</param>
 /// <param name="gui">The ShowOff windows forms application that is used as displaying or user interaction GUI.</param>
 public BrailleIOAdapter_ShowOff(IBrailleIOAdapterManager manager, ShowOff gui)
     : base(manager)
 {
     this.manager = manager;
     this.Device  = new BrailleIODevice(120, 60, "ShowOFF_" + this.GetHashCode(), true, false, 30, this);
     if (manager != null)
     {
         manager.AddAdapter(this);
     }
     Connect();
     driver.Monitor     = gui;
     gui.ShowOffAdapter = this;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MockDriver"/> class. This is a simple wrapper for the software adapter itself connected to this GUI.
 /// </summary>
 /// <param name="gui">The GUI.</param>
 public MockDriver(ShowOff gui)
 {
     Monitor = gui;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BrailleIOAdapter_ShowOff"/> class.
 /// </summary>
 /// <param name="manager">The IBrailleIOAdapterManager the device hase to be registerd to.</param>
 /// <param name="gui">The ShowOff windows forms application that is used as displaying or user interaction GUI.</param>
 public BrailleIOAdapter_ShowOff(IBrailleIOAdapterManager manager, ShowOff gui)
     : this(manager)
 {
     driver.Monitor = gui;
 }