Ooui-tws-port/Samples/Program.cs

38 lines
979 B
C#
Raw Normal View History

2017-06-18 23:50:22 +00:00
using System;
using Ooui;
namespace Samples
{
class Program
{
static void Main (string[] args)
{
2017-06-19 01:42:28 +00:00
for (var i = 0; i < args.Length; i++) {
var a = args[i];
switch (args[i]) {
case "-p" when i + 1 < args.Length:
case "--port" when i + 1 < args.Length:
{
int p;
if (int.TryParse (args[i + 1], out p)) {
UI.Port = p;
}
i++;
}
break;
}
}
2017-06-18 23:50:22 +00:00
new ButtonSample ().Publish ();
new TodoSample ().Publish ();
2017-07-08 05:55:23 +00:00
new DrawSample ().Publish ();
2017-08-23 03:26:01 +00:00
new FilesSample ().Publish ();
2017-11-09 07:12:59 +00:00
new XamarinFormsSample ().Publish ();
2017-06-18 23:50:22 +00:00
2017-11-09 07:12:59 +00:00
UI.Present ("/xamarin-forms");
2017-06-18 23:50:22 +00:00
Console.ReadLine ();
}
}
}