Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
     }
 }
Пример #3
0
 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();
     }
 }