Example #1
0
        public BlocoEventoCabecalho(DanfeEventoViewModel viewModel, Estilo estilo) : base(viewModel, estilo)
        {
            var ts = new TextStack(BoundingBox)
            {
                Height = 30, AlinhamentoVertical = AlinhamentoVertical.Centro, AlinhamentoHorizontal = AlinhamentoHorizontal.Centro, LineHeightScale = 2F
            }
            .AddLine(viewModel.TituloEvento, Estilo.CriarFonteNegrito(15))
            .AddLine("Não possui valor fiscal. Simples representação do evento indicado abaixo.", Estilo.FonteCampoConteudo)
            .AddLine("CONSULTE A AUTENTICIDADE NO SITE DA SEFAZ AUTORIZADORA.", Estilo.FonteCampoConteudo);

            MainVerticalStack.Add(ts);
        }
Example #2
0
        public void DesenharAvisoHomologacao()
        {
            var ts = new TextStack(Retangulo)
            {
                AlinhamentoVertical = AlinhamentoVertical.Centro, AlinhamentoHorizontal = AlinhamentoHorizontal.Centro, LineHeightScale = 0.9F
            }
            .AddLine("SEM VALOR FISCAL", Danfe.EstiloPadrao.CriarFonteRegular(30))
            .AddLine("AMBIENTE DE HOMOLOGAÇÃO", Danfe.EstiloPadrao.CriarFonteRegular(30));

            Gfx.PrimitiveComposer.BeginLocalState();
            Gfx.PrimitiveComposer.SetFillColor(new DeviceRGBColor(0.35, 0.35, 0.35));
            ts.Draw(Gfx);
            Gfx.PrimitiveComposer.End();
        }
Example #3
0
File: Main.cs Project: ktvoelker/di
 private Buffer CreateBuffer(Meta.File file, TextStack<UndoElem, Buffer> undo, TextStack<UndoElem, Buffer> redo)
 {
     var buffer = new Buffer(file, undo, redo);
     Buffers.Add(buffer);
     return buffer;
 }
Example #4
0
File: Main.cs Project: ktvoelker/di
 public Buffer FindOrCreateBuffer(Meta.File file, TextStack<UndoElem, Buffer> undo, TextStack<UndoElem, Buffer> redo)
 {
     foreach (var buffer in Buffers)
     {
         if (buffer.File == file)
         {
             return buffer;
         }
     }
     return CreateBuffer(file, undo, redo);
 }