public void SaveCommandDelegate() { if (string.IsNullOrEmpty(Source) || string.IsNullOrEmpty(User) || string.IsNullOrEmpty(Password)) { Info += "La fuente, el usuario y la contraseƱa son obligatorios." + "\r\n"; return; } try { _passwordVaultService.Save(Source, User, Password); Info += string.Format("Datos guardatos. Resource: {0}, User: {1}, Password: {2}", Source, User, Password) + "\r\n"; } catch (Exception ex) { Info += ex.Message + "\r\n"; } }
public void SaveCommandDelegate() { if (string.IsNullOrEmpty(Source) || string.IsNullOrEmpty(User) || string.IsNullOrEmpty(Password)) { Info += "The Source, the User and the Password are required." + "\r\n"; return; } try { _passwordVaultService.Save(Source, User, Password); Info += string.Format("Credentials saved. Resource: {0}, User: {1}, Password: {2}", Source, User, Password) + "\r\n"; } catch (Exception ex) { Info += ex.Message + "\r\n"; } }