/// <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); }
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)); } }
public TransferProcess(Account from, Account to, ITransferProvider transfer) { this.From = from; this.To = to; this.transfer = transfer; }