Esempio n. 1
0
        public PSDRepository.SetPsdResult TrySetPsdBase(PSDDevice newDevice)
        {
            /* if (_userPasses == null)
                 return false;*/

            var newPsdBase = new PSDRepository(_userPasses.PsdLoginPass);
            var res = newPsdBase.Connect(newDevice);
            if (res == PSDRepository.SetPsdResult.Connected ||
                res == PSDRepository.SetPsdResult.WrongPassword)
                PsdBase = newPsdBase;
            return res;
        }
Esempio n. 2
0
        public bool TrySetPsdBase(PSDDevice newDevice)
        {
            if (_userPasses == null)
                return false;

            var newPsdBase = new PSDRepository(_userPasses.PsdLoginPass);
            if (!newPsdBase.Connect(newDevice))
                return false;
            PsdBase = newPsdBase;
            return true;
        }