예제 #1
0
        /* static public void imprimirEnColor()
         * {
         *
         * }*/
        static private String ArmarFormatoMensaje()
        {
            string ateriscos = "";
            int    i;
            int    tam     = 0;
            string retorno = "";
            string cadena  = "";

            if (Sello.TryParse(Sello.mensaje, out cadena))
            {
                tam = Sello.mensaje.Length;

                for (i = 0; i < tam + 2; i++)
                {
                    ateriscos += "*";
                }
                ateriscos += "\n";

                retorno = ateriscos + "*" + Sello.mensaje + "*\n" + ateriscos;
            }

            return(retorno);
        }
예제 #2
0
 static public String imprimir()
 {
     Console.Write("{0}", Sello.ArmarFormatoMensaje());
     return(mensaje);
 }
예제 #3
0
파일: Program.cs 프로젝트: mar2k/lab2
 static void Main(string[] args)
 {
     Sello.imprimir();
     Console.ReadKey();
 }