Exemple #1
0
        /// <summary>
        /// Initializes the BrailleIO framework. Build a new BrailleIOAdapter_ShowOff, and add it to the IBrailleIOAdapterManager.
        /// </summary>
        /// <param name="adapterManager">The adapter manager to use for managing devices.</param>
        /// <param name="setAsActiveAdapter">if set to <c>true</c> [set this as active adapter].</param>
        /// <returns>
        /// The created BrailleIOAdapter_ShowOff, that was build with this instance
        /// </returns>
        public AbstractBrailleIOAdapterBase InitializeBrailleIO(IBrailleIOAdapterManager adapterManager, bool setAsActiveAdapter = false)
        {
            ShowOffAdapter       = new BrailleIOAdapter_ShowOff(adapterManager, this);
            ShowOffAdapter.Synch = true;

            adapterManager.AddAdapter(ShowOffAdapter);

            return(ShowOffAdapter);
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowOff" /> class.
 /// </summary>
 /// <param name="_showOffAdapter">The related show off adapter to this GUI.</param>
 public ShowOff(BrailleIOAdapter_ShowOff _showOffAdapter) : this()
 {
     ShowOffAdapter = _showOffAdapter;
 }
Exemple #3
0
 /// <summary>
 /// creates a new <see cref="BrailleIOAdapter_ShowOff" /> and returns it
 /// </summary>
 /// <param name="manager">the corresponding adapter manager</param>
 /// <returns>
 /// a new "BrailleIOAdapter_ShowOff adapter
 /// </returns>
 public AbstractBrailleIOAdapterBase GetAdapter(IBrailleIOAdapterManager manager)
 {
     ShowOffAdapter = new BrailleIOAdapter_ShowOff(manager);
     return(ShowOffAdapter);
 }