예제 #1
0
 protected string OnBuiltinReportLiteral(int iliteral)
 {
     if (BuiltinReportLiteral == null)
     {
         return(String.Empty);
     }
     else
     {
         var payl = new ReportLiteralEvent()
         {
             LiteralID = iliteral,
             LCID      = this.LCID,
             Literal   = null
         };
         BuiltinReportLiteral(this, payl);
         if (payl != null)
         {
             return(payl.Literal ?? String.Empty);
         }
         else
         {
             return(String.Empty);
         }
     }
 }
예제 #2
0
        public string OnLiteral(int literalid)
        {
            var s = String.Empty;

            if (Literal != null)
            {
                var e = new ReportLiteralEvent()
                {
                    LiteralID = literalid
                };
                Literal(this, e);
                s = e.Literal;
            }
            return(s);
        }
예제 #3
0
 void input_BuiltinReportLiteral(object sender, ReportLiteralEvent e)
 {
     e.Literal = OnBuiltinReportLiteral(e.LiteralID);
 }