示例#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;
 }
示例#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;
 }