Пример #1
0
        /// <summary>
        /// Creates new intstance of HD44780 LCD display in 4-bit mode.
        /// </summary>
        /// <param name="provider">Data transfer provider.</param>
        public LCD4Bit(ITransferProvider provider)
        {
            this.Provider = provider;

            this.Encoding = System.Text.Encoding.UTF8;
            this._backLight = false;

            Init(true);
        }
Пример #2
0
        /// <summary>
        /// Creates new intstance of HD44780 LCD display in 4-bit mode.
        /// </summary>
        /// <param name="provider">Data transfer provider.</param>
        public LCD4Bit(ITransferProvider provider)
        {
            this.Provider = provider;

            this.Encoding   = System.Text.Encoding.UTF8;
            this._backLight = false;

            Init(true);
        }
Пример #3
0
 private void GetTransferProvider()
 {
     if (String.IsNullOrWhiteSpace(TransferAssemblyPath))
     {
         var provider = GetDefaultServiceProvider();
         _transferProvider = (ITransferProvider)provider.GetService(typeof(ITransferProvider));
         ((TransferService)_transferProvider).Protocol = Protocol; // Default integrated services define a protocol as there are multiple ones available
     }
     else
     {
         var assembly = Assembly.LoadFrom(TransferAssemblyPath);
         var provider = ServiceProviderHelper.CreateServiceProvider(assembly) ?? GetDefaultServiceProvider();
         _transferProvider = (ITransferProvider)provider.GetService(typeof(ITransferProvider));
     }
 }
Пример #4
0
 private void GetTransferProvider()
 {
     if (String.IsNullOrWhiteSpace(TransferAssemblyPath))
     {
         var provider = GetDefaultServiceProvider();
         _transferProvider = (ITransferProvider)provider.GetService(typeof(ITransferProvider));
         ((TransferService)_transferProvider).Protocol = Protocol; // Default integrated services define a protocol as there are multiple ones available
     }
     else
     {
         var assembly = Assembly.LoadFrom(TransferAssemblyPath);
         var provider = ServiceProviderHelper.CreateServiceProvider(assembly) ?? GetDefaultServiceProvider();
         _transferProvider = (ITransferProvider)provider.GetService(typeof(ITransferProvider));
     }
 }
Пример #5
0
 public TransferProcess(Account from, Account to, ITransferProvider transfer)
 {
     this.From = from;
     this.To = to;
     this.transfer = transfer;
 }