public void AdicionarLogo(String logoPath) { if (String.IsNullOrWhiteSpace(logoPath)) { throw new ArgumentNullException("logoPath"); } if (logoPath.EndsWith(".jpg")) { _Logo = GetJpegLogo(logoPath); } else if (logoPath.EndsWith(".pdf")) { _Logo = GetPdfLogo(logoPath); } else { throw new Exception("Tipo inválido de logo."); } }
public void AdicionarLogo(String logoPath) { if(String.IsNullOrWhiteSpace(logoPath)) { throw new ArgumentNullException("logoPath"); } if (logoPath.EndsWith(".jpg")) { _Logo = GetJpegLogo(logoPath); } else if (logoPath.EndsWith(".pdf")) { _Logo = GetPdfLogo(logoPath); } else { throw new Exception("Tipo inválido de logo."); } }