示例#1
0
        public void DeleteCommandDelegate()
        {
            if (string.IsNullOrEmpty(Source) || string.IsNullOrEmpty(User))
            {
                Info += "La fuente y el usuario son obligatorios." + "\r\n";
                return;
            }

            try
            {
                _passwordVaultService.Delete(Source, User);
                Info += string.Format("Datos eliminados con éxito. Resource: {0}, User: {1}, Password: {2}",
                                      Source, User, Password) + "\r\n";
            }
            catch (Exception ex)
            {
                Info += ex.Message + "\r\n";
            }
        }
示例#2
0
        public void DeleteCommandDelegate()
        {
            if (string.IsNullOrEmpty(Source) || string.IsNullOrEmpty(User))
            {
                Info += "The Source and the User are requiered." + "\r\n";
                return;
            }

            try
            {
                _passwordVaultService.Delete(Source, User);
                Info += string.Format("Data successfully removed. Resource: {0}, User: {1}, Password: {2}",
                                      Source, User, Password) + "\r\n";
            }
            catch (Exception ex)
            {
                Info += ex.Message + "\r\n";
            }
        }