public void SelectModem(string Name) { if (Name != this.Modem.GetType().Name) { this.Modem = ProviderInstanceControl.GetProviderInstance <IModem>(Name) as IModem; } if (Modem == null) { Modem = new NoModem(); } }
public void SelectTerminal(string Name) { if (Name != this.Terminal.GetType().Name) { this.Terminal = ProviderInstanceControl.GetProviderInstance <ITerminal>(Name) as ITerminal; } if (Terminal == null) { Terminal = new TerminalTTY(); } }
public void SelectTransport(string Name) { if (Name != this.Transport.GetType().Name) { this.Transport = ProviderInstanceControl.GetProviderInstance <ITransport>(Name) as ITransport; } if (Transport == null) { Transport = new Loopback(); } }