Skip to content

pbedat/askii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

askii

Render strings to message boxes!

public static void Main (string[] args)
{
	var box = "" +
	          "==========================================================" +
	          "| Look Ma'                                               |" +
	          "==========================================================" +
	          "| (i) Hi,                                                |" +
	          "|     this is a nice message, isn't it?                  |" +
	          "|--------------------------------------------------------|" +
	          "|                   [ Yes ] [ No ]                       |" +
	          "==========================================================";

	box.Render ()
		.When (DialogResult.Yes, ThankYou)
		.When (DialogResult.No, () => System.Console.WriteLine ("How dare you??"));
}

static void ThankYou ()
{
	System.Console.WriteLine ("Thank you!");
}

About

Render strings to message boxes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages