Ejemplo n.º 1
0
 public bool Connect(PSDDevice psdDevice)
 {
     var connected = psdDevice.Connect();
     if (connected)
     {
         Psd = psdDevice;
         Name = Psd.ToString();
         Base = new Base();
     }
     else
         Psd = null;
     return connected;
 }
Ejemplo n.º 2
0
 public SetPsdResult Connect(PSDDevice psdDevice)
 {
     var connected = psdDevice.Connect();
     if (connected)
     {
         Psd = psdDevice;
         Name = Psd.ToString();
         Base = new Base();
         if (!Psd.Login(LoginPass))
             return SetPsdResult.WrongPassword;
     }
     else
         Psd = null;
     return connected ? SetPsdResult.Connected : SetPsdResult.NotConnected;
 }