using System;
using System.Windows.Forms;
namespace Articulos.Cap03
{
public delegate void MostrarMensaje(string mensaje);
public class SinActionT
{
public static void Main()
{
MostrarMensaje mm;
if (Environment.GetCommandLineArgs().Length > 1)
{
mm = MostrarEnVentana;
}
else
{
mm = Console.WriteLine;
}
mm("Blog xCSw");
}
private static void MostrarEnVentana(string mensaje)
{
MessageBox.Show(mensaje);
}
}
}