Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement