예제 #1
0
        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.");
            }
        }
예제 #2
0
        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.");
            }
        }